View Full Version : XHTML 1.0 & CSS2 Discussion
Nafae
06-06-2002, 04:41 PM
I know very little about XHTML, but from what I understand you have to be very articulate and careful about your tag placement. Just a completely uneducated guess, perhaps your tags aren't situated properly. All I can offer until I get a book on the subject :)
unruly
06-07-2002, 09:34 AM
XHTML 1.0 is a pretty lofty goal for such a site. Doing it in 4.01 Strict, or Transitional should be FAR more than enough to get the page looking how you want it.
With the newer versions of the HTML spec, you have to be careful what tags you put inside of tags, to make sure they're not block elements inside of block elements and whatnot. It can be a really confusing mess, I know. Which is why I shoot for 4.01 Transitional, it gives me flexablity to do what I want, and not have to use styles for absolutely everything.
Strike
06-07-2002, 12:36 PM
Bold and center are formatting issues and not layout issues, so of course they aren't in XHTML, they are in CSS.
Which brings up another point - XHTML doesn't separate formatting and content any more than HTML does (at least, the latest standards). ALL formatting is done in CSS now.
unruly
06-07-2002, 08:25 PM
Originally posted by Seph
I have one last question about CSS. How do you set a background image for something?
style="background-image:/gfx/side-main.jpg"
That for some reason doesnt work for me. What is wrong?
add parens around the url (/gfx/side-main.jpg) I belive
Old Breadbutt
06-28-2002, 05:26 PM
I've only used display once, on my site www.fakemonster.com, I use it in my nav to get the rollover effect without images. feel free to go digging through my code and style sheet
(the rollover effect doesn't happen in NN before NN6, because before NN6 it didn't support the .hover pseudo class. This doesn't bother me because the rollover is just an extra. not seeing it doesn't break the page. and since so few people use NN pre NN6 I'm not going to loose sleep. I guess I could have put in a browser sniffer and redirect NN pre 6 useres to a page with a graphic rollover but ahh well.)
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.