celticsaddict
02-19-2008, 09:40 AM
Hi,
Hope I've done a fair job of creating a decent title.
http://tinyurl.com/3xfgg9
*Summary: I have a grey right floating column and a bordered left floating left-content column.
I'd like the bordered column to disappear behind the grey column instead of having the white gutter space.
I would also like to know how to continue the grey column to whatever height the content column is. Right now I "hacked" the grey bar down using several paragraph tags.
/summary*
Here is my tinyurl of what I'm on for a client: http://tinyurl.com/3xfgg9
I have a layout with a header, and 3 floats (2 left, 1 right) all contained in a wrapper div.
My issues are with my #content-right div and with my #content-left div.
1) I'd like my right grey div to stretch to the height of content-left.
Do I need to wrap both in a left float div to achieve this?
2) I would like to have the bottom border line of the left-content to dissapear behind the grey bar, instead of get cut off. Is proper procedure to make the left-content div larger and stack it behind the grey div using z-index?
Or can I create an image that joins a black line to the grey area, and align it to the bottom of a div with a high z-index?
Or clear both columns with a div with the line-to-grey image and position it top:-100?
Thank you for reading and possibly helping me out.
Go Celtics!
Here is my CSS:
/* CSS Document */
* {
background-color : #ffffff;
margin : 0;
padding : 0;
font-family:Arial, Helvetica, sans-serif;
}
.headline {
font-size : 18px;
font-weight : bold;
margin-left : 15px;
}
#div-img {
background : url(truck-img.gif) no-repeat top right;
display : block;
height : 111px;
z-index : 3;
position : relative;
}
#header-logo {
background : url(header-bgv2.gif);
height : 116px;
position : relative;
overflow : hidden;
top : -17px;
z-index : 1;
}
#header-logo .h1title {
position : absolute;
margin-left : 140px;
font-size : 32px;
left : 140px;
top : 35px;
color : #fff;
background : transparent;
}
#wrapper {
margin : 0 auto;
width : 850px;
}
#main-menu {
float : left;
width : 170px;
line-height : 3;
}
#main-menu a {
text-decoration : none;
color: #CC0033;
font-weight:bold;
}
#content-wrap {
float : left;
height : 500px;
}
#content-left {
width : 500px;
float : left;
border-left-width : 1px;
border-left-style : solid;
border-left-color : #000000;
border-bottom-width : 1px;
border-bottom-style : solid;
border-bottom-color : #000000;
margin-bottom : 10px;
position : relative;
top : -15px;
z-index : 99;
}
#content-right {
width : 160px;
float : right;
background : #ccc;
position : relative;
top : -35px;
z-index : 10;
}
#content-right p {
font-family : Arial, Helvetica, sans-serif;
font-size : 12px;
line-height : 22px;
margin-top : 10px;
margin-right : 15px;
margin-bottom : 15px;
margin-left : 15px;
background : #ccc;
}
#content-left p {
font-family : Arial, Helvetica, sans-serif;
font-size : 14px;
line-height : 22px;
margin-top : 10px;
margin-right : 10px;
margin-bottom : 10px;
margin-left : 20px;
}
#footer{
clear:both;
background: #fff;
height:16px;
text-align:center;
font-size:12px;
}
Hope I've done a fair job of creating a decent title.
http://tinyurl.com/3xfgg9
*Summary: I have a grey right floating column and a bordered left floating left-content column.
I'd like the bordered column to disappear behind the grey column instead of having the white gutter space.
I would also like to know how to continue the grey column to whatever height the content column is. Right now I "hacked" the grey bar down using several paragraph tags.
/summary*
Here is my tinyurl of what I'm on for a client: http://tinyurl.com/3xfgg9
I have a layout with a header, and 3 floats (2 left, 1 right) all contained in a wrapper div.
My issues are with my #content-right div and with my #content-left div.
1) I'd like my right grey div to stretch to the height of content-left.
Do I need to wrap both in a left float div to achieve this?
2) I would like to have the bottom border line of the left-content to dissapear behind the grey bar, instead of get cut off. Is proper procedure to make the left-content div larger and stack it behind the grey div using z-index?
Or can I create an image that joins a black line to the grey area, and align it to the bottom of a div with a high z-index?
Or clear both columns with a div with the line-to-grey image and position it top:-100?
Thank you for reading and possibly helping me out.
Go Celtics!
Here is my CSS:
/* CSS Document */
* {
background-color : #ffffff;
margin : 0;
padding : 0;
font-family:Arial, Helvetica, sans-serif;
}
.headline {
font-size : 18px;
font-weight : bold;
margin-left : 15px;
}
#div-img {
background : url(truck-img.gif) no-repeat top right;
display : block;
height : 111px;
z-index : 3;
position : relative;
}
#header-logo {
background : url(header-bgv2.gif);
height : 116px;
position : relative;
overflow : hidden;
top : -17px;
z-index : 1;
}
#header-logo .h1title {
position : absolute;
margin-left : 140px;
font-size : 32px;
left : 140px;
top : 35px;
color : #fff;
background : transparent;
}
#wrapper {
margin : 0 auto;
width : 850px;
}
#main-menu {
float : left;
width : 170px;
line-height : 3;
}
#main-menu a {
text-decoration : none;
color: #CC0033;
font-weight:bold;
}
#content-wrap {
float : left;
height : 500px;
}
#content-left {
width : 500px;
float : left;
border-left-width : 1px;
border-left-style : solid;
border-left-color : #000000;
border-bottom-width : 1px;
border-bottom-style : solid;
border-bottom-color : #000000;
margin-bottom : 10px;
position : relative;
top : -15px;
z-index : 99;
}
#content-right {
width : 160px;
float : right;
background : #ccc;
position : relative;
top : -35px;
z-index : 10;
}
#content-right p {
font-family : Arial, Helvetica, sans-serif;
font-size : 12px;
line-height : 22px;
margin-top : 10px;
margin-right : 15px;
margin-bottom : 15px;
margin-left : 15px;
background : #ccc;
}
#content-left p {
font-family : Arial, Helvetica, sans-serif;
font-size : 14px;
line-height : 22px;
margin-top : 10px;
margin-right : 10px;
margin-bottom : 10px;
margin-left : 20px;
}
#footer{
clear:both;
background: #fff;
height:16px;
text-align:center;
font-size:12px;
}