0

I am making a webpage with 2 divs in a div, but the 2 smaller divs aren't lining up, here is an example: example

Here is my HTML:

<div id = "creators" class = "big-part">
    <h3>Creators</h3>

    <div class = "creator_name">
            <h4>FlipFloop</h4>
            <p>text text text text text text text text text text text text text text text text text text text text text text text texttext text text text text text text text text text text text text text text text text text text text text text text texttext text text text text text text text text text text text text text text text text text text text text text text text</p>
        </div>
        <div class = "creator_name">
            <h4>TickTock</h4>
            <p>text text text text text text text text text text text text text text text text text text text text text text text text</p>
        </div>
            <!--<div class = "creator_name">
            <h4>Name</h4>
            <p>Text</p>
        </div>-->

        </div>

and my CSS:

.creator_name {
    width: 35%;
    display: inline-block;
    margin: 2% 2%;
}

when I use float: left : example2

worldofjr
  • 3,868
  • 8
  • 37
  • 49
FlipFloop
  • 1,233
  • 1
  • 14
  • 25

1 Answers1

2

try this:

.creator_name {
vertical-align:top;
}

jsfiddle link click here

Prajwal Shrestha
  • 524
  • 3
  • 12