Answer the question
In order to leave comments, you need to log in
How to calculate the width of a div?
I make the central block (red) a fixed width of 1024px and center align margin:0 auto;
But how do I add the outer blocks so that they stretch indefinitely, but at the same time the central one is always positioned in the center?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question