
Can one use a DIV with an ID to "wrap" an entire HTML page?
For example if I have a CSS statement like so in my CSS file...
ul {
list-style-type: circle;
}
Then not only UL's in my sites but also all UL's in the admin interface of Concrete5 will be affected.
To prevent this I must make my CSS more specific.
While I could just use a DIV with a unique ID inside my pages I also have CSS affecting the html and body tags in my HTML.
Which all brings me to my question.
Can I use a DIV wrapper around my entire page HTML?
Like so...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <div id="my_site"> <html> <head> </head> <body> <ul> <li>My first list item</li> </ul> </body> </html> </div>
#my_site ul {
list-style-type: circle;
}
Affecting only the UL inside my pages and not any other element in any other things like the Concrete5 admin interface.
Does anyone see any problems with this approach? Anybody know of a better way to do this?
Thanks.
Carlos
Every Day Is Fun! :)
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."
Every Day Is Fun! :)
PHP, MySql, WordPress, API Programming, E-Commerce Site, Payment Integration, Twilio, SMS Marketing, Custom Development, Wordpress, Joomla, Interspire, BigCommerce, Volusion, 3dCart and many more...
sales@bluecomp.net
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."