...

View Full Version : CSS, something wrong, need help



9homie
05-20-2008, 06:57 PM
Hello.

I have just found out something really annoying...
When I open up my site, it has blocks cut out of the background from out the CSS wrapper.

Site: http://pokemonoracle.web44.net

Look at the source and can anyone see anything wrong?

Thank You in advance
9homie

abduraooft
05-20-2008, 07:42 PM
I've noticed an issue and found the solution

#main {/*pokemonoracle.web... (line 27)*/
background-color:#696969;
/*float:left;*/
height:20%;
margin-bottom:0px;
padding:10px;
text-align:center;
/*width:100%;*/
}

Wait .. wait.. you need a standard DOCTYPE (http://www.alistapart.com/articles/doctype/) as the very first line of your document, to expect a standard behaviour from browser.

9homie
05-20-2008, 08:00 PM
what doctype should i put on there then?

abduraooft
05-20-2008, 08:04 PM
Use

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
or

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
and then validate your code by http://validator.w3.org to ensure that there is no markup error.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum