开发者

CSS float clearing issue

开发者 https://www.devze.com 2023-02-10 06:05 出处:网络
I am using float and then clearing both. but still i have getting some error in the layout. can some one point out what the problem is ?

I am using float and then clearing both. but still i have getting some error in the layout. can some one point out what the problem is ?

http://uniquedl.com/3closets/about.html

i want Sneak-peek control div and sneak peek products div to be next to each other. i am using this code to make it next to each other

.grid {
    display:inline;
    floa开发者_JS百科t:left;
}

But sneek-control is taking a lot of margin to the left and not sitting below the above div block

CSS float clearing issue

i want the layout to look like this

CSS float clearing issue


If you set a height on your .intro-image to 384px same size as image it should work.

.introduction .intro-image {
    width: 288px;
    height: 384px;
}


.sneak-peek {

clear: both;
float: left;
height: 288px;
text-align: left;

}

should do it.

You also have some problems there... check IE 7 after you finish. Probably they'll clear out by themselves.

0

精彩评论

暂无评论...
验证码 换一张
取 消