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
Problem with border in ie6
Old 07-31-2008, 11:21 AM Problem with border in ie6
Average Talker

Posts: 23
Name: WHYY
Trades: 0
hi friends, i have a problem with border of a div layer. I will post the codes and the screenshot of the problem. The border partially disappear and i couldn't figure out why! Is it another bug of ie6? By the way, if you want to see the problem, you may need to scroll down and scroll up the page so that the half of the comment layer appears. The problem doesn't always occur.

The problem is:


And the html and css code is:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Problem with borders</title>
<style type="text/css">
#all {
    width:500px;
}
#comment {
    border: 3px solid black;
}
#commentleft {
    float: left;
}
#commentright {
    float: right;
    text-align: right;
}
</style>
</head>

<body>
<div id="all">
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<div id="comment">
<div id="commentleft">
<p>left</p>
</div>

<div id="commentright">
<p>right</p>
</div>


<div style="clear: both;"></div>
</div>
</div>

</body>
</html>
__________________

Please login or register to view this content. Registration is FREE

Last edited by phpost; 07-31-2008 at 12:17 PM..
phpost is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-31-2008, 04:23 PM Re: Problem with border in ie6
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
It the problem appears when you refresh or scroll up and down, then it sounds like the peek-a-boo bug at work. You can read all about IE6's bugs here:
http://www.positioniseverything.net
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-01-2008, 11:10 AM Re: Problem with border in ie6
Average Talker

Posts: 23
Name: WHYY
Trades: 0
thanks LadynRed,
i read about peek-a-boo bug and i fixed the problem by adding:
position: relative;

Code:
#comment {
    position: relative;
    border: 3px solid black;
}
__________________

Please login or register to view this content. Registration is FREE
phpost is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem with border 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.11908 seconds with 12 queries