Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to have DIVs right below each other?

    I've been using clear:both to have the divs aligned because it looks bad without it. How can I make it to so there is no white space in between the divs and they follow each other? IE

    How it is now:


    How I want it to be:


    Any advice?

    The website is http://ebitcoinbetting.com. Thank you!

  • #2
    New to the CF scene
    Join Date
    Aug 2013
    Location
    Michigan
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Make use of divs my friend

    Make a container div < set 2 other divs inside it with the same width to fit (float one right and one left) < check to make sure your pixel sizing/percentages are correct < place content in the left and right divs < problem solved

  • #3
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,036
    Thanks
    23
    Thanked 589 Times in 588 Posts
    Your site is throwing an error and we need to see code, because a lot of thing could cause this problem. Like, padding, margins, etc..
    Evolution - The non-random survival of random variants.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •