Advertisement

12.16.2004 at 11:09AM PST, ID: 21245243
[x]
Attachment Details

Div position: absolute; right: 0px; Problem

Asked by rebies in Cascading Style Sheets (CSS)

Tags: div, position

Hi, my code is as below.  If you open it in a browser sometimes it aligns to the right of the page perfectly!  However - sometimes when you resize the window there is 1 pixel that is still red (I'm using Internet Explorer 6 to test this).  Any solutions or workarounds to this odd behavior?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
      <title>Untitled</title>
      <style>
      <!--
            #righthandnavigation {
                  position: absolute;
                  top: 50px;
                  right: 0px;
                  padding-right: 0px;
                  width: 100px;
                  height: 500px;
                  vertical-align: top;
                  text-align: center;
                  background-color: white;
                  padding-bottom: 0px;
                  z-index: 10;
            }
            BODY {
                  background-color: red;
            }
      //-->
      </style>
</head>

<body topmargin=0 leftmargin=0 rightmargin=0>

<div id="righthandnavigation">
      text
</div>

</body>
</html>
Start Free Trial
 
Loading Advertisement...
 
[+][-]12.16.2004 at 11:19AM PST, ID: 12844134

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.16.2004 at 11:27AM PST, ID: 12844214

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Cascading Style Sheets (CSS)
Tags: div, position
Sign Up Now!
Solution Provided By: Daydreams
Participating Experts: 2
Solution Grade: A
 
 
[+][-]12.16.2004 at 11:32AM PST, ID: 12844269

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.16.2004 at 11:33AM PST, ID: 12844275

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.16.2004 at 11:39AM PST, ID: 12844336

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.16.2004 at 09:57PM PST, ID: 12847926

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2005 at 07:15PM PDT, ID: 14302426

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32