[QUOTE=Kischi;1117157]Hi, thx for the answer.
But I'm not sure I understand, I will tru the first method with the column-container. because I don't really understand much of javascript.
So do you meen just put the 2 boxes inside a container and give the boxes the same color as the container or what?
I've tried it now, how I thought you said, is it correct:
http://wearecrunch.dk/test-globeaid/
this is my css code:
Code:
#indexcontent{
background-color:#336699;
border-top:#2175a5 solid 10px;
padding:10px 10px 10px 10px;
display:inline;
position:relative;
width:421px;
float:left;
}
#indexblog {
background-color:#3333FF;
border-top:#2175a5 solid 10px;
padding:10px 10px 10px 10px;
position:relative;
width:421px;
float:left;
margin-left:100px;
/*display:inline;*/
}
#column-container {
background-color:#333366;
width:1000px;
float:left;
background-repeat:repeat-y;
}
and this is my html
HTML Code:
<div id="column-container">
<div id="indexcontent">dwqdwqf<br>
dnjkwlka<br>
dsadsa<br>
daDASDS<br>
dsadsadas<br></div>
<div id="indexblog">dsadfw<br>
few<br>
fe<br>
</div>
</div>
You are really close. Lets just tweak the css a little. Lets see if I can give a very quick explanation of what I've changed in the code below. First you'll create an image of the background you'll repeat (attached). This image will be the background of your column-container and it will repeat-y. I also put the clear/overflow because you have floating elements. For #indexblog and #indexcontent, I just removed the background color as you won't need it anymore.
Try it out and see what you get. Hope this helps
#column-container {
background: url (your image path goes here) 0 0 repeat-y;clear: both;
overflow: hidden;
width:982px;
}
#indexblog {
border-top:#2175a5 solid 10px;
padding:10px 10px 10px 10px;
position:relative;
width:421px;
float:left;
margin-left:100px;
}
#indexcontent{
border-top:#2175a5 solid 10px;
padding:10px 10px 10px 10px;
display:inline;
position:relative;
width:421px;
float:left;
}
Last edited by chrishirst; 12-10-2010 at 04:41 PM..
|