Page 1 of 1

[SOLVED] Placement problem in template

Posted: Sat Sep 06, 2008 10:31 am
by mustis
http://www.webdezign.no/V2
I have a big white gap between the sidebar and the content, cant figure out what to do in css to fix this..

anyone?

Re: Placement problem in template

Posted: Sat Sep 06, 2008 11:37 am
by Dr.CSS
In which browser does it look ok in, I don't see big white gap...

Re: Placement problem in template

Posted: Mon Sep 08, 2008 10:42 am
by mustis
The text in content is to much to the right.
I want it to be closer to the sidebar.

It's the same in Firefox and IE

Re: Placement problem in template

Posted: Mon Sep 08, 2008 11:03 am
by Dr.CSS
Why you have content on right float left?...

Re: Placement problem in template

Posted: Mon Sep 08, 2008 1:28 pm
by mustis
* {
margin: 0;
padding: 0;
}

body {
background: #81a0cb url("images/back.gif") repeat;
text-align: center;
font: normal 11px/18px verdana, arial, tahoma, sans-serif;
color: #333;
padding-top: 40px;
}

a {
color: #666;
text-decoration: none;
}

a:visited {
text-decoration: underline;
}

a:hover {
color: #ccc;
}

#header {
width: 670px;
height: 210px;
background: #ccc url("images/header1.jpg") no-repeat;
background-position: top right;
}

#wrapper {
width: 670px;
background: #fff url("images/sidebar1.gif") repeat-y;
background-position: 0 0;
border: solid 10px #fff;
margin: 0 auto;
text-align: left;
}

h1 {
width: 190px;
height: 30px;
background-color: #3d6dae;
margin: 1px 1px 1px 0;
float: left;
font: bold 16px/30px arial, verdana, tahoma, sans-serif;
padding-left: 5px;
color: #fff;
cursor: default;
}

h1:first-letter {
color: #f00;
text-decoration: underline;
}

h2 {
width: 464px;
height: 30px;
background-color: #3d6dae;
float: left;
font: bold 16px/30px arial, verdana, tahoma, sans-serif;
padding-left: 10px;
color: #fff;
margin-top: 1px;
cursor: default;
}

#nav {
list-style: none;
z-index: 2;
border-right: 1px solid #fff;
height: 210px;
width: 195px;
}

#nav li a {
color: #fff;
font: normal 11px/24px verdana, arial, tahoma, sans-serif;
display: block;
width: 185px;
height: 24px;
background-color: #81a0cb;
border-bottom: 1px solid #fff;
padding-left: 10px;
text-decoration: none;
}

#nav li a:hover {
background-color: #3d6dae;
}

#current a {
background-image: url("images/bullet.gif");
background-repeat: no-repeat;
background-position: 100% 50%;
}

#sidebar {
width: 184px;
background-color: #ccc;
float: left;
position: relative;
left: -49px;
margin-left: -147px;
border-top: 1px solid #fff;
font: normal 10px/18px verdana, arial, tahoma, sans-serif;
padding-left: 5px;
padding-top: 5px;
}

img {
border: none;
}

a img {
margin-bottom: 10px;
/*border: 1px solid #fff;*/
}

a:hover img {
border-color: #81a0cb;
}

#content {
float: left;
width: 425px;
margin: 2px 0 0 2px;
}

p {
margin-bottom: 20px;
}

p:first-line {
font-weight: bold;
}

#footer {
text-align: center;
clear: both;
width: 400px;
margin-left: 163px;
}