Question : CSS Sheets

If 2 css pages are referenced in a page and BOTH happen to have the same named tag...does the "second read" overwrite the first one or is it appended.

Example...
StyleSheet1.css has body{color:white;}
StyleSheet2.css has body{background-image:url(whatever.jpj);;}

Will the page have both?
Or just the second one...or just the first?

Answer : CSS Sheets

The last definition of style will be applied and previous ones are inherited.

In your example the 'total' will be:

body {
 color:white;
 background-image:url(whatever.jpj);
}

Please also read http://htmldog.com/guides/cssadvanced/specificity/
for more info on specificity.
Random Solutions  
 
programming4us programming4us