html - How to position 2 divs within a larger one? -


i'm trying recreate this: enter image description here however, i'm having trouble positioning everything. what's best way go through this?

current html:

<div id="container">   <div class="wrap">     <div id="interview">           <h1>interview: john hunt</h1>         </div>       <div id="article">         <h2>article: women in surfing</h2>       </div> </div> 

current css:

#container{ width:918px; height:429px; background-color:#cdcccc; clear:both;}  .wrap{ width: 620px; margin-left:10px; margin-top:10px;}  #interview{ width:652px; height:179px; background-color:#fff;}  #article{ width:652px; height:179px; background-color:#fff;} 

by default div elements on top of each other, if want subscribe section on right have float right.

and wrap left div's in parent container div. that's basic idea.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -