rubbed
02-10-2012, 02:03 PM
http://desmond.imageshack.us/Himg441/scaled.php?server=441&filename=helpi.png&res=medium
Hi all.
I am trying to recreate this website.
I have made a div called container that contains everything.
After I have made each div for the header and first 3 columns I am having problems getting the next 3 columns to align underneath.
I found that I had to create a second container for each new column.
I am not sure if that is right or wrong, or if there is an easier way?
I am also finding myself using negative margins alot to align columns or banner divs perfectly.
I have a feeling this is wrong too?
<body>
<div id="wrap">
<div id="header">
<ul>
<li id="navhead"><a href="#">Home</a> |</li>
<li id="navhead"><a href="#">My Account</a> |</li>
<li id="navhead"><a href="#">Rakeback</a> |</li>
<li id="navhead"><a href="#">Promotions</a> |</li>
<li id="navhead"><a href="#">Coaching</a> |</li>
<li id="navhead"><a href="#">Refer-A-Friend</a> |</li>
<li id="navhead"><a href="#">FAQ</a> |</li>
<li id="navhead"><a href="#">Support</a></li>
</ul>
</div> <!-- end header -->
<div id="banner">
</div> <!-- end banner -->
<div id="navigation">
<ul>
<li id="navmain"><a href="#">Ongame</a></li>
<li id="navmain"><a href="#">Party</a></li>
<li id="navmain"><a href="#">Microgaming</a></li>
<li id="navmain"><a href="#">IPoker</a></li>
<li id="navmain"><a href="#">Entraction</a></li>
<li id="navmain"><a href="#">Cake</a></li>
<li id="navmain"><a href="#">Independant</a></li>
</ul>
</div> <!-- end navigation -->
<div id="column1">
<h2>Rakeback</h2>
<div id=rakebackbox>
</div>
</div> <!-- end loginbox -->
<div id="column2">
<div class="mainpic">
<img src="img/pkr.png" alt="pkr" width="540px" height="295px"/>
</div> <!-- end mainpic -->
</div> <!-- end main -->
<div id="column3">
<h2>Offers</h2>
<div id="offersbox">
</div>
</div> <!-- end offers -->
</div> <!-- end wrap -->
<div id=wrap2>
<div id="column4">
<h2>Latest News</h2>
<div id=newsbox>
</div>
</div> <!-- end news -->
<div id="column5">
<h2>Free Poker Coaching</h2>
<div id=main2box>
</div>
</div> <!-- end main2 -->
<div id="column6">
<h2>Rakeback Calculator</h2>
</div> <!-- end calculator -->
ol, ul {
list-style: none;
}
h2 { font-size: 16px; }
a { text-decoration: none;
color: white; }
body {background:#CCCCCC;
margin-top:-16px;
padding-top:0px;
}
#wrap {
width: 960px;
margin: auto;
height:395px;
background: white;
}
#header {
background-color: black;
height: 35px;
margin-bottom:0px;}
#header ul {
padding-left: 15px;
margin-bottom:0px;
}
#header li {
float: left;
padding-left: 6px;
color: white;
font-size: 15px;
margin-top:10px;
margin-bottom:0px;
}
#banner
{ background-image:url(img/banner.jpg);
height:100px;
width:960px;
margin-bottom:0px;
margin: 0 0 0 0;
}
#navigation
{background-color: black;
height:30px;
margin-top:-16px;
}
#navigation ul {
padding-left: 30px;
}
#navigation li {
float:left;
font-family:arial;
margin-left:50px;
color: white;
font-size: 18px;
margin-top:5px;}
/* HEADINGS */
#column1 {
background:transparent url(img/heading.png) no-repeat scroll 0 0;
height:25px;
text-align:center;
line-height:1px;
width:187px;
color:white;
font-size:14px;
margin-left:10px;
margin-top:15px;
margin-bottom:0px;
float:left
}
#rakebackbox {
background-color:black;
margin-top:0px;
height:295px;
text-align:center;
width:187px;
color:white;
font-size:14px;
}
#column2 {
margin-left:15px;
margin-top:20px;
float:left;
}
#column3 {
background:transparent url(img/heading.png) no-repeat scroll 0 0;
height:25px;
text-align:center;
line-height:1px;
width:187px;
color:white;
font-size:14px;
margin-right:10px;
margin-top:15px;
margin-bottom:0px;
float:right
}
#offersbox {
background-color:black;
margin-top:0px;
height:295px;
text-align:center;
width:187px;
color:white;
font-size:14px;
}
#wrap2 {
width: 960px;
margin: auto;
height:1000px;
margin-top:-13px;
background: white;
}
#column4 {
background:transparent url(img/heading.png) no-repeat scroll 0 0;
height:25px;
text-align:center;
line-height:2px;
width:187px;
color:white;
font-size:14px;
margin-left:10px;
margin-top:150px;
margin-bottom:0px;
float:left
}
#newsbox {
background-color:black;
margin-top:-1px;
height:175px;
text-align:center;
width:187px;
color:white;
font-size:14px;
}
#column5 {
margin-left:15px;
width:543px;
text-align:center;
line-height:2px;
background-color:black;
float:right;
height:25px;
color:white;
margin-top:15px;
float:left;
}
#main2box {
margin-left:0px;
width:543px;
background-color:black;
height:175px;
}
.headertab {
background:transparent url(img/heading.png) no-repeat scroll 0 0;
}
Hi all.
I am trying to recreate this website.
I have made a div called container that contains everything.
After I have made each div for the header and first 3 columns I am having problems getting the next 3 columns to align underneath.
I found that I had to create a second container for each new column.
I am not sure if that is right or wrong, or if there is an easier way?
I am also finding myself using negative margins alot to align columns or banner divs perfectly.
I have a feeling this is wrong too?
<body>
<div id="wrap">
<div id="header">
<ul>
<li id="navhead"><a href="#">Home</a> |</li>
<li id="navhead"><a href="#">My Account</a> |</li>
<li id="navhead"><a href="#">Rakeback</a> |</li>
<li id="navhead"><a href="#">Promotions</a> |</li>
<li id="navhead"><a href="#">Coaching</a> |</li>
<li id="navhead"><a href="#">Refer-A-Friend</a> |</li>
<li id="navhead"><a href="#">FAQ</a> |</li>
<li id="navhead"><a href="#">Support</a></li>
</ul>
</div> <!-- end header -->
<div id="banner">
</div> <!-- end banner -->
<div id="navigation">
<ul>
<li id="navmain"><a href="#">Ongame</a></li>
<li id="navmain"><a href="#">Party</a></li>
<li id="navmain"><a href="#">Microgaming</a></li>
<li id="navmain"><a href="#">IPoker</a></li>
<li id="navmain"><a href="#">Entraction</a></li>
<li id="navmain"><a href="#">Cake</a></li>
<li id="navmain"><a href="#">Independant</a></li>
</ul>
</div> <!-- end navigation -->
<div id="column1">
<h2>Rakeback</h2>
<div id=rakebackbox>
</div>
</div> <!-- end loginbox -->
<div id="column2">
<div class="mainpic">
<img src="img/pkr.png" alt="pkr" width="540px" height="295px"/>
</div> <!-- end mainpic -->
</div> <!-- end main -->
<div id="column3">
<h2>Offers</h2>
<div id="offersbox">
</div>
</div> <!-- end offers -->
</div> <!-- end wrap -->
<div id=wrap2>
<div id="column4">
<h2>Latest News</h2>
<div id=newsbox>
</div>
</div> <!-- end news -->
<div id="column5">
<h2>Free Poker Coaching</h2>
<div id=main2box>
</div>
</div> <!-- end main2 -->
<div id="column6">
<h2>Rakeback Calculator</h2>
</div> <!-- end calculator -->
ol, ul {
list-style: none;
}
h2 { font-size: 16px; }
a { text-decoration: none;
color: white; }
body {background:#CCCCCC;
margin-top:-16px;
padding-top:0px;
}
#wrap {
width: 960px;
margin: auto;
height:395px;
background: white;
}
#header {
background-color: black;
height: 35px;
margin-bottom:0px;}
#header ul {
padding-left: 15px;
margin-bottom:0px;
}
#header li {
float: left;
padding-left: 6px;
color: white;
font-size: 15px;
margin-top:10px;
margin-bottom:0px;
}
#banner
{ background-image:url(img/banner.jpg);
height:100px;
width:960px;
margin-bottom:0px;
margin: 0 0 0 0;
}
#navigation
{background-color: black;
height:30px;
margin-top:-16px;
}
#navigation ul {
padding-left: 30px;
}
#navigation li {
float:left;
font-family:arial;
margin-left:50px;
color: white;
font-size: 18px;
margin-top:5px;}
/* HEADINGS */
#column1 {
background:transparent url(img/heading.png) no-repeat scroll 0 0;
height:25px;
text-align:center;
line-height:1px;
width:187px;
color:white;
font-size:14px;
margin-left:10px;
margin-top:15px;
margin-bottom:0px;
float:left
}
#rakebackbox {
background-color:black;
margin-top:0px;
height:295px;
text-align:center;
width:187px;
color:white;
font-size:14px;
}
#column2 {
margin-left:15px;
margin-top:20px;
float:left;
}
#column3 {
background:transparent url(img/heading.png) no-repeat scroll 0 0;
height:25px;
text-align:center;
line-height:1px;
width:187px;
color:white;
font-size:14px;
margin-right:10px;
margin-top:15px;
margin-bottom:0px;
float:right
}
#offersbox {
background-color:black;
margin-top:0px;
height:295px;
text-align:center;
width:187px;
color:white;
font-size:14px;
}
#wrap2 {
width: 960px;
margin: auto;
height:1000px;
margin-top:-13px;
background: white;
}
#column4 {
background:transparent url(img/heading.png) no-repeat scroll 0 0;
height:25px;
text-align:center;
line-height:2px;
width:187px;
color:white;
font-size:14px;
margin-left:10px;
margin-top:150px;
margin-bottom:0px;
float:left
}
#newsbox {
background-color:black;
margin-top:-1px;
height:175px;
text-align:center;
width:187px;
color:white;
font-size:14px;
}
#column5 {
margin-left:15px;
width:543px;
text-align:center;
line-height:2px;
background-color:black;
float:right;
height:25px;
color:white;
margin-top:15px;
float:left;
}
#main2box {
margin-left:0px;
width:543px;
background-color:black;
height:175px;
}
.headertab {
background:transparent url(img/heading.png) no-repeat scroll 0 0;
}