Home > Web Front-end > HTML Tutorial > Two-column right adaptive layout_html/css_WEB-ITnose

Two-column right adaptive layout_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:45:50
Original
984 people have browsed it

<div class="g-bd1 f-cb">    <div class="g-sd1">        <p>左侧定宽</p>    </div>    <div class="g-mn1">        <div class="g-mn1c">            <p>右侧自适应</p>        </div>    </div></div>
Copy after login

/* 两列右侧自适应布局 */.g-bd1{margin:0 0 10px;}.g-sd1{position:relative;float:left;width:190px;margin-right:-190px;}.g-mn1{float:right;width:100%;}.g-mn1c{margin-left:200px;}
Copy after login

Left side fixed width

Right adaptive

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template