Viewing 8 replies - 1 through 8 (of 8 total)
  • I don’t see any spaces as you’re describing.

    Thread Starter Anne

    (@mellissaa)

    Oh my apologies i forgot to say it’s in the about page. I made the background div pink so you can see the lines.

    This is doing that:

    display: inline-block;

    Thread Starter Anne

    (@mellissaa)

    Ooh okay. But if I take that away won’t the boxes not sit inline with eachother.

    You should be able to float divs next to each other without using that. Are you having trouble doing so?

    Thread Starter Anne

    (@mellissaa)

    How else can you do it? I thought that was the easiest way.

    Generally:

    div.mydiv {
       float: left;
    }

    You might want to add a width: 33.3; or use fixed-width or min-width (depends on how you want it to behave on smaller screens, etc.)

    Thread Starter Anne

    (@mellissaa)

    Thank you! I had the float left and width set to 33.333 but for some reason thought that display: inline block was necessary to make it work. The lines are gone thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Div Spacing’ is closed to new replies.