Reply
Center align, vertically???
Old 07-13-2003, 05:33 PM Center align, vertically???
Skilled Talker

Posts: 99
I used to use a table with 100% width and height, then align center and valign middle... however, this doesn't seem to work when there is content above this table... I end up getting a scroll bar, and it is not aligned vertically in the screen.

How can I align something centered on the page (or at least centered in the REST OF THE PAGE)?

Thanks
__________________
SonicMailer Pro - Professional PHP mailing list manager
EXHAUSTIVE list of new & improved features implemented!
http://www.triexa.com/products/smpro/
KandieMan101 is offline
Reply With Quote
View Public Profile Visit KandieMan101's homepage!
 
When You Register, These Ads Go Away!
Old 07-16-2003, 03:18 PM
c2k
c2k's Avatar
Skilled Talker

Posts: 67
Location: Germany
Hi,
the easiest thing would be you just include whatever you had abouve the table in the table.
So the whole table will centered again. Or did I misunderstand you?
c2k is offline
Reply With Quote
View Public Profile
 
Old 07-16-2003, 03:40 PM
Skilled Talker

Posts: 99
Well, I want my header image to touch the top of the window...

And then, just a simple box that would be centered on the REMAINING PORTION of the page
__________________
SonicMailer Pro - Professional PHP mailing list manager
EXHAUSTIVE list of new & improved features implemented!
http://www.triexa.com/products/smpro/
KandieMan101 is offline
Reply With Quote
View Public Profile Visit KandieMan101's homepage!
 
Old 07-16-2003, 04:00 PM
c2k
c2k's Avatar
Skilled Talker

Posts: 67
Location: Germany
Got ya.

Different possibilities that come to my mind:
- using frames

- determine the resolution of the user and move the table to the middle of the site (using JS)

- optimize it for 800x640 and place the table in the middle of the site (absolute positioning a CSS)

If that's not what you need I cannot help you
c2k is offline
Reply With Quote
View Public Profile
 
Old 07-16-2003, 04:01 PM
Skilled Talker

Posts: 99
Hi... yah I thought about using frames... never thought about JS although that could potentially work...

Oh well, I guess it doesn't *need* to be centered but thanks anyways!
__________________
SonicMailer Pro - Professional PHP mailing list manager
EXHAUSTIVE list of new & improved features implemented!
http://www.triexa.com/products/smpro/
KandieMan101 is offline
Reply With Quote
View Public Profile Visit KandieMan101's homepage!
 
Old 07-16-2003, 04:06 PM
c2k
c2k's Avatar
Skilled Talker

Posts: 67
Location: Germany
Quote:
never thought about JS although that could potentially work...
Yeah, but if you should use JS think about the user not having JS being enabled. So keep a backup plan so users won't be disappointed viewing your site.
c2k is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Center align, vertically???
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12650 seconds with 12 queries