Deprecated: Assigning the return value of new by reference is deprecated in /home/shan/public_html/mahudsblog/wp-content/plugins/sem-recent-comments/sem-recent-comments.php on line 971
mahud’s blog: Paint Shop Pro Tutorials and Proboard Templates » Creating a <div> based Template using CSS (part 1 - 12)

mahud's blog

Paint Shop Pro Tutorials, ProBoards Templates, Downloads and More Stuff

< Combine flag and country into one image

Creating a <div> based Template using CSS (part 1 - 12)

5 Jan 2009 > 4 Comments

A <div>/CSS based Template Tutorial.

Tutorial Contents

  1. Part One (Creating a <div> based Template)
  2. Part Two (Adding Headings, Paragraphs, and Blockquotes)
  3. Part Three (Ordered and unordered lists (create a horizontal menu/navi bar))
  4. Part Four (Displaying Images)
  5. Part Five (Styling Horizontal Rules)
  6. Part Six (Styling Tables)
  7. Part Seven (Fonts)
  8. Part Eight (Margin and Padding)
  9. Part Nine (Styling the Background and Foreground)
  10. Part Ten (Styling Links)
  11. Part Eleven (Bullet images for list items)
  12. Part Twelve (Some template modifications)

Choosing a <doctype>

Before starting this tutorial you need to choose a <!DOCTYPE> that informs the browser what type of mark up language you are using. I recommend using either a HTML 4 (Strict) or XHTML (strict) doctype.

HTML 4 (strict) Doctype

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”
“http://www.w3.org/TR/html4/strict.dtd”>

<html lang=”en”>
<head>
<title>html document</title>

<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>

<link rel=”stylesheet” type=”text/css” href=”" media=”screen” >

</head>

<body>

</body>
</html>

XHTML (strict) Doctype

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>

<html lang=”en” xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title>html document</title>

<meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1″ />

<link rel=”stylesheet” type=”text/css” href=”style.css” media=”screen” />

</head>

<body>

</body>
</html>

Validate your mark up

It’s good practice to check your HTML and CSS documents using the online validators.

Keep going… >

Related Posts

4 Comments (Have your say)

  1. Momotaro

    Comment on May 3, 2009 at 5:50 pm

    Awesome tutorial. It really helped me. How’s this? http://www.majhost.com/gallery/Ultimate-Collector/stuff/div-css_template.txt I had to do .txt, the host doesnt allow .html.


  2. Pele

    Comment on August 2, 2009 at 2:52 am

    Your still alive Mahud? :P


  3. mahud

    Comment on August 6, 2009 at 8:17 pm

    nah, im dead


  4. оригинальные подарки

    Comment on April 24, 2010 at 2:17 am

    Потрясающе! Хочется перечитывать снова и снова… Такие авторы сегодня большая редкость.


  1. smile
  2. happy
  3. sad
  4. wink
  5. url
  6. bquote
  7. bold
  8. acronym
  9. abbr
  10. cite
  11. code
  12. em

Why Markup when you can Markdown?

Menu

logopv.jpg

Mahud Version 5 © 2006-2008 > powered by Mr Whippy Wordpress