Now the above is just an example, but I saw someone typing CSS that way (and have seen it many times), but I can never get it to work. I always have to use something like:HTML Code:div#somediv h1{ background-color:#000; }
Does it have something to do with my DOC type for the html you think?HTML Code:h1{ background-color:#000; }
CSS header file would say:HTML Code:<!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">
HTML Code:@charset "utf-8"; /* CSS Document */



Reply With Quote


Bookmarks