Need help in html

Discussion in 'HTML & Website Design' started by mohsingr8, Oct 16, 2012.

  1. #1
    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, you can see example here <a href="http://www.carinsurancequotesinformation.com&quot;>car insurance quotes</a> 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?.
     
    mohsingr8, Oct 16, 2012 IP
  2. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #2
    Hi, maybe this will help you, you need to float the boxes.

    Say this is your HTML:
    <div class="box">box content here</div>
    HTML:
    Then you'd have something like this in the css, while adjusting the margin which provides space between and around the boxes.
    .box {
    float: left;
    margin: 5px;
    }
    Code (markup):
    Of course, you can add more to your css to give the boxes a border, size, padding, etc.
     
    Colleen, Oct 16, 2012 IP
  3. mnalam

    mnalam Member

    Messages:
    47
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    38
    #3
    Try to use Marque for this work
     
    mnalam, Oct 16, 2012 IP
  4. akhileshyadav

    akhileshyadav Member

    Messages:
    112
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #4
    akhileshyadav, Oct 21, 2012 IP
  5. jainteq

    jainteq Member

    Messages:
    33
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #5
    Yes code can use like this
    <marquee behavior="slide" direction="left"> xyz </marquee>
     
    jainteq, Oct 22, 2012 IP
  6. creativewebmaster

    creativewebmaster Active Member

    Messages:
    654
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    78
    #6
    Its easy to put DIV and HTML website for example: <div class="box">content here</div>
     
    creativewebmaster, Oct 22, 2012 IP
  7. webeveron

    webeveron Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #7
    You can take help from w3schools.com for any HTML related query.
     
    webeveron, Oct 22, 2012 IP
  8. g r hasib

    g r hasib Peon

    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You can use html tag
    <div class="Box">
    and css file
    .Box
    {
    use float,margin and padding.
    }
     
    g r hasib, Nov 3, 2012 IP