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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -