mesman00
January 3rd, 2002, 00:13
hey rattrap, maybe ya can explain something to me. i was scrolling through the code of pj64, and i came across some kind of HTML i've never seen before:
<DIV id="main_bg_left_linestowhite" visibility="visible" style="z-index:1;visibility:show;position:absolut e;left:30;top:-2" z-index="1">
<IMG src="../images/main_bg_left_linestowhite.gif" width="55" height="342" border="0">
</DIV>
i've never seen a DIV. is it a type of table?? i understand all of the stuff, except for the style and all the crap inside of it. i understand the left and top flags, obviously those are where the src will be placed, but what is "z-index:1" or "position:absolute". if ya could just explain it that would be cool, cuz i'm always interested in new stuff!
Malcolm
January 3rd, 2002, 00:51
a div tag is the same as a layer tag, rattrap is probably using dreamweaver or he likes to used tags most people dont like to use... or maybe those are the layer tags that netscape can actually understand..
anyways
a div tag is just a type of layer tag
Peace-out
:D
mesman00
January 3rd, 2002, 01:10
but what is "z-index:1" or "position:absolute".
i still don't understand what those are, i'm not really familiar with layer's either, what is the flag for a layer?
Malcolm
January 3rd, 2002, 02:22
oh, sorry dude, i didn't even read the rest of ur post:
z-index: imagine that each of you layers are small pieces of paper that you can move around as you please. the z-index:1 is the first piece of paper, and z-index is #2 and so on, so you can over lap them to get different effects.
position:absolute - i believe that this is weither the layer is movable of not, but im not sure... i'll look around fop a bit and try to find something
edit
oh and left and top are the twips (or pixels) that the layer is away from the top or left side of your screen.
Malcolm
January 3rd, 2002, 02:26
found some basic infotmation i love Google (http://www.google.com), heres the link (http://www.wdvl.com/Authoring/Style/Sheets/Layers.html)
mesman00
January 3rd, 2002, 04:14
ahh, now i see, thanks malcom
Malcolm
January 3rd, 2002, 04:20
no prob d00d good luck :D
RatTrap
January 4th, 2002, 06:28
WHAAAT!!!.. how DARE you say that.. DREAMWEAVER!?!?!.. i hate that pice of #%#"%!#£$ @£$@£€ $13!#%¤%# "%#T !#%"!%!"#%#"¤ !"#!!&¤%&""½%$£@€ @£$@ £$@£€$13!£$@ £$@£€$1 3!#%#%£ $€@£$€$£€ {@¤#"!%¤#"!!!!!!!! :pissed:..
every website i've made i've made it on editpad.. i know the code for each site 100%..
*calms down*.. well.. i guess you've gotten the explanation but i just had to bitch coz of the dreamweaver thing.. i totally dispise dreamweaver and frontpage and all other wysiwig editors.. they are crap when you want to make something more complicated.. they add code you don't need.. and they make parts of code unreadable.. and the reason i use divs&layers is coz there's alot of things you can do with divs&layers that you can't do with other tags in html.. ok there's span and a few other tags but they aren't supported on all browsers.. anyways.. divs are very usefull if you learn to use em well.. for example.. you can put a pic with partial transparency inside a div.. that's above another div with a background pic.. and for example that's how the apollo website is built.. a bunch of divs&layers..
mesman00
January 4th, 2002, 18:48
yah, that's what i though, is that how the company was done as well?? anyways, i hate dreamweaver, frontpage, and that crap too, it's not really learning html, its learning how to use editors, i'm a fan of notepad as well.
Malcolm
January 5th, 2002, 04:40
:D
vBulletin v3.6.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.