minay
04-12-2003, 03:38 AM
this might sound really stupid, but if I dont ask then Ill be stupid forever. >.<
um, is div and css the same? i understand that div is for absolute positioning and css is used to make your scrollbars colored and stuff...other than that?
oh, and can you use absolute positioning on a table? like row 2 will partially overlap row 1?
zangerbanger
04-12-2003, 04:19 AM
No, css and divs are related but not exactly the same.
If you want to absolute position table cells you go like this:
<td style="position:absolute; top: #; left: #; z-index: #;">
YOUR CONTENT
</td>
*by the way, u sent me a PM a long time ago but i couldn't get back to your because ur PM box is full*
MaGiCSuN
04-12-2003, 10:31 AM
and css can make the box more pretty, by adding colours to it so that your code will not be so long and messy that you can't even read it yourself anymore.
btw my question was: what is z-index for? i've seen a couple people using it, but in div tutorials you never see anything about them :S (or am i missing something here? LoL)
Love,
Mirna
epolady
04-12-2003, 11:43 AM
Z-index is used to layer things, bringing forth which layer to the top. The bigger the number, the closer to the top a box (or whatever) is displayed.
source (http://codepunk.hardwar.org.uk/acss07.htm).
MaGiCSuN
04-13-2003, 06:46 PM
Thanks epolady :) now atleast i understand those things a bit more lol !
Love,
mirna
zangerbanger
04-13-2003, 07:06 PM
hehehe, you learn something new everyday...
*did you honestly not know what z-index was?!*
MaGiCSuN
04-13-2003, 07:09 PM
What? do you think i asked this for the fun? If i did, would i start a thread about "people who post nonsense things' then? just something to think about... ;)
minay
04-14-2003, 01:28 AM
thanks! (and no problem zangerbanger =D)
one more question! so what exactly does divs do?
divs are a containers.
css may be applied to a div area to create effects either with positioning within the window area or directly to the contents within the area.
starlet
04-14-2003, 02:33 PM
Z-index shouldnt need to be used in most cases anyway, if you code your divs to be in the order you want them to appear they will appear in the right order....its just used because some older browsers dont work like that so if you want to go for compatability then use it (much like having the noframes option in frames)