How should I make this with CSS:
I would like to have 2 divs
or more and their width
should be in percent
, but the margin between the divs should be fixed, in this example 30px
The problem for me is the margin between the two divs because I can put the divs into a bigger div and set left and right padding to 30px and thats ok, but what should I do with the margin between the two divs?
If I try to add for example to the first div margin-right:30px;
then the width of the div will be 70% + 30px
what will be overall greater than 100% and the second div will fall down.
So what is the solution for this?