| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) | ||
|
Web Hoster
Join Date: Jan 2008
Location: Canada
Posts: 150
|
Tried CSS :)
Hey, I tried CSS. I am liking it. I have a few questions though. I was wondering, why is there a red bar at the top of this page? CSS Code Quote:
HTML Code Quote:
Picture of the HTML file. ![]() |
||
|
|
|
|
|
#3 (permalink) |
|
misanthrope
Join Date: Jan 2005
Posts: 12,269
|
Gotta get your HTML right before you worry about CSS. You're missing a <body>, </body>, and </html>. And you have an extra </H1>, which should also be lowercase if you're going to use XHTML. Next, if that still happens, those are probably background colors. Track down what colors they are (the ColorZilla extension for Firefox works wonders for this purpose) and find where they exist in your stylesheet. |
|
|
|
#6 (permalink) |
|
corporate whore
Join Date: Oct 2007
Location: Umeå, Sweden
Posts: 207
|
Remove the first closed H1 Code:
I was bored and tried your code. Your colours are coming from the h1 styling hence why the closing H1 before the text was causing the red lines across the top and then the text to fall below... But seriously I would listen to pgo. Use valid code or at least have your bloody body and html tags in there... saves a shit load of headaches |
|
|
|
#7 (permalink) | ||
|
Web Hoster
Join Date: Jan 2008
Location: Canada
Posts: 150
|
I tried it again, but I have the Red Bar under the writin now. :S HTML Quote:
CSS Quote:
|
||
|
|
|
#8 (permalink) |
|
Registered User
Join Date: Jan 2008
Posts: 8
|
Red bar under the writing would be coming from this part: Code:
|
|
![]() |