0

I am working on a mobile website with four divs that need to be positioned according to the width of the parent div. I need the divs to divide up the space in between evenly. Here are a few examples:

When the width is 500px it might look something like this,

img1

and when it is 300px,

img2

Cameron
  • 632
  • 9
  • 24

1 Answers1

1

Check the following article: Center Multiple DIVs with CSS.

There is a this similar SO question also.

Community
  • 1
  • 1
Leonel Machava
  • 1,501
  • 11
  • 19