I am having trouble creating multiple boxes for my future website. This my CSS3 Coding:
#content-box1, #content-box2, #content-box3, #content-box4{
padding:10px;
border:1px solid #bbb;
position:absolute;
margin-top:190px;
height:120px;
}
#content-box1 {
margin-left:212px;
width:200px;
}
#content-box2 {
margin-left:444px;
width:200px;
}
#content-box3 {
margin-left:676px;
width:202px;
}
#content-box4 {
margin-left:676px;
width:202px;
}
Here's my HTML:
<!doctype html>
<html><head>
<meta charset="UTF-8">
<title>Complex XHTML and CSS Home Page Layout Test</title>
<link href="myflex.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
</style>
<body>
<div id="wrapper">
<div id="header">Header</div>
<div id="content-box1"><p>Box 1</p></div>
<div id="content-box2"><p>Box 2</p></div>
<div id="content-box3"><p>Box 3</p></div>
<div id="content-box4"><p>Box 4</p></div>
<div id="content">
<div id="content-left">
<p>Left Column text here. This could be your site menu...</p>
<p>Menu Item</p>
<p>Menu Item</p>
<p>Menu Item</p>
<p>Menu Item</p>
<p>Menu Item</p>
<p>Menu Item</p>
</div>
<div id="content-main">
<p>Main home page content or image goes here...</p>
</div>
</div>
<div id="footer">Footer text and links can go all the way along here... text text text text
text text...</div>
<div id="bottom"><a title="Acuras Web Development" href="http://www.acuras.co.uk">Acuras Web
Development</a></div>
</div>
<script language="JavaScript" type="text/javascript">
var gDomain="www.qsstats.com";
var gDcsId="dcs37pv2c00000oun93vypyva_4k6d";
var gFpc="WT_FPC";
var gConvert=true;
var gFpcDom = "cumberlandcountyweather.com";
if ((typeof(gConvert) != "undefined") && gConvert && (document.cookie.indexOf(gFpc + "=") ==
-1) && (document.cookie.indexOf("WTLOPTOUT=")==-1)) {
document.write("<SCR"+"IPT TYPE='text/javascript' SRC='http"+
(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+gDomain+"/"+gDcsId+"/wtid.js"+"'>
<\/SCR"+"IPT>");
}
function dcsAdditionalParameters() {}
</script>
<script type="text/javascript" src="/imageserver/common/webtrends.js"></script>
<noscript><img alt="" border="0" name="DCSIMG" width="1" height="1" src="http://www.qsstats.com
/dcs37pv2c00000oun93vypyva_4k6d/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=8.0.2;
WT.qs_dlk=UXr12grIZ2IAAAPMvT4AAAAY;" /></noscript>
</body>
</html>
What we are attempting to do, is to be able to create multiple boxes let's say the first row with at least 3 boxes, the second row another 3 boxes, and so forth. These boxes will be containing my links, and possibly pictures.
Can you please help me in this situation?