hi, im learning from this html page and its css. i want to recreate it in 2 blank documents, but am unsure as to the order that it has to be typed. do i start with typing basic divs in the html, then style them, then add the content to the divs starting from top to bottom, then style them? or do i put one div at a time in the html, style it, add content, and style the content then move to the next div? any help greatly appreciated. thank you. derek. here is the code below that im trying to recreate the steps in. the html and the css after it. im also unsure when to add the top right image in the code.
here is the html for the page
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<!--
This is an Elated PageKit - www.elated.com.
All artwork copyright (c) 1996-2008 Elated Communications Ltd.
By using this PageKit, you are agreeing to the Terms of Use available online at www.elated.com/usage/
-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tope</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<!-- Outer Container -->
<div id="container" class="homepage">
<!-- Header -->
<div id="page-header">
<!-- Site Title -->
<h1><a href="index.html">Site title here</a></h1>
<p>Introduce the site here with a little bit of copy</p>
<!-- Menu -->
<ul id="menu">
<li><a href="index.html">Homepage</a></li>
<li><a href="page.html">News</a></li>
<li><a href="page.html">Gallery</a></li>
<li><a href="page.html">Services</a></li>
<li><a href="page.html">Downloads</a></li>
<li><a href="page.html">Contact</a></li>
</ul>
<!-- End Menu -->
</div>
<!-- End Header -->
<!-- Top Image -->
<img id="main-image" src="http://www.webmaster-talk.com/images/palms-big.jpg" alt="Palm trees" style="height: 379px;" />
<!-- Page Body -->
<div id="page-body">
<!-- Content -->
<div id="main-content">
<p>Lorem ipsum dolor sit amet, con sectetuer adipiscing elit, sed diam nonnumy nibh eeuismod tempor inci dunt ut labore et dolore magna ali quam erat volupat. Ut wisi enim ad minim veniam, quis <a href="#">nostrud</a> exerci tation ullamcorper suscipt laboris nisl ut aliquip ex ea commodo consequat. Duis autem vel eum irure dolor in henderit in vulputate velit esse consequat.</p>
<p>Vel illum dolore eu feugiat nulla facilise at vero eos et accusam et ius to odio dignissim qui blandit prae sent luptatum zzril delenit aigue dous dolore et molestias exceptur sint occaecat cupidiata non simil pro vident tempor sunt in clulpa qui officia deserunt mollit anium ib est abor um et dolor fuga. Et harumd dereud facilis est er expedit distinct. Nam liber tempor *** soluta nobis eligend option congue nihil impediet doming id quod mazim placeat facer possim omnis voluptas assumenda est, omnis repellend.</p>
<p>Temporibud auteui quinusd et aur office debit aut tum rerum neccessit atib saepe eveniet ut er molestia non recusand. Itaque earud rerum hic ten tury sapient delectus au aut prefer zim endis dolorib asperiore repellat.</p>
</div>
<div id="sidebar">
<p>Lorem ipsum dolor sit amet, con sectetuer adipiscing elit, sed diam nonnumy nibh eeuismod tempor inci dunt ut labore et dolore magna ali quam erat volupat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipt laboris nisl ut aliquip ex ea commodo consequat. Duis autem vel eum irure dolor in henderit in vulputate velit esse consequat.<br /><a href="#">More</a></p>
<p>Lorem ipsum dolor sit amet, con sectetuer adipiscing elit, sed diam nonnumy nibh eeuismod tempor inci dunt ut labore et dolore magna ali quam erat volupat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipt laboris nisl ut aliquip ex ea commodo consequat. Duis autem vel eum irure dolor in henderit in vulputate velit esse consequat.<br /><a href="#">More</a></p>
</div>
<!-- End Content -->
<div class="clear"> </div>
</div>
<!-- End Page Body -->
<div class="clear"> </div>
<!-- Page Footer -->
<div id="page-footer">
<p>ELATED PageKits © 1996-2008 <a href="
here is the CSS for the page
Code:
/*
This is an Elated PageKit - www.elated.com.
All artwork copyright (c) 1996-2008 Elated Communications Ltd.
By using this PageKit, you are agreeing to be bound by the
usage agreement available online at http://www.pagekits.com/usage/
*/
/* Page body style */
body
{
margin: 0;
padding: 0;
color: #393b4a;
background: #d4d5c5 url(images/pinstripe.png) repeat 0 0;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 0.85em;
line-height: 1.3em;
}
/* Standard paragraph style */
p, ul
{
margin: 0 0 1.4em 0;
}
/* Links */
a:link, a:active
{
color: #2e5a8c;
background-color: inherit;
}
a:visited
{
color: #802f8c;
background-color: inherit;
}
a:hover
{
color: #000;
}
/* Headings */
h1, h2, h3
{
font-weight: normal;
color: #484743;
padding-top: 0.8em;
}
h1
{
font-size: 1.4em;
line-height: 1.0em;
margin: 0 0 15px 0;
}
h2
{
font-size: 1.2em;
line-height: 1.0em;
margin: 0 0 10px 0;
}
h3
{
font-weight: bold;
font-size: 0.8em;
margin: 0 0 10px 0;
}
/* Container for page */
#container
{
position: relative;
margin: 0 auto;
padding: 0;
width: 780px;
background-color: #efedd9;
}
/* Page header area */
#page-header
{
float: left;
width: 180px;
margin: 0;
padding: 0 0 0 10px;
}
#page-header h1
{
margin: 83px 0 15px 0;
font-size: 3.5em;
line-height: 0.85em;
color: #000;
}
#page-header h1 a
{
text-decoration: none;
color: #000;
}
/* Menu */
ul#menu
{
margin: 168px 0 0 0;
padding: 0;
}
ul#menu li
{
list-style-type: none;
margin: 0;
padding: 0;
}
#menu a:link, #menu a:visited
{
color: #2e5a8c;
text-decoration: none;
}
#menu a:hover
{
color: #000;
}
/* Top image */
#main-image
{
float: right;
width: 560px;
}
/* Page body */
#page-body
{
float: right;
width: 560px;
margin-top: 18px;
}
div.homepage #page-body
{
float: right;
width: 560px;
margin-top: 40px;
}
/* Main content area */
#main-content
{
float: left;
width: 340px;
}
/* Sidebar area */
#sidebar
{
float: right;
width: 190px;
padding: 2px 10px 0 0;
font-size: 0.9em;
line-height: 1.2em;
}
/* Standard images */
img
{
border: none;
}
/* Page footer */
#page-footer
{
margin: 10px 0 0 0;
padding: 20px 0;
background: transparent url(images/footer-rule.png) repeat-x 0 0;
}
#page-footer p
{
margin-left: 220px;
}
/* Clearing element */
.clear
{
position: relative; clear: both; height: 1px; line-height: 1px; font-size: 1px;
}
Last edited by silverglade; 01-04-2009 at 08:25 AM..
|