Menu
Hi guys,
I’ve talked to numerous people and driven myself crazy trying to troubleshoot my new CSS layout. My right side box tops won’t show and won’t align. I don’t know what else to do with this, I’ve tried everything I can think of and no one can seem to help me.
My design is at: [URL=”http://www.heismyvision.net/anotherblessedday/index2.html”]http://www.heismyvision.net/anotherblessedday/index2.html
Please, if you think you can figure this out, HELP!
[CODE]#header { background: #C38A53 url(images/header2.jpg) top left no-repeat; height: 199px; width: 742px; [COLOR="Red"]margin: 0 auto;[/COLOR]}[/CODE]
will center the header graphic properly. All alignment can be done using margins and floats.[CODE]
* { padding: 0; margin: 0; }
body { font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif; font-size: 90%; color: #0b1731; background-color: #466387; margin: 50px 0 0 0; }
a, a:visited { background: transparent; color: #0b1731; }
a:hover, a:active { background: transparent; color: #0b1731; text-decoration: none; font-weight: bold; }
#container { width: 760px; margin: 10px auto; background: transparent; }
#header { background: #C38A53 url(images/header2.jpg) top left no-repeat; height: 199px; width: 742px; margin: 0 auto; }
#header h1 { font-size: 1.5em; margin: 20px; padding: 20px 00 20px; color: #466387; background: transparent; }
#left { float: left; width: 476px;
padding: 0px; }
#section { float: left; width: 550px; }
.section h1 { width: 476px; height: 36px; background: transparent url(images/maintop2.jpg) top left no-repeat; font-size: 20px; margin: 0px;
padding-top: 1em;
padding-left: 1em;
}
.section { width: 476px; background: transparent url(images/maincenter2.jpg) repeat-y;
}
.section p { padding: 20px 0 0 20px; font-size: 0.95em; margin: 0; }
.sectionbottom { width: 476px; height: 36px; background: transparent url(images/mainbottom2.jpg) top left no-repeat;}
.sectionbottom p { padding: 10px 0 0 10px; text-align: right; font-size: 0.85em; }
#right { float: right; width: 250px; padding: 0px;}
.right h2 { width: 250px; background: transparent url(images/topsidetop2.jpg) top left no-repeat; font-size: 20px; margin: 0px; padding-top: 1em;
padding-left: 0px;
}
.right { width: 250px; background: transparent url(images/topsidecenter2.jpg) repeat-y; }
.right p { padding: 0 0 0 30px; margin: 0; }
.rightbottom { width: 250px; height: 36px; background: transparent url(images/topsidebottom2.jpg) top left no-repeat; }
#footer { clear: both; width: 760px; font-size: 0.75em; text-align: center; padding: 20px 0 0 0; }
[/CODE]
[CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Another Blessed Day</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-- start container -->
<div id="container">
<!-- start header -->
<div id="header">
</div>
<!-- end header -->
<!-- start left side content -->
<div id="left">
<!-- begin section -->
<div class="section">
<h1>Welcome</h1>
<p>Welcome to Another Blessed Day, this site is dedicated to the music ministry of Norm Schmidt and the spreading of the Gospel to the lost and weary.
</p>
</div>
<!-- end section -->
<!-- begin section bottom -->
<div class="sectionbottom">
<p></p>
</div>
<!-- end section bottom -->
</div>
<!-- end left side content -->
<!-- begin right side -->
<div id="right">
<!-- begin right section -->
<div class="right">
<h2></h2>
<p><a href="index.html">Orders</a><br/>
<a href="index.html">Bio</a><br/>
<a href="index.html">PAID</a><br/>
<a href="index.html">Pictures</a><br/>
<a href="index.html">Comments</a><br/>
<a href="index.html">Contact</a><br/>
<a href="index.html">Home</a><br/></p>
</div>
<!-- end right section -->
<div class="rightbottom">
<!-- empty div -->
</div>
<!-- begin right section -->
<div class="right">
<h2></h2>
<p>
Email<br/>
Guestbook<br/>
Comments<br/>
</p>
</div>
<!-- end right section -->
<div class="rightbottom">
<p></p>
</div>
</div>
<!-- end right side -->
<!-- begin footer -->
<div id="footer">
<p>
Copyright 2007 Another Blessed Day. Designed by <a href="mailto:[email protected]">Cloey</a>.
</p>
</div>
<!-- end footer -->
</div>
<!-- end container -->
</body>
</html>
[/CODE]
[CODE]#container { width: [COLOR="Red"]742px[/COLOR]; margin: 10px auto; background: transparent; }
#header { background: #C38A53 url(images/header2.jpg) top left no-repeat; height: 199px;}
#left { float: left; width: 476px; padding: 0px; [COLOR="Red"]margin-left: 8px; display: inline;[/COLOR]}
.section h1 { height: [COLOR="Red"]20px[/COLOR]; background: transparent url(images/maintop2.jpg) top left no-repeat; font-size: 20px; [COLOR="Red"]padding-top: 16px;[/COLOR] padding-left: 1em; }
#right { float: right; width: 250px; padding: 0px; [COLOR="Red"]margin-right: 8px; display: inline;[/COLOR]}
.right h2 { width: 250px; background: transparent url(images/topsidetop2.jpg) top left no-repeat; font-size: 20px; [COLOR="Red"]height: 36px;[/COLOR]}[/CODE]
[CODE]* { padding: 0; margin: 0; }
body { font-family: "sans-serif", Tahoma, Verdana, Trebuchet MS; font-size: 90%; color: #0b1731; background-color: #466387; margin: 40px 0 0 0; }
a:link, a:visited { background: transparent; color: #0b1731; text-decoration: none; }
a:hover, a:active { background: transparent; color: #0b1731; text-decoration: none; font-weight: bold; }
a.nav:link, a.nav:visited { background: transparent; color: #0b1731; text-decoration: none; font-size: 120%; }
a.nav:hover, a.nav:active { background: transparent; color: #0b1731; text-decoration: none; font-weight: bold; font-size: 120%; }
#container { width: 742px; margin: 10px auto; background: transparent; }
#header { background: #466387 url(images/header.jpg) top left no-repeat; height: 199px; }
#header h1 { font-size: 1.5em; margin: 30px; padding: 20px 00 20px; color: #466387; background: transparent; }
#left { float: left; width: 476px; padding: 0px; margin-left: 8px; display: inline; }
#section { float: left; width: 550px; }
.section h1 { height: 20px; background: transparent url(images/maintop.jpg) top left no-repeat; font-size: 20px; padding-top: 16px; padding-left: 1em; }
.section { width: 476px; background: transparent url(images/maincenter.jpg) repeat-y; }
.section p { padding: 20px 0 0 20px; font-size: 0.95em; margin: 0; }
.sectionbottom { width: 476px; height: 36px; background: transparent url(images/mainbottom.jpg) top left no-repeat;}
.sectionbottom p { padding: 10px 0 0 10px; text-align: right; font-size: 0.85em; }
#right { float: right; width: 250px; padding: 0px; margin-right: 8px; display: inline; }
.right h2 { width: 250px; background: transparent url(images/topsidetop.jpg) top left no-repeat; font-size: 20px; height: 36px; }
.right { width: 250px; background: transparent url(images/topsidecenter.jpg) repeat-y; }
.right p { padding: 0 0 0 80px; margin: 0; }
.rightbottom { width: 250px; height: 36px; background: transparent url(images/topsidebottom.jpg) top left no-repeat; }
#footer { clear: both; width: 760px; font-size: 0.75em; text-align: center; padding: 20px 0 0 0; }
[/CODE]
[CODE].section p { padding: 20px [COLOR="Red"]20px[/COLOR] 0 20px; font-size: 0.95em; margin: 0; }[/CODE]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"p.s.: -choose better colors than I did.. :o
"http://www.w3.org/TR/html4/strict.dtd ">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<title></title>
<style type="text/css">
* {border:0; padding:0; margin:0;}/* Set everything to "zero" */
body {min-height:100%; height:101%;
font:x-small Arial, Verdana, sans-serif;
voice-family: ""}"";voice-family:inherit;
font-size:small;/*for IE 5.5 */
} html>body {font-size:small; height:auto;}/* Assist IE6 & <, 100% height */
font-size: small; voice-family: ""}"";
voice-family: inherit; font-size: medium;} /* Assist IE rendering height, keyword-font sizes, etc. */
p {font-size: 90%; line-height:1.3em; margin:12px 0 2px 0;}
h1, h2, h3, h4, h5, h6 {font-family: 'times new roman', arial, verdana, serif; background-color:none;
font-style:normal; font-variant:normal; font-weight:normal; margin:14px 0 4px 10px;}
h1{font-size: 1.93em;}
h2{font-size: 1.72em;}
h3{font-size: 1.52em;}
h4{font-size: 1.42em;}
h5{font-size: 1.32em;}
h6{font-size: 1.21em;}
</style>
<script type="text/javascript"><!--
// -->
</script>
<link rel="shortcut icon" href="favicon.ico"><!-- path to your favicon -->
</head>
<body>
<div style="width:200px; height:auto; position:relative; border:1px solid gray; margin:25px auto; padding:25px; background-color:blue;">
<img src="#" style="position:absolute; left:0; top:0; width:20px; height:20px; background-color:red;">
<img src="#" style="position:absolute; right:0; top:0; width:20px; height:20px; background-color:red;">
<img src="#" style="position:absolute; right:0; bottom:0; width:20px; height:20px; background-color:red;">
<img src="#" style="position:absolute; left:0; bottom:0; width:20px; height:20px; background-color:red;">
<h1 style="margin-top:15px; text-align:center">My Header</h1>
<p style="color:white;">text text text. text. text text text, text text.</p>
<p style="color:white;">text text text. text. text text text, text text.</p>
<p style="color:white;">text text text. text. text text text, text text. text text text. text. text text text, text text.</p>
<p style="color:white;"><br />
THIS BOX WILL AUTOMATICALLY EXPAND AS MORE AND MORE TEXT IS ADDED. REPLACE 'SQUARE IMAGES' WITH APPROPRIATE CURVY-EDGE IMAGES.
</p>
</div>
</body>
</html>[/QUOTE]
[CODE].section p { padding: 20px [COLOR="Red"]20px[/COLOR] 0 20px; font-size: 0.95em; margin: 0; }[/CODE]
It just needed some padding on the right - when defining padding (and margins and other things) using the shorthand method, the order is top, right, bottom, left.[/QUOTE]
Wow, that's odd! So if my padding is '0' I don't have to add a px, but if it's anything higher I have to specify my size type?[/QUOTE]
0.1.9 — BETA 5.19