Jump to content

Floating DIV


jwwceo

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/58320-floating-div/#findComment-291928
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.