Davert2012-11-11 13:17:35
Davert, 2012-11-11 13:17:35

100% width in fixed grid

Tell me, is there any way using CSS to make the element inside the container with a fixed length stretch to the entire page?

#container {
margin: 0 auto;
width: 960px;
#container .outer {

The outer element should stretch to the full width. How?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Makito, 2012-11-11

maybe like this

MT, 2012-11-11

No, CSS in this respect (as in many others) frankly sucks .
Typically, such a layout is done in horizontal stripes with 100% width, inside each of which a block of fixed width is centered horizontally.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question