Avoiding IE hacks for fixed width divs with borders and padding
IE doesn’t play well with borders and padding. To avoid having to hack it, use nested divs. One outer div to set the fixed width, and inner div(s) to set border and padding.
IE doesn’t play well with borders and padding. To avoid having to hack it, use nested divs. One outer div to set the fixed width, and inner div(s) to set border and padding.
<?php // if there are custom fields, echo them here in the looped content and build our related leftbox
if($img !== '') { ?>
"
class=""
alt=""
/>
<?php } // end if statement
// if there's not a custom field
else { echo ''; } ?>