Assigning this css class to a html container will clear any floats within it. .clearfix:after, #container:after { clear:both; content:”\0020″; display:block; height:0; max-height:0; overflow:hidden; visibility:hidden; }
Tag: CSS
Wrapping pre tag text in a div using css
When using pre tags in html to display code blocks it will ignore the div boundaries and not wrap the text by default. By adding some css for pre tags this can be accomplished as follows. Hint: Another option is to use overflow:auto which will add scroll bars for the content. pre, code{ /*Wrap pre […]