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
https://forums.phpfreaks.com/topic/177170-solved-flow-away/
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
https://forums.phpfreaks.com/topic/177170-solved-flow-away/#findComment-934205
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.