Jump to content

Recommended Posts

I show an alertbox with javascript but it was designed using css.. the problem is when it is shown up in mozilla, when i scroll the browser up and down the alertbox the position of the alertbox also change following the direction...but not in IE 6.0, which part should i modify so that i can get the same result as mozilla ? 

 

thanks.below is my css code

 

<style type="text/css">

#modalContainer {

background-color:transparent;

position:relative;

width:100%;

height:100%;

top:0px;

left:0px;

z-index:10000;

 

}

 

#alertBox {

position:relative;

width:500px;

height:100px;

margin-top:170px;

border:2px solid #000;

background-color:#F2F5F6;

 

background-repeat:no-repeat;

background-position:20px 30px;

}

 

#modalContainer > #alertBox {

position:fixed;

}

 

 

#alertBox p {

font:0.7em verdana,arial;

height:50px;

padding-left:10px;

padding-right:10px;

text-align:center;

 

 

padding-top:15px;

 

}

</style>

 

the bold one is the problem since IE 6.0 doesnt support that

 

Link to comment
https://forums.phpfreaks.com/topic/208101-scroll-problem-in-ie-60/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.