View Full Version : Which style has the highest priority
Janepenelope
04-13-2009, 06:59 AM
Generally speaking we can say that all the styles will "cascade" into a new "virtual" style sheet :
1. Browser default
2. External style sheet
3. Internal style sheet (inside the <head> tag)
4. Inline style (inside an HTML element)
Which style has the highest priority?
Hi Jane,
I'd say your list is pretty much a good order of CSS priority. Browser default is an increasingly difficult one because there are so many different browsers out there with so many different CSS 'standards'.
Most of our sites' traffic comes via internet explorer (60%), with that being split amongst IE7 and IE6. Firefox is up next with around 20% and Google Chrome is edging up all the time and currently running at just over 10% of our internet traffic.
megri
05-25-2009, 12:17 PM
I will go with External style sheet because CSS validator also prefer external style sheet and when you validate, it ask for css path
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.