Number of columns in “full-width” PSD design

丶灬走出姿态 提交于 2019-12-25 03:27:43

问题


I have one PSD design, which 1980px (full-width), and I need to convert it to HTML, using Bootstrap 3.

I do know that Bootstrap 3 has an option to fluid grids, but my question is **how can I count number of columns needed for each section on website? **

If this is that, 1980px design:

How can I know how many columns to set for the black, red, and blue section?


回答1:


Here's an overlay of columns on your example:

So in this case, your html would look something like this:

<div class="row">
    <div class="col-sm-2">
        <p>Black Column</p>
    </div>
    <div class="col-sm-6">
        <p>Red Column</p>
    </div>
    <div class="col-sm-4">
        <p>Blue Column</p>
    </div>
</div>

See this working demo



来源:https://stackoverflow.com/questions/28633735/number-of-columns-in-full-width-psd-design

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!