css question

Joined
Sep 28, 2008
Messages
27
Reaction score
0
Points
1
Your Mac's Specs
Unibody MBP 15"
Im an amateur at this so bare with me please.

I have an external style sheet the governs how all my pages will look. but I need to override this in a particular div on one of my pages. Im sure its something simple but I can't figure it out and google isn't being helpful today. Can anyone help me out here?
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
I think you can get away with this. I have a link to a CSS file, but to override some color values I embed a style block with in the header after the link. I believe you can put an identcally named tag in that block to override what is in the linked file.

Code:
<link rel="stylesheet" type="text/css" href="css/basic.css"/>

<!-- Exception colouring. -->
<style type="text/css">
 body {color: #000000;
       background-color: #FFFF99;}
</style>
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top