View Full Version : div


soundasleep
04-20-2003, 08:42 PM
what exactly happens when you write div? cuz i know for images, u can either do <image src= ...> or <div id=...> and i'm not sure what's so special about div. what is it?

MaGiCSuN
04-20-2003, 09:02 PM
With divs you can have more then one CSS class on one page, so you could have blue links for the blog part, and red links for the other stuff.

with divs you can absolute position anything on the page, and make layouts browser friendly

You could also have more advanced 'tables' (for real they are just images, but they look like tables) made in your graphic editor b'coz you can position the text wherever you want, so no need to slice the layout up

uhm, it's just so much easier to use divs instead of tables b'coz of the slicing stuff etc. you have much more freedom, and what you can do with tables is also able with divs only with divs you have to do less stuff to make it actually happen (like again with slicing, you don't need to with divs)

a good short tutorial is here:
http://www.``````````````/divtutorial.shtml

as you can see you can also make scrolling parts in your layout without having to make seperate pages for it and without using iframes.

love,
Mirna

SizzZzlinhair
04-21-2003, 05:28 PM
I love dividers :) I use them all the time.. they're very helpful. With dividers you can have a 'scrolling table' and they make your page look very organized and in order.

soundasleep
04-22-2003, 10:24 PM
awesome!~ thanks a lot. are there any more sites telling you how to use them? hehe. i'm probably gonna be another person hooked onto them too now.

MaGiCSuN
04-23-2003, 05:09 PM
http://www.``````````````/divtutorial.shtml

and see these threads:

http://www.lissaexplains.com/forum/search.php?action=showresults&searchid=62134&sortby=lastpost&sortorder=descending

next time please try a search because the "div tutorial question" is a very common one here on the forum :) thanks !

Love,
Mirna