Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



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

Posts: 133
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!
 
 
Register now for full access!
Old 03-13-2009, 05:57 AM Re: div positioning glitch in IE6
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,516
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
remove the "white space" after the closing tag of #div4
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-14-2009, 06:40 PM Re: div positioning glitch in IE6
matt w's Avatar
Super Talker

Posts: 133
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.11879 seconds with 12 queries