# Hidden Div Layers

**URL:** https://forum.kirupa.com/t/hidden-div-layers/187474
**Category:** web dev
**Created:** [April 29, 2006, 2:26pm UTC](https://forum.kirupa.com/t/hidden-div-layers/187474 "2006-04-29T14:26:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tommyhaych](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@tommyhaych](https://forum.kirupa.com/u/tommyhaych)
#### Post date: [April 29, 2006, 2:26pm UTC](https://forum.kirupa.com/t/hidden-div-layers/187474/1 "2006-04-29T14:26:20Z")

</div>

Hey there…

I’ve managed to get hidden div layers working great on a website I’m making, but with one problem - the layer doesn’t stay put when I resize the browser window. I know the reason why, because the div is absolutley positioned not relativley.

I changed it to relative, but because the DIV code is in a table, it leaves a massive gap.

Anyways, I’m just wondering how this is done properly? I have little to no experience with div layers.

Heres a screeny (the left one is before, the right is after). There should be no gap between the buttons and the picture.

![](http://www.tommyhaych.co.uk/images/div.jpg)

Thanks,

Tom :tie:
