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 » Uncategorized

mahud's blog

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

Archive for the 'Uncategorized' Category

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

Menu

logopv.jpg

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