PDA

View Full Version : Layers



ShyneRocc
October 13th, 2004, 03:39 PM
I know this may make me sound like a no0b but.. can someone help me understand my problem with layers...

when i use:


<div id="header" style="position:relative; width:430; height:363; z-index:1; top: -150;">
<table>content</table>

i end up with 363px of white space below the layer pushing the "content" table down..

I know i can use 'absolute' but my page is designed at 750px and the page is centered.. so basically absolute be out of place if i resized the browser, or viewed it full screen at a different resoution...

i'd know if theres something i can use to get everything aligned right?
can i use javascript that would check the screen size and position the layer accordingly?

Thanks again...
i've been struggling with this issue ever since...

(http://sevown.com)

[m]
October 13th, 2004, 05:29 PM
1) they aren't called layers. It's called CSS and you should tremble in it's presence.

2) Might be the fact that it has a height of 363 (nothing! what, cows? planes? lightyears?) could be the problem.

3) try a few of these:

http://www.roderickhoward.com/cssdirectory/

ShyneRocc
October 14th, 2004, 12:55 PM
']1) they aren't called layers. It's called CSS and you should tremble in it's presence.

2) Might be the fact that it has a height of 363 (nothing! what, cows? planes? lightyears?) could be the problem.

3) try a few of these:

http://www.roderickhoward.com/cssdirectory/
Hmm no wonder i've been having problems.. i've been looking at the wrong problem for my solution... thanks for the link... it helped