Advertisment
Advertise?

Recent
New Brush Sets
New Texutres
Dark, Halloween Photoshop Tutorial

Exit
Anthonology
DieFamous
Djance
Faellie
Fuzzable
Innocense
It's Jaylin
Novajowhite
Ponterosso
Retro Freak
Soulfolio
Toxicow
Vintaged
Vivid Avenue
More/Apply

Div Tags

fleurchild.com > Resources > Tutorials > Div Tags

Div tags are used to define areas within an HTML/XHTML document. When stylized with CSS, div tags in define a layout attributes (i.e. background colour, size, and positioning). This tutorial will show you the basics in properly coding an Auto-Centered Layout and a Fixed-Positioning Layout

Auto-Centered Layout

Basic Parts of a Layout

  • <html><head></head><body>
  • container
  • header
  • content
  • footer
  • end of container
  • </body></html>

    HTML

    Copy and paste the following textarea onto your HTML editor, and you will notice the basic points above (shown in bullets) written in HTML.

    CSS

    Above, each part of the layout were given "ids" - using CSS, we can use the "ids" to give each part certain attributes.

  • container = #container
  • header = #header
  • content = #content
  • footer = #footer

  • Welcome to fleurchild.com, Julia's little corner of the webernet. Be sure to check out the many high-quality resources the site has made availible for you. If you have a request of any kind, don't be afraid to from me a message in the blog. Back to the Top.


    Footer