Reply
div positioning glitch in IE6
Old 03-12-2009, 11:11 PM div positioning glitch in IE6
matt w's Avatar
Skilled Talker

Posts: 93
Location: kalamazoo
Trades: 0
My layout goal is rounded corners. I'm attempting to do it by positioning divs in the corners of the containing div. It works fine in every browser I've checked, except IE6, in which only the bottom divs sit a few pixels off the bottom of the containing div. Any ideas?

http://sifaka888.x10hosting.com/mich...cked_div3.html
Code:
<style type="text/css">

div.topleft{
    /*position top left corner*/
    display:block;
    position:absolute;
    top: 0px;  left: 0px;
    width:67px;
    height: 67px;
    }

  div.topright{
    /*position top right corner*/
      display:block;
      position:absolute;
      top: 0px;  right: 0px;
      width:67px;
        height: 67px;
      }

div.botright{
    /*position bottom right corner*/
    display:block;
    position:absolute;
    bottom: 0px;
    right: 0px;
    width:67px;
    height: 67px;
    }


div.botleft{
    /*position bottom left corner*/
    display:block;
    position:absolute;
    bottom: 0px;  left: 0px;
    width:67px;
    height: 67px;
    }

#div4 {
/*place text over divs*/
position:relative;
z-index: 2;
}
HTML Code:
<div class="topleft">
  <img src="top_left.jpg" height= "67" width="67" alt="pic">

</div>

<div class="topright">
  <img src="top_right.jpg" height= "67" width="67"alt="pic">

</div>

<div class="botright">
  <img src="bot_right.jpg" height= "67" width="67"alt="pic">

</div>

<div class="botleft">
  <img src="bot_left.jpg" height= "67" width="67"alt="pic">

</div>
Thanks,
Matt
matt w is offline
Reply With Quote
View Public Profile Visit matt w's homepage!
 
 
When You Register, These Ads Go Away!
Old 03-13-2009, 04:57 AM Re: div positioning glitch in IE6
chrishirst's Avatar
Super Moderator

Posts: 26,493
Location: Blackpool. UK
Trades: 0
remove the "white space" after the closing tag of #div4
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | Crowded Nightclub? | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-14-2009, 05:40 PM Re: div positioning glitch in IE6
matt w's Avatar
Skilled Talker

Posts: 93
Location: kalamazoo
Trades: 0
Hello again Chris, I took out the whitespace, and it didn't work. I put in some IE hacks (I'm not sure about). My code validates, but is it right? Do you have any ideas?
Is there a tried and proven method of handling layout like this that you would recommend? Here is the updated page:
http://sifaka888.x10hosting.com/mich...cked_div9.html
Thanks,
Matt
matt w is offline
Reply With Quote
View Public Profile Visit matt w's homepage!
 
Reply     « Reply to div positioning glitch in IE6
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.09912 seconds with 13 queries