PDA

View Full Version : Layout help/tutorial


asgsoft
03-07-2005, 02:28 PM
I am trying to make a layout that uses the colours grey and green. Unfortuantlly i can't find any tutorials that can go through all the prossesing from desinging to adding contents. can anyone write something up or suggest a website. the ones around(eg hm) arn't very useful to me.

mck9235
03-07-2005, 02:41 PM
Are you using divs? If so it should be pretty simple. :)
Just get your CSS ready:

<html>
<head>
<title>Why won't it show...</title>
<style type="text/css">
.main
{
color:#CCCCCC;
font:12px Arial;
border:2px solid #000000;
position:relative; left: 10px; top: -20px;
}
</style>
</head>
<body>
<div class="main">
<p>Hello...</p>
</div>
</body>
</html>

chilipie
03-07-2005, 03:53 PM
Firstly, the <style> and </style> tags should be between the <head> and </head> tags. Secondly, why not use ids instead of classes, as their is only one div of that name...

mck9235
03-07-2005, 04:31 PM
Firstly, the <style> and </style> tags should be between the <head> and </head> tags. Secondly, why not use ids instead of classes, as their is only one div of that name...
I had them there but the thingy didn't show them. :S
(I also had a title tag :S)
I like classes better. :p

EDIT: Woops, I was starting out like I was just writing the HTML with no CSS but went back and added the CSS at the top thinking I had the style and head tags above isntead fo below. :rolleyes:

asgsoft
03-07-2005, 05:59 PM
i don't understand what you mean by divs could you please explain