Arquivo

Textos com Etiquetas ‘CSS’

Rap do Webdesign

26, setembro, 2009 Márcio Silva Sem comentários

Um rapper resolveu colocar em uma música tudo o que é importante saber sobre o Webdesign, dicas do que usar e não usar. Ou seja, são as boas práticas do Webdesign de uma forma nunca antes vista.

[youtube a0qMe7Z3EYg]

Se acompanhar uma letra de rap em português já é difícil, imagina em inglês. Para resolver o problema a letra segue abaixo:

“Your site design is the first thing people see
it should be reflective of you and the industry
easy to look at with a nice navigation
when you can’t find what you want it causes frustration
a clear Call to action to increase the temptation
use appealing graphics they create motivation
if you have animation
use with moderation
cause search engines can’t index the information”
display the logos of all your associations
highlight your contact info that’s an obligation
create a clean design you can use some decoration
but to try to prevent any client hesitation
every page that they click should provide and explanation
should be easy to understand like having a conversation
when you design the style go ahead and use your imagination
but make sure you use correct color combinations
do some investigation, look at other organizations
but don’t duplicate or you might face a litigation
design done, congratulations but it’s time to start construction
follow these instructions when you move into production
your photoshop functions then slice that design
do your layout with divs make sure that it’s aligned
please don’t use tables even though they work fine
when it come to indexing they give searches a hard time
make it easy for the spiders to crawl what you provide
remove font type, font color and font size
no background colors, keep your coding real neat,
tag your look and feel on a separate style sheet
better results with xml and css
now you making progress, a lil closer to success
describe your doctype so the browser can relate
make sure you do it great or it won’t validate
check in all browsers, I do it directly
gotta make sure that it renders correctly
some use IE, some others use Flock
some use AOL, I use Firefox
title everything including links and images
don’t use italics, use emphasis
don’t use bold, please use strong
if you use bold that’s old and wrong
when you use CSS, you page will load quicker
client satisfied like they eating on a snicker
they stuck on your page like you made it with a sticker
and then they convert now that’s the real kicker
make you a lil richer, your site a lil slicker
design and code right man I hope you get the picture
what I’m telling you is true man it should be a scripture
if it’s built right you’ll be the pick of the litter
everyone will want to follow you like twitter
competition will get bitter and you’ll shine like glitter
if you trying to grow your company will get bigger
design and code right man can you get with it”

The Poetic Prophet (AKA The SEO Rapper)


Layout com 100% de altura

Olá Pessoal,

Para quem está brigando com os navegadores para que o layout fique preenchendo 100% da altura do site, aqui vai uma dica importante. Na maioria dos navegadores isso é fácil, mas vai fazer isso no Internet Explorer.

Vamos ao HTML básico de página, onde existe um DIV que compreende todo conteúdo do site. Chamemos esse DIV de main.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>.:Márcio Silva Website:.</title>
</head>
<body>
<div id="main">
 
</div>
</body>
</html>

Para formatar o HTML mostrado acima com 100% da altura basta usar o seguinte código CSS.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
html, body
{
	height:100%; 
	padding:0; 
	margin:0;
}
 
* html #main
{
	height:100%;
}
#main
{
	min-height:100%;
	background:#CCC;
}

As duas grandes sacadas para resolver esse problema é atribuir 100% de altura ao HTML e o BODY para que os DIVs internos possam expandir 100% da altura; e logo após, da linha 8 à linha 10, usar um css hack para o IE. Ao contrário de outros hacks como _height este é validado pelo W3C. Se o IE fosse camarada, não precisaria dessas linhas pois apenas o restante do CSS resolveria o problema, mas fazer o que…

Até a próxima.

Categories: CSS, HTML Tags: , , ,