1

I have 2 divs side by side with one having more content than the other.

These are what the divs look like together.

enter image description here

I use display: inline-block for the divs to go side by side. I used float left but I didn't work out to good.

Is there any solutions for this problem?

JSFiddle

Hunter Turner
  • 6,804
  • 11
  • 41
  • 56
iTzzKoLT
  • 13
  • 3

1 Answers1

1

Instead of using:

display:inline-block;

Use:

display:table; 

Becuase you are already using floating for both div. Hope this will work for you.

devpro
  • 16,184
  • 3
  • 27
  • 38