Over a million developers have joined DZone.

Set Width And Padding Without Ccs Browser Hack

DZone's Guide to

Set Width And Padding Without Ccs Browser Hack

Free Resource
// firefox an internet explorer handle padding in div-elements with width differently
// you don't need a css browser hack, you can use two div-elements insteas
// the outer-div handles width
// the inner div handles padding



loem ipsum dolor ...

//css //padding: top right, bottom, left; #left_text { width: 208px; float: left; } div.paddingbox { padding: 4px 8px 4px 8px; }

Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}