You may have to use height
or width
along with the value you want and !important
tacked on. Frameworks and libraries are terrible things to be forced to work with because of the complications they impose.
There are a few ways to render elements, there are many more though
display: inline;/* All elements render on the same line, will wrap. */
display: inline-block;/* All elements render on same line, wrap but width can be set.*/
display: block;/*All elements render on separate lines, width can be set.*/
You can also instead of using height: 200px !important
use min-height
:
element {display: block; min-height: 200px;}
Be sure to check the browser’s styling information, it will show you what CSS rules overwrite your expectation.
You may also want to take all of the HTML output and wrap it inside the following element to do a test for validity:
<div ></div>
Then save that file with an *.xhtml
file extension and open it in a Gecko browser (Waterfox, Firefox, etc) which have a much better XML parser. If there are rendering errors the whole page will break and the browser will tell you what is wrong.
In the mid-2000s there was someone who could not figure out why Safari refused to style everything the same way. After three days…three days he found out he was missing an attribute quote. If he had been using the XML parser instead of the HTML parser he would have discovered it in seconds. Bonus: HTML5 has nothing to do with parsers. My platform is built using the XML parser to serve HTML5 code.