Help copying a simple CSS design template

Associate
Joined
20 Sep 2003
Posts
2,372
Location
Scotland
I have been tasked at work with coming up with a simple job ad template using HTML/CSS. I found this.

But when downloading the HTML and looking at the code it seems way over complicated for what it is. Was hoping someone could point me in the right direction to get a simple design like above, where the advert is centralised and in a box.

I'm sure this can been coded quickly and easier than the example I've shown?

Much appreciated :)
 
something like:

html
<div id="container">
..your content here
</div>

css
#container{
width:900px;
margin:auto;
}

should do the trick.
 
HTML:
Code:
<body>
<div id="wrapper">
	<div id="header">

	</div>
	<div id="content">
		<p>Split this area into divs and paragraphs for content.</p>
	</div>
</div>
</body>

CSS:
Code:
body { background-color: #f7f7f7; text-align: center }
#wrapper { margin: 0 auto; width: 750px; text-align: left; background-color: #ffffff; border: 3px solid #d1d1d1; padding: 20px }
#content { padding: 20px; }
p { font-family: Helvetica, sans-serif; font-size: 12px; line-height: 18px }

Enjoy! Should set you on your way.
 
Back
Top Bottom