<div> tags

  • PluTunium
  • Professor
  • Professor
  • User avatar
  • Joined: Jul 10, 2003
  • Posts: 812
  • Loc: Touring the USA
  • Status: Offline

Post August 3rd, 2003, 12:01 pm

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.
http://www.silverringthing.com
http://www.xxxchurch.com
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 3rd, 2003, 12:01 pm

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post August 3rd, 2003, 12:43 pm

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.)
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 3rd, 2003, 8:03 pm

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.
Pixel Acres V2
  • Geekette
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jun 25, 2003
  • Posts: 482
  • Loc: The Land of NeverWinter (FL)
  • Status: Offline

Post August 4th, 2003, 10:07 am

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
  • Joined: Jul 29, 2003
  • Posts: 82
  • Loc: Cloquet, Minnesota
  • Status: Offline

Post August 6th, 2003, 12:00 pm

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
  • No Avatar
  • Joined: Jul 16, 2003
  • Posts: 19
  • Status: Offline

Post August 8th, 2003, 6:46 pm

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 168 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.