|
Posted by rf on 07/16/07 11:46
"windandwaves" <nfrancken@gmail.com> wrote in message
news:1184584972.804056.100660@x35g2000prf.googlegroups.com...
>> Screen size is irrelevant. Window size is. In any case you have fallen
>> into
>> the negative margin trap. Change the CSS very slightly and it would be
>> usable even at 800x600, albeit with a horizontal scroll bar.
>
> Hi Richard
>
> How can I:
>
> a. get the content to sit in the middle of the page if the page is
> taller than the height of the content
By "page" I assume you mean browser canvas area.
Why would you want to? Does your client want this? If so then your client
needs some education on how a web page actually works. Do all of your leters
home to your Mother sit in the very middle of your peice of paper? Nope. You
start at the top and finish wherever you finish.
> b. get the page to sit at the top with a vertical scroll bar if the
> content is taller than the height of the window
This is the default browser behaviour.
> I can do it like this:
>
> <table><tr><td valign="middle" align="center">my content</td></tr></
> table>
>
> but I can not achieve exactly the same thing using css.
>
> do you have any suggestions in this area?
Consider that what you want is not part of the media you are writing to?
HTML (and the CSS that style it) is about laying out stuff top to bottom,
left to right, on a canvas, the canvas your viewer allows you to draw in.
Nothing more. You are trying for the *more* and it won't happen easily.
--
Richard.
Navigation:
[Reply to this message]
|