I am very new to css and this is the first layout i have done using just css. I figured out how to set up a simple 3 column page. However, I am now faced with a problem. I wanted some sort of boarder to surround all my content and I have no idea how to do that. Here's a link to the layout i did using css:
<!-- m --><a class="postlink" href="http://www.girlsofcs.com/test1/index.htm">http://www.girlsofcs.com/test1/index.htm</a><!-- m -->
here's a link to the original layout i did using tables. notice the boarder around the content, this is what i am trying to create using the css.
<!-- m --><a class="postlink" href="http://www.girlsofcs.com/images/gcs_mockup1.jpg">http://www.girlsofcs.com/images/gcs_mockup1.jpg</a><!-- m -->
any help would be greatly appreciated Basically, wrap up everything in <div>...</div> tags, and assign desired padding, margin, background-color, and border to that div's CSS class/id. Here's a reasonable facsimile of the bordering in your original layout:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>
<title>Page title</title>
<style type="text/css">
<!--
body {
margin: 0;
padding: 10px;
}
#outer {
background-color: #bbb;
padding: 0 7px 30px;
width: 750px;
}
#middle {
background-color: #999;
margin: 0;
padding: 0 2px 5px;
}
#inner {
background-color: white;
margin: 0;
padding: 1px;
border: solid 1px black;
}
#content {
background-color: #def;
margin: 0;
padding: 5px;
}
-->
</style>
</head>
<body>
<div id=outer>
<div id=middle>
<div id=inner>
<div id=content>
<h1>This is a test</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div> <!-- content -->
</div> <!-- inner -->
</div> <!-- middle -->
</div> <!-- outer -->
</body>
</html>
<!-- m --><a class="postlink" href="http://www.girlsofcs.com/test1/index.htm">http://www.girlsofcs.com/test1/index.htm</a><!-- m -->
here's a link to the original layout i did using tables. notice the boarder around the content, this is what i am trying to create using the css.
<!-- m --><a class="postlink" href="http://www.girlsofcs.com/images/gcs_mockup1.jpg">http://www.girlsofcs.com/images/gcs_mockup1.jpg</a><!-- m -->
any help would be greatly appreciated Basically, wrap up everything in <div>...</div> tags, and assign desired padding, margin, background-color, and border to that div's CSS class/id. Here's a reasonable facsimile of the bordering in your original layout:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>
<title>Page title</title>
<style type="text/css">
<!--
body {
margin: 0;
padding: 10px;
}
#outer {
background-color: #bbb;
padding: 0 7px 30px;
width: 750px;
}
#middle {
background-color: #999;
margin: 0;
padding: 0 2px 5px;
}
#inner {
background-color: white;
margin: 0;
padding: 1px;
border: solid 1px black;
}
#content {
background-color: #def;
margin: 0;
padding: 5px;
}
-->
</style>
</head>
<body>
<div id=outer>
<div id=middle>
<div id=inner>
<div id=content>
<h1>This is a test</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div> <!-- content -->
</div> <!-- inner -->
</div> <!-- middle -->
</div> <!-- outer -->
</body>
</html>