Forum Moderators: open

Message Too Old, No Replies

Divs driving me bananas

Div help

         

Jody Scotland

6:26 pm on Sep 18, 2003 (gmt 0)

10+ Year Member



I've been using divs foq while now but for some reason im coding a layout and the divs are going weird and not moving from the one spot when the browser window is smaller or larger. Ive uploaded it to my site to see if its just my browser playing up, you should be able to make the window different sizes and you'll see the problem. thank you x

[edited by: engine at 7:50 pm (utc) on Sep. 18, 2003]
[edit reason] No urls, thanks. See TOS [webmasterworld.com] [/edit]

moonbather

7:46 pm on Sep 18, 2003 (gmt 0)

10+ Year Member



It could be to do with the way divs are positioned.

The following resize test page might be helpful:


<div style="position:absolute;left:62.5%;top:100px;background-color:red;width:100px">hello</div>
<div style="position:absolute;left:500px;top:180px;background-color:green;width:100px">hello</div>

Jody Scotland

11:21 pm on Sep 18, 2003 (gmt 0)

10+ Year Member



I just tried to use that code but it didnt work, still resized themselves, this is the code i used in the first place


<div id="Layer1" style="position:absolute; left:614px; top:55px; width:155px; height:203px; z-index:1"></div>