Even Though I'm Overwriting a CSS Class The Old Width Value is Used

SerArreno

New Member
I have two CSS files, let's call them style1.css and style2.css for simplicity's sake.I include them in this order:\[code\]<link rel="stylesheet" type="text/css" href="'.Layout::path().'style/style1.css" /><link rel="stylesheet" type="text/css" href="'.Layout::path().'style/style2.css" />\[/code\]Style one is a more general file with lots of classes and attributes. Style2 overwrites these.For example, style1 has this:\[code\].row-fluid > .span9 {width: 74.358974359%;}\[/code\]Whereas, style2 has:\[code\].span9{ width:50%;}\[/code\]I have some .row-fluid DIVs that contain .span9 elements and the first style is used for them, even though browsers should accept only the last CSS rule if duplicate selectors are found.I discover this by going to Chrome Developer Tools and I see the span9 definition coming from style9 as crossed and the definition from style1 is at the top and is used instead.PS: To be specific, style1 is the Twitter Bootstrap CSS and style2 is my own CSS started from scratch.
 
Back
Top