I have been sitting for a while to come up with a solution to a problem. I want to make a website that consists of three columns (left, center, right). These three will together cover the entire screen width. One column will consist of a fixed pixel value and the other two columns should be as wide that the middle column is centered on the screen.
The reason I need the left and right columns is because I want to hide things behind them, and then animate these things into the center column.
Anyone have a solution?
I’m not happy about the width: 10000% bit on this, maybe someone can come up with a cleaner solution but I think this will do what you’re describing. These kinds of layouts are a little tricky when you’re looking for a pure CSS solution.
HTML:
CSS:
http://jsfiddle.net/fLH9T/