View Full Version : external stylesheets...


twista
04-09-2004, 03:25 AM
Okay, all of my " blahblah.html" pages are linked to an external stylesheet. But what do I do if I want to change something like the <P> or <BODY> option for just one page? Right now there's border's around everything that I would prefer to take off and some other unecessary stuff.

Dude128
04-09-2004, 04:05 AM
if you just put CSS on that particular page, with the <style> tags and everything, and use those elements, it should override the external stylesheet.

say for instance in an external style sheet, for the p element you have border: 1px solid #000000; and on one page you want it to have a 10px white border instead, on that page use:

<style type="text/css">
<!--
p {
border: 10px solid #ffffff;
}
-->
</style>

and just keep in mind that any attributes you have in the external style sheet but not on the one on that page will still apply. you have to explicitly set them to 0, for instance, if you don't want something. since you define it in one place, just skipping it in another won't make it go away :P

I hope that made sense lol :P

twista
04-09-2004, 05:01 AM
Thanks so much! It worked la-de-da---can you tell? I'm happy now! :D