Jump to content

[SOLVED] flow away


egturnkey

Recommended Posts

Hello Friends

 

I've a problem where my images flow away after i did added an banner has the following css code

 

#topbar{
position:absolute;
padding: 2px;
background-color: #F4F3B3;
visibility: hidden;
z-index: 100;
}

 

HTML Code

 

 
<div id="topbar">
<a href="" onClick="closebar(); return false"><img src="images/close.gif" alt="blah" border="0" /></a>
ads goes here
</div>

 

now the images on IE below the banner flow away and after i make refresh it back again

 

 

i've tired to change

position:absolute;

to fixed/relative ..ect but it will effect the banner since it moves down with the scroll

 

thanks in advance

Link to comment
Share on other sites

problem solved

 

i've read more about css position and i found

 

The position property is used to position an element.

 

where

 

absolute : Generates an absolutely positioned element, positioned relative to the first parent element that has a position other than static. The element's position is specified with the "left", "top", "right", and "bottom" properties.

 

 

 

hence i've added to the whole body css code

 

position:absolute;

 

and it works correct now

 

 

thanks everybody

Link to comment
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.