Gus Richter <gu********@netscape.net> wrote:
Steve Pugh wrote: Funny definition of 'all'. It works in IE5 and that's about it. In
Opera and Firefox there's a horizontal scrollbar (because the green
bordered box has a width of 100%) and in IE6 it falls apart completely
(same cause). Remove the width: 100% from .inside and it will work
better.
Aside from the fact that you're right about the width, the majority of
your response is a negative putdown of the solution.
Because the solution failsed in three out of the four browsers I
tested it in. That demonstrates a certain lack of care on your part.
Fix the width and it worked better.
But it works with the sample copy and image size that you used.
As you used absolute positioning then it is entirely possible that in
real world situations some of the text will extend off the top of the
page and be impossible to reach with scrolling.
We don't know what the actual height of the image will be, we don't
know how long the actual heading and subheading will be. We don't know
what the user's font size will be and we don't know what the user's
window width will be.
As the heading and subheading have their _bottom_ fixed a set distance
from the _top_ of the page and as, being absolutely positioned, they
don't contribute to the height of their parent it is entirely possible
that at some point the text will extend off the top of the screen.
This is a typical downside to using aboslute positioining and one that
people should be aware of.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>