This works good for me. I have divided the screen into two halfs: 20% and 80%:
<div style="width: 20%; float:left">
#left content in here
</div>
<div style="width: 80%; float:right">
#right content in there
</div>
More Related Contents:
- Floating elements within a div, floats outside of div. Why?
- CSS Floating Divs At Variable Heights [duplicate]
- Advantages of using display:inline-block vs float:left in CSS
- How to create equal height columns in pure CSS [duplicate]
- Make outer div be automatically the same height as its floating content
- How to get Floating DIVs inside fixed-width DIV to continue horizontally?
- CSS text ellipsis when using variable width divs
- Div side by side without float
- CSS Floating Divs with different height are aligned with space between them
- Stacking DIVs on top of each other?
- How to draw this chart in html and CSS? [closed]
- Change a HTML5 input’s placeholder color with CSS
- Canvas is stretched when using CSS but normal with “width” / “height” properties
- Remove padding from columns in Bootstrap 3
- Center a ‘div’ vertically in a % height ‘div’
- Single huge .css file vs. multiple smaller specific .css files? [closed]
- How to display a reverse-ordered list in HTML?
- CSS div element – how to show horizontal scroll bars only?
- How can I remove space (margin) above HTML header?
- Internet Explorer z-index bug?
- How to customize the HTML5 input range type looks using CSS?
- For div to extend full height
- SPAN vs DIV (inline-block)
- how to rotate text left 90 degree and cell size is adjusted according to text in html
- Set div height equal to screen size
- Fading out text at bottom of a section with transparent div, but height stays under section after overlaying div
- Expanding the parent container with 100% height to account for floated content
- Creating CSS3 Circles connected by lines
- Is there a way to style HTML5’s range control?
- Prevent floated divs from wrapping to new line