do this in CSS?
do this in CSS?
Out of context: Reply #25
- Started
- Last post
- 42 Responses
- 7point340
div { padding: 25px; background: #333; width: 200px; overflow: auto;}
h1 { display: inline; padding: 5px; margin: 0; background: #d00;color: #fff; font: 18px/30px verdana;}<div><h1>here is some text. here is some more text on a longer line.</h1></div>
- sort of... but because it's inline the padding gets fucked on different lines7point34
- closeblackspade