不能得到正确的中间部分留在右边 [英] Can't get right portion of middle to stay on the right

查看:79
本文介绍了不能得到正确的中间部分留在右边的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,所以基本上是怎么回事是我有我的网站设置到目前为止,顶部与我的标志,然后在中间我想要三个盒子。我可以得到左边的一个去左边的顶部,只是在我想要它与第二个相同。但第三次,当我使用浮动他不会排队,像我告诉他。有人可以请我出去吗?非常感谢!在这里输入代码

Okay everybody so basically what's going on is I have my site setup so far with a top portion with my logo then in the middle i want three boxes. I can get the one on the left to go to the left underneath the top just where I want it same with the second. But the third when I use float right he wont line up like I told him to. Can someone please me out with this? Would really appreciate it!enter code here

fiddle here

<DOCTYPE! HTML>
    <html>
    <head>
    <meta charset="utf-8" />
    <title>Welcome</title>
    <link rel="stylesheet" href="css/first.css" />
    <link rel="stylesheet" href=css/animations.css />
    <link href='http://fonts.googleapis.com/css?family=Josefin+Slab' rel='stylesheet' type='text/css'>
    </head>


    <body>
        <div class="wrap">

        <div class="top_portion">

        <div class="logo">
            <img src="img/2a685fsaq.png"/>
        </div>
        </div>
    <div class="center">
        <div class="cleft_portion">

        </div>

        <div class="mid_portion">

        </div>

        <div class="cright_portion">

        </div>
    </div>

    </div>

    </body>

    </head>

    </html>


推荐答案

您的.mid_portion不是浮动的。也应该向左浮动。

Your .mid_portion is not floated. should also need to be floated left.

这篇关于不能得到正确的中间部分留在右边的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆