View Full Version : What's div and how do you use it?


bane_vagabond
05-11-2003, 05:53 PM
I have seen many people's sources and some people use div, rather than tables, what do you think? What is div anyway?

Liz
05-11-2003, 06:06 PM
Theres lots of tutorials on divs, here are some.

http://www.``````````````/divtutorial.shtml
http://magitek-designs.net/index.php?magitek=tutorials_divs
http://regretless.com/dodo/newworld/ - its under tutorials

bane_vagabond
05-11-2003, 06:08 PM
Okay, thanks, what does everyone recommend? Tables or Divs?

SSPrincess
05-11-2003, 06:15 PM
I think it would depend on what the content is. Though it looks like divs might be easier, so I'd have to say whatever works & looks best.

bane_vagabond
05-11-2003, 06:22 PM
How would you make a background color for the div tag? This doesn't work for me:

<DIV id="name" background-color:blue" style="position: absolute; bottom: 50px; width:100px; left: 100px;" align=left >WhatWhooaj
</DIV>

I am experiemnting, I want to highlight the divs with a background color so I know what will happen if I change something

jazzberry
05-11-2003, 09:08 PM
this was your code...
<DIV id="name" background-color:blue" style="position: absolute; bottom: 50px; width:100px; left: 100px;" align=left >WhatWhooaj
</DIV>

you put "background-color:blue"" that's for a style tag hehe use bgcolor="blue"

so it should be

<DIV id="name" bgcolor="blue" style="position: absolute; bottom: 50px; width:100px; left: 100px;" align="left">WhatWhooaj
</DIV>

i think...i hope i helped

bane_vagabond
05-11-2003, 09:54 PM
bgcolor does not work for me.

Xiphias
05-12-2003, 12:08 AM
no, you have it wrong there! the correct coding would be:


<div id="name" style="position: absolute; bottom: 50px; width: 100px; left: 100px; background-color: #0000FF; text-align: left;">WhatWhooaj</div>

Liz
05-12-2003, 12:37 AM
If it works it doesnt matter what the code is.