Welcome to WebmasterWorld Guest from 23.22.140.143

Forum Moderators: not2easy

Message Too Old, No Replies

IE7 and position:absolute

     
10:08 pm on Sep 2, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:May 16, 2009
posts: 86
votes: 0


Ok this may be simple to fix, but in IE7 only (I dont have the courage to see how my site looks in IE6 aahha ) with this code


div#access_box{
width:290px;
margin:0 auto;
margin-top: 130px;
background: white;
-moz-border-radius: 5px;
border-radius: 5px;
border:2px solid #BFBFBF;
padding: 30px;
text-shadow: 0px 1px 1px #BFBFBF;
}

div#errors_login{
position:absolute;
top: 30px;
left: 50%;
width: 500px;
margin:0 auto;
text-align: center;
border: 1px solid red;
background: rgb(239, 44, 44);
color:white;
font-size: 15px;
padding: 10px;
margin-left:-260px;
}




<div id="errors_login">

</div>";


<div id="access_box">

</div>


without errors_login everything is showed ok, with it access_box magically loses margin-top and so errors_login goes over that div! The problem seems to be position:absolute, but why? bug?
9:03 am on Sept 3, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Mar 12, 2010
posts:65
votes: 0


position:absolute has a tendency to do that. I would think by giving your access_box a height and margin top it would push it down far enough to all the errors_login to not over lap.
11:20 am on Sept 3, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:May 16, 2009
posts:86
votes: 0


ok the problem is that as I said access_box marnin-top in completely ignored when errors_login is displayed!
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members