CSS Layout Create 2 Column Layout, First Column Fixed Width, 100 ...

Menu
    • Layout
    • HTML CSS 1 Column
    • HTML CSS 100 Height
    • HTML CSS 100 width
    • HTML CSS 2 Column
    • HTML CSS 3 Column
    • HTML CSS 3 Row
    • CSS Absolutely position a CSS3 keyframe animation
    • CSS Center div with unknown size and scrollbar vertically and horizontally
    • HTML CSS Chat
    • HTML CSS Column
    • HTML CSS Column Alignment
    • HTML CSS Column Div
    • HTML CSS Column Footer Header
    • HTML CSS Column Layout 1
    • HTML CSS Column Layout 2
    • HTML CSS Column Layout 3
    • HTML CSS Column Layout 4
    • HTML CSS Column Margin
    • HTML CSS Column Responsive
    • HTML CSS Column Scroll
    • HTML CSS Column Size
    • HTML CSS Layout
    • HTML CSS Example 2
    • CSS Layout Flex
    • HTML CSS Flex Align
    • HTML CSS Flex Center
    • HTML CSS Flex Column
    • HTML CSS Flex Item
    • HTML CSS Flex Text
    • HTML CSS Flexbox
    • HTML CSS Float Button
    • HTML CSS Float Center
    • HTML CSS Float Child
    • HTML CSS Float Clear
    • HTML CSS Float Example 1
    • HTML CSS Float Example 2
    • HTML CSS Float Example 3
    • HTML CSS Float Height
    • HTML CSS Float Input
    • HTML CSS Float Left
    • HTML CSS Float Line
    • HTML CSS Float Margin
    • HTML CSS Float Parent
    • HTML CSS Float Position
    • HTML CSS Float Responsive
    • HTML CSS Float Right
    • HTML CSS Float Space
    • HTML CSS Float Text
    • HTML CSS Float Width
    • HTML CSS Fluid
    • HTML CSS Fluid Column
    • HTML CSS Footer
    • HTML CSS Form
    • HTML CSS Full Page
    • HTML CSS Grid
    • HTML CSS Image
    • HTML CSS List
    • HTML CSS Overflow
    • HTML CSS Overflow Auto
    • HTML CSS Overflow Hidden
    • HTML CSS Overflow Scroll
    • HTML CSS Responsive
    • HTML CSS Responsive Height
    • HTML CSS Responsive Video
    • HTML CSS Sidebar
    • CSS Layout Stack
    • CSS Table
    • HTML CSS Text
CSS Layout Create 2 column layout, first column fixed width, 100% height, 2nd column 100% width and height PreviousNext

CSS Style

The CSS style to do "CSS Layout Create 2 column layout, first column fixed width, 100% height, 2nd column 100% width and height" is

Copy html, body { height:100%; } .wrapper { height:100%; } .left_container { float:left; width:200px; background:#f00; min-height:100%; } .right_container { min-height:100%; background:#000; margin-left:200px; color:#f00; }

HTML Body

The body html is

Copy <body> <div class="wrapper"> <div class="left_container"> Hello </div> <div class="right_container"> World this is just a random junk text </div> </div> </body> Open in separate windowView full source codeCopy<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> html, body { height: 100%; } .wrapper { height: 100%; } .left_container { float: left; width: 200px; background: #f00; min-height: 100%; } .right_container { min-height: 100%; background: #000; margin-left: 200px; color: #f00; } </style> </head> <body> <div class="wrapper"> <div class="left_container">Hello</div> <div class="right_container">World this is just a random junk text</div> </div> </body> </html> PreviousNext

Related

  • CSS Layout Create 2 column DIV layout
  • CSS Layout Create 2 column div layout: right column with fixed width, left fluid
  • CSS Layout Create 2-Column Div Layout with both columns fluid
  • CSS Layout Create 2 column layout, first column fixed width, 100% height, 2nd column 100% width and height
  • CSS Layout Create 2 Column layout, how to apply border such that taller div dictates border height
  • CSS Layout Create 2 column layout in a series of divs
  • CSS Layout Create 2 column layout issue - stacking and floating

Từ khóa » Html Css 2 Columns Width