besides using frames does anybody know if there is a way to center content vertically in a webpage so it doesn't matter what resolution the surfer's monitor is set at the content is centered vertically on his screen?
Vertically Centering Content
Collapse
X
-
Vertically Centering Content
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!Tags: None -
-
I use scotch tape.Originally posted by RocHard
Tables?For rent - ICQ 127-027-910
Click here for more detailsComment
-
doh....... i get horizontal and vertical mixed up.
I mean centering it North to South, on the Y axis. Old <center> tag still works nicely to center things on the X axis.
thought maybe there was some hahahahahahahahahaha or CSS code that could do what I want but so far no luck.
frames work but i hate frames.I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!Comment
-
North to south is vertical.Originally posted by Mutt
doh....... i get horizontal and vertical mixed up.
I mean centering it North to South, on the Y axis. Old <center> tag still works nicely to center things on the X axis.
thought maybe there was some hahahahahahahahahaha or CSS code that could do what I want but so far no luck.
frames work but i hate frames.
Comment
-
You'd have to use hahahahahahahahahaha as far as I know.
But it'll be tough, because even if 1000 people visit your site at 800x600, the center of the browser can be different for all of them depending on what toolbars they're showing and how they have em set up.
Bad Girl Bucks - 50% Revshare through CCBill.
Promote BrandyDDD, Pixie's Pillows, Action Allie and more!
Phoenix Forum Pics | Webmaster Access Montreal pics
email: psyko514(a)gmail.com | icq: 214-702-014Comment
-
Create a table. Set the height to 100%. Any and all content on the page must be within the cell of this table for the content of the page to be centred.
<table height="100%" align="center">
<tr><td>
<IMG SRC="imagegoeshere.jpg">
</td></tr>
</table>
Hope that's what you were after.26 + 6 = 1Comment
-
quote him... you'll see what he did.Originally posted by asher
how do you put in html with out it turning into html?Comment
-
i don't think that works, but admittedly i haven't tried that since NS and IE 4 generation of browsers. I'll try it, maybe the newer browsers deal better with % height tags these days.I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!Comment
-
Originally posted by SoundMan
crop-cgi-php then you have to go south of the border and grab a table from TacoBell and use auto resize and e-mail the page to 500 surfers to make sure that the fucker is centered!
Hope that helped!
Comment
-
you forgot valign=middleOriginally posted by chodadog
Create a table. Set the height to 100%. Any and all content on the page must be within the cell of this table for the content of the page to be centred.
<table height="100%" align="center">
<tr><td>
<IMG SRC="imagegoeshere.jpg">
</td></tr>
</table>
Hope that's what you were after.
align=center is for the horizontal alignment.SharkyComment

Comment