css inheriting question - Post ID 130045

User 184085 Photo


Ambassador
1,707 posts

I think this would work, but not sure.


<link rel="stylesheet" href="css/style.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="css/cs3.css" type="text/css" media="screen, projection" />


so if a element #container in style.css has all css information, and #container in cs3 has just cs3 info, browsers that do not yet support cs3 will recognize only the style.css info, but browsers that do recognize cs3 will use that info because it comes later in the code.

Or am I totally bonkers on this?
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 562592 Photo


Registered User
2,038 posts

I do not think it will work that way. You may need to make a declaration (although for css3 I am not sure what that would be).

Regarding inheritance: it trickles down, so if you have the css3 file first, it gets over-ridden by the second file.
The philosopher has not done philosophy until he has acted upon the mere conviction of his idea; for proof of the theory is in the act, not the idea.

My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).

My Personal Website: http://www.EricSEnglish.com


Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.