<div> tags

  • PluTunium
  • Professor
  • Professor
  • User avatar
  • Posts: 812
  • Loc: Touring the USA

Post 3+ Months Ago

What are <div> tags used for and what do they do? i see them alot for like
Code: [ Select ]
<div align="center">
and things like that and i am wondering what they do.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

With HTML 4.0+ and XHTML 1.0 + a great use for DIV tags is positioning. My current home page is an example of how effective they can be. Without them, there's no way I could get it to work.

You can view source to see how the tags are used. The script is a bit complex, but it should give you the general idea:

http://atnopro.com

(Please excuse the fact that the site isn't finished. I'm still planning what I want to do with it.)
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

Another one of my favorite tags that you might find usefull is the <span> tag. It acts as javascripts "pet" where you can put stuff inbetween the tags and do just about anything you want to through javascript/css.
  • Geekette
  • Proficient
  • Proficient
  • User avatar
  • Posts: 482
  • Loc: The Land of NeverWinter (FL)

Post 3+ Months Ago

Ah, div layers are great, I'd be lost without them! They're so flexible that pretty much anything is possible! I've given up frames and now do my webpages entirely with div layers and tables. I just love them!
  • mnmarkm
  • Student
  • Student
  • User avatar
  • Posts: 82
  • Loc: Cloquet, Minnesota

Post 3+ Months Ago

IMadmin wrote:
What are <div> tags used for and what do they do? i see them alot for like
Code: [ Select ]
<div align="center">


In a nutshell...

Quote:
The DIV element is a generic, catch-all Block Formatting element with an implied line break before and after.
  • MacLuv
  • Novice
  • Novice
  • MacLuv
  • Posts: 19

Post 3+ Months Ago

I have about a trillion bookmarks on starting with CSS... so I'll share some with you here. I've only just begun my own personal journey into the depths of CSS so I'm not a complete expert but I've just started redoing my webpages to be tableless.

A good place to start:

http://www.thenoodleincident.com/tutorials/css/index.html

http://www.codeproject.com/html/cssbeginner.asp

From the WDG:
http://www.htmlhelp.com/reference/css/structure.html

A great page showing what can be done with css using only one HTML page and multiple CSS pages:

http://www.csszengarden.com

One of the best resources for CSS techniques, which is often ripped;

http://glish.com/css/

:)

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 49 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.