jwwceo Posted July 3, 2007 Share Posted July 3, 2007 Hello, I am making a page where I want to have a little top corner ad in the top left corner of the page. But I don't want it to affect the other stuff in the page. How do I use a floating div or some kind of CSS manipulation to make sure it doesn't affect the rest of my page. James Quote Link to comment https://forums.phpfreaks.com/topic/58320-floating-div/ Share on other sites More sharing options...
RichardRotterdam Posted July 4, 2007 Share Posted July 4, 2007 you could try to use the absolute in css #add{ position:absolute; } or just create a good template with space for your add Quote Link to comment https://forums.phpfreaks.com/topic/58320-floating-div/#findComment-289543 Share on other sites More sharing options...
soycharliente Posted July 7, 2007 Share Posted July 7, 2007 Why just put the add first in your code with everything else following it? This works as well: <html> <body> <div style="position: relative; border: 1px solid green; padding: 10px;">HELLO</div> <div style="position: absolute; border: 1px solid black; top: 0;">WORLD</div> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/58320-floating-div/#findComment-291928 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.