I've come up with a non-frame version of this site:
However, the owner doesn't like my version because the content in the
center sits too high in the center part, which wasn't a problem with
the frames.
The advantage of frames is that you can have a height based on a
percent of the frame, even when the frame takes up less than 100% of
the window. I'm trying to figure out how to do this CSS. I tried
setting padding:10% but the CSS read the 10% to be 10% of the whole
window, not the enclosing element.
The thing is, my design looked reasonable on monitors supporting
average sizes (1000 x 800) but she has a huge monitor and she likes to
look at the site with her window maximized.
If you look at the site you'll see the center frame is a gray area in
the middle. I recreated that as a DIV in the non-frame version. Is
there a way to get CSS to set padding based on a percent of just the
element that the padding is being applied to?
However, the owner doesn't like my version because the content in the
center sits too high in the center part, which wasn't a problem with
the frames.
The advantage of frames is that you can have a height based on a
percent of the frame, even when the frame takes up less than 100% of
the window. I'm trying to figure out how to do this CSS. I tried
setting padding:10% but the CSS read the 10% to be 10% of the whole
window, not the enclosing element.
The thing is, my design looked reasonable on monitors supporting
average sizes (1000 x 800) but she has a huge monitor and she likes to
look at the site with her window maximized.
If you look at the site you'll see the center frame is a gray area in
the middle. I recreated that as a DIV in the non-frame version. Is
there a way to get CSS to set padding based on a percent of just the
element that the padding is being applied to?
Comment