Thread: Html code help

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

    Html code help


    What is the html code to make horizontal boxes i need to make some boxes go from left to right but all i can find is on top of each other, where the boxes are next to each other, and will this affect the page width on my site.
    Someone told me use DIV tags but how do i put this in HTML code?.
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2012
    Posts
    119
    Rep Power
    32
    It is not HTML code you need, but CSS. For example (basic)

    CSS:
    Code:
    .box { 
      float: left;
      width: 200px;
      margin-left: 10px;
    }
    HTML:
    Code:
    <div class="box">
      <!-- Content of box here -->
    </div>
    <div class="box">
      <!-- Content of box here -->
    </div>
    <div class="box">
      <!-- Content of box here -->
    </div>

IMN logo majestic logo threadwatch logo seochat tools logo