简体   繁体   中英

CSS - Elastic layout, 1 fluid + 1 fixed column, center aligned

This CSS challenge is really puzzling me. Here's what I'm trying to do...

  • have an elastic layout (ie the container is max-width: 1200px min-width: 960px)
  • have the container be center aligned.
  • where the left column is fluid and expands to the highest possible width in the elastic constraints.
  • and the right column is fixed to say 200px

Can anybody enlighten me?

The main part is keeping the left column stay fluid while the right is not.

The left column should have a wrapper, that wrapper should have a margin-right of 200px; The left column should be 100% width;

The right column should float right, have absolute positioning and have 200px of width.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM