ComputerForum.com ComputerForum.com  
TigerDirect
 
Go Back   Computer Forum > Computer Software > General Software

Reply
 
LinkBack Thread Tools Display Modes
Old 04-01-2006, 11:07 PM   #1 (permalink)
Bronze Member
 
j4mes_bond25's Avatar
 
Join Date: Jun 2005
Location: Non-exotic city of Leicester from the Land of Hope & Glory
Age: 27
Posts: 48
Question CSS Layout Help ???

I'm building my very first CSS page & wonder if anyone around into it could possibly help me get the layout as seen in the attached file.

Following are the codes that I've worked on for the whole Saturday afternoon & evening but still failed to achieve the EXACT result I want.

CSS CODE


/* CSS Document */

<html>
<head>
<style type="text/css">

/* Div */

div.screen
{
width:100%;
border:thin solid none;
}

div.topMenu
{
background-color:red;
margin-left:0%;
width:83%;
padding:1%;
position:absolute;
top:5%;
}

div.bottomMenu
{
background-color:blue;
margin-left:0%;
width:83%;
padding:1%;
position:absolute;
bottom:5%;
}

div.content
{
background-color:white;
border:dotted;
padding:1%;
margin:7% 0% 0% 16%;
}

div.leftMenu
{
background-color:#CCCCCC;
width:5%;
padding:5%;
margin-top:5%;
float:left;
}
</style>
</head>

<body>

/* Background */

{background-color:#000000}

/* Anchor */

a:link {color:#FF0000; text-decoration:none}
a:visited {color:#FF00FF}
a:hover {color:#FFFF00; font-size: monospace}
a:active {color:#00FFFF}

/* Paragraph */

p
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:medium;
font-weight:normal;
color:#0000FF;
}

/* Headings */

h1
{
font-family:Georgia, "Times New Roman", Times, serif;
font-weight:bold;
color:#FF0000;
text-decoration:underline
}

/* Pseudo elements */

p.firstLetter:first-letter {color:#33CC00; font-size:150%}
p.firstLine:first-line {color:#00FF00}


</body>
</html>


HOME.HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>Alcohol - Main Page</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>

<body>

<div class="topMenu">
Top Menu
</div>


<div class="bottomMenu">
Bottom Menu
</div>


<div class="leftMenu">
Left Menu
</div>


<div class="content">
Content
</div>






</body>
</html>
Attached Images
 

Last edited by j4mes_bond25; 04-01-2006 at 11:14 PM.
j4mes_bond25 is offline   Reply With Quote


Old 04-01-2006, 11:13 PM   #2 (permalink)
Bronze Member
 
sweetcheeks69's Avatar
 
Join Date: Feb 2005
Location: Southampton, UK
Age: 25
Posts: 48
Default

Hiya mate,

I personally wouldn't want to try and interpret your CSS issue, cos at present I am a HTML bod more than anything else. However, I have found the following site very useful and user friendly...

http://www.webdesignfromscratch.com/css.cfm

Give it a shot and let me know how you get on...
__________________
If pro is opposite to con, does that make congress opposite to progress?
CPU - 2.67GHz P4 / 1.25Gb DDR RAM
80GB SATA HD + 320GB Seagate External
LG CD/DVD +/- R/RW/RAM Lightscribe + CD/DVD +/- R/RW
ATI Sapphire 256MB Graphics / 19" WXGA Advent LCD
5.1 Sound / Logitech MX3000 Wireless Laser Desktop

sweetcheeks69 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:24 PM.


Powered by: vBulletin Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright © 2002-2007 Computer Forum and Web Design Forum