Side By Side Div Boxes


/ Published in: CSS
Save to your folder(s)

This code will create two side by side div boxes. Just adjust the width as needed.


Copy this code and paste it in your HTML
  1. /*This is the CSS*/
  2.  
  3. .box1{
  4. position: relative;
  5. width: 250px;
  6. padding: 5px;
  7. float: left;
  8. }
  9.  
  10.  
  11. -----------------
  12.  
  13. <!-- This is the HTML -->
  14.  
  15. <div class="box1">
  16. <p>Content Here</p>
  17. </div>

URL: http://codepunk.hardwar.org.uk/acss05.htm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.