Forum Moderators: not2easy

Message Too Old, No Replies

float right problems

         

jansan22

12:44 pm on Jul 14, 2007 (gmt 0)

10+ Year Member



The page to illustrate problem: <link removed>

My problem is that I want to control the distance between the right box from the left. Meaning that if I want the right box to be 5px from the leftt box that should be possible yes?
At the moment I cant get that to work correctly with float right.

CSS:

#wrapper{
width:1020px;
margin:auto;
background-color:#FFFFFF;
text-align:left;
padding:0 18px 18px 18px;}
#afsnit_1 {

position:relative;
float:left;
height:170px;;
width:750px;
border:#000000 solid thin;

}

#afsnit_2 {
position:relative;
float:right;
height:170px;
width:225px;
border:#000000 solid thin;
background-color:#1d586e;
}

Html:

<body>
<div id="wrapper">
<div id="afsnit_1"></div>
<div id="afsnit_2"></div>
</div>
</body>

[edited by: encyclo at 1:23 am (utc) on July 15, 2007]
[edit reason] See Guide to Posting Code [webmasterworld.com] [/edit]

jansan22

1:06 pm on Jul 14, 2007 (gmt 0)

10+ Year Member



solved the problem by floating both left, and putting a mrgin left on afsnit_2.

Sorry for the link btw, didnt catch that disclaimer.