...

View Full Version : Help with layout please?



stfc_boy
10-27-2009, 09:06 PM
Hi,

I'm trying to recreate this file:

http://i666.photobucket.com/albums/vv29/myimg/file.jpg

With a simple list.

However, in the first blue div my bullet points are not showing up, and in the second I can't get the line heights right - anyone help?



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Website</title>
<style>

* {
padding: 0;
margin: 0;
}

body {
font: normal 11px verdana, arial, verdana, helvetica, sans-serif;
background: #ECECEC;
color: #000;
}

/** Moveable Boxes **/
.box {
background:#FFF;
padding-bottom: 6px;
width:304px;
height:200px;
border: 1px solid #CCC;
border-top:11px solid #ccc;
margin:0 9px 5px;
float:left;
display:inline;
}


.box ul { float: left; list-style-type:disc; }
.box li {list-style-type:disc; width:152px; background:#0066cc}


.box2 {
background:#FFF;
padding-bottom: 6px;
width:304px;
height:200px;
border: 1px solid #CCC;
border-top:11px solid #ccc;
margin:0 9px 5px;
float:left;
display:inline;
}


.box2 ul { float: left; list-style-type:disc; }
.box2 li {list-style-type:disc; width:152px; background:#CC0000}

</style>
</head>
<body>

<!-- box -->
<div class="box">
<ul>
<li>Aquarius</li>
<li>Aries</li>
<li>Cancer</li>
<li>Capricorn</li>
<li>Gemini</li>
<li>Leo</li>
</ul>
<ul>
<li>Libra</li>
<li>Pisces</li>
<li>Saggittarius</li>
<li>Scorpio</li>
<li>Taurus</li>
<li>Virgo</li>
</ul>
</div>
</div>

<!-- box -->
<div class="box2">
<ul>
<li>This is the first line</li>
<li>This is the second line</li>
<li>This is the first line</li>
<li>This is the second line</li>
<li>This is the first line</li>
<li>This is the second line</li>
</ul>
<ul>
<li>This is the first line</li>
<li>This is the second line</li>
<li>This is the first line</li>
<li>This is the second line</li>
<li>This is the first line</li>
<li>This is the second line</li>
</ul>
</div>
</div>

</body>
</html>

jolly_nikki
10-28-2009, 12:38 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Website</title>
<style>

* {
padding: 0;
margin: 0;
}

body {
font: normal 11px verdana, arial, verdana, helvetica, sans-serif;
background: #ECECEC;
color: #000;
}

/** Moveable Boxes **/
.box {
background:#FFF;
padding-bottom: 6px;
width:304px;
height:200px;
border: 1px solid #CCC;
border-top:11px solid #ccc;
margin:0 9px 5px;
float:left;
display:inline;
}


.box ul { float: left; list-style-type:disc; background:#0066cc;}
.box li {list-style-type:disc; width:132px; margin-left: 20px;}


.box2 {
background:#FFF;
padding-bottom: 6px;
width:304px;
height:200px;
border: 1px solid #CCC;
border-top:11px solid #ccc;
margin:0 9px 5px;
float:left;
display:inline;
}


.box2 ul { float: left; list-style:none;margin-bottom: 10px;}
.box2 li {list-style:none; width:150px; }

.box2 div { background-color:#CC0000; display: block; width:152px; float: left;}


</style>
</head>
<body>

<!-- box -->
<div class="box">
<ul>
<li>Aquarius</li>
<li>Aries</li>
<li>Cancer</li>
<li>Capricorn</li>
<li>Gemini</li>
<li>Leo</li>
</ul>
<ul>
<li>Libra</li>
<li>Pisces</li>
<li>Sagittarius</li>
<li>Scorpio</li>
<li>Taurus</li>
<li>Virgo</li>
</ul>
</div>
</div>

<!-- box -->
<div class="box2">
<div>
<ul>
<li>This is the first line</li>
<li>This is the second line</li>
</ul>

<ul>
<li>This is the first line</li>
<li>This is the second line</li>
</ul>
<ul>
<li>This is the first line</li>
<li>This is the second line</li>
</ul>
</div>
<div>
<ul >
<li>This is the first line</li>
<li>This is the second line</li>
</ul>
<ul>
<li>This is the first line</li>
<li>This is the second line</li>
</ul>
<ul>
<li>This is the first line</li>
<li>This is the second line</li>
</ul>
</div>
</div>
</div>

</body>
</html>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum