Jump to content

DOCTYPE STRICT


shane18

Recommended Posts

ok, i used nested DIVs to make my rounded corner box... but if I don't add font-size: 0px; to the the div that had the corner img in it........ it would have too high of a height and would create space not needed causing background color to show up past the corners making it look crappy.... This only happens when I have the strict DOCTYPE. can someone explain why strict doc type does this... or atleast how i get around it? btw im using Firefox(Latest Version)

Link to comment
Share on other sites

<div style="margin: auto; background-color: #222222; color: #FFFFFF; width: 500px;">
<div style="background: url(images/top_right_corner.bmp) no-repeat top right; font-size: 0px;"><img src="images/top_left_corner.bmp" style="width: 13px; height: 13px;"></div>
<div style="height: 400px;">BLAH BLAH BLAH</div>
<div style="background: url(images/bottom_right_corner.bmp) no-repeat top right; font-size: 0px;"><img src="images/bottom_left_corner.bmp" style="width: 13px; height: 13px;"></div>
</div>

 

without the font-size: 0px; .... theres a couple pixels of space and that screws it up.... this problem only happens with STRICT DOCTYPE

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.