Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

layer in a cell

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
is it possible to have a layer in a cell? What I am wanting to do is position a layer so that it floats above the contents of a cell but still have it constrained within the cell - if that makes sense... I know position:absolute will take it out of the cell and position it based on the window, what I want is to still have a floating layer but have it held with a cell so as the page moves the layer will not need adjusted
 
Nope i dont think that is possible as co-ordinates of a cell are with respect to the document and not to the cell.

Known is handfull, Unknown is worldfull
 
well if you use dreamweaver there is an extension that does just that and the extension is called snap layers.

[Hammer]
Nike Failed Slogans -- "Just Don't Do It!"
 
maybe I'm missing something here, but:

#layer{
position:relative;
width:100%;
height:100px;
}

<td>
<div id=&quot;layer&quot;>
this is the layer
</div>
thsi si some other stuff
</td>

 
yeah - I think you are missing something... what you did does not seem to really create a layer (is position:relative) What I am looking to do is to create a layer - meaning I would have content floating above other content - but yet have it tied to a cell so if I change the page I do not have change the positioning of that layer... I tried your code out - and unless I am not getting your point - it simply creates the content in the same &quot;layer&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top