egturnkey Posted October 10, 2009 Share Posted October 10, 2009 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 More sharing options...
egturnkey Posted October 10, 2009 Author Share Posted October 10, 2009 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 More sharing options...
cags Posted October 10, 2009 Share Posted October 10, 2009 If the problem is solved, therse a 'solved' button in the bottom left corner. Link to comment https://forums.phpfreaks.com/topic/177170-solved-flow-away/#findComment-934233 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.