Previous Message
Next Message

Re: [css-d] Rules of CSS

Sent by Chris Blake on 4 June 2003 12:12


That makes sense, especially the part about the reason for using style
sheets externally....

thanks for replying chaps.....

Much appreciated

Chris

On Wed, 2003-06-04 at 13:28, Joseph A Nagy Jr wrote:
> Arlen Walker wrote:
> > 
> > On Wednesday, June 4, 2003, at 06:00  AM, Joseph A Nagy Jr wrote:
> > 
> >> Chris Blake wrote:
> >>
> >>> 1. Browser default
> >>> 2. External Style Sheet
> >>> 3. Internal Style Sheet (inside the 'head' tag)
> >>> 4. Inline Style (inside HTML element)
> >>> </quote>
> >>> Is this an absolute rule or are there exceptions. I`m just a little
> >>> worried about the use of the words "Generally speaking...."
> >>
> >>
> >> I always thought it was an absolute rule myself.
> > 
> > 
> > Yes, given equal specficity.
> > 
> > For example:
> > 
> > External style sheet says:
> > 
> > #navbar ul li a:hover {color:red;}
> > 
> > while Internal style sheet says:
> > 
> > a:hover{ color:green;}
> > 
> > Now, if I understand the cascade properly (and there's always a chance I 
> > don't) the links that are part of an unordered list in #navbar will 
> > color themselves red when hovered over, because the external style sheet 
> > code is more specific than the internal.
> 
> I'd be inclined to agree with that, but I rarely, if ever, willingly use 
> an internal or inline style (new layout not with standing since I didn't 
> create it. I find the whole point of CSS is the ability to set a style 
> document from without (external) which makes the html file that much 
> smaller. :)
-- 
Chris Blake
Office : (011) 782-0840
Cell : 083 985 0379

memo, n.:
	An interoffice communication too often written more for the benefit
	of the person who sends it than the person who receives it.

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: