Vertically Centering Content

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mutt
    Too lazy to set a custom title
    • Sep 2002
    • 34431

    #1

    Vertically Centering Content

    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?
    I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
  • Rochard
    Jägermeister Test Pilot
    • Dec 2001
    • 75733

    #2
    Tables?
    Herschel Savage
    Brooklyn, NY

    Comment

    • Space Puppy
      So Fucking Banned
      • Nov 2003
      • 817

      #3
      align="center" on each image tag

      Comment

      • eroswebmaster
        March 1st, 2003
        • Jul 2001
        • 20295

        #4
        Originally posted by RocHard
        Tables?
        I use scotch tape.
        For rent - ICQ 127-027-910
        Click here for more details

        Comment

        • Mutt
          Too lazy to set a custom title
          • Sep 2002
          • 34431

          #5
          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

          • Shoehorn!
            Die With Your Boots On
            • Oct 2003
            • 22872

            #6
            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.
            North to south is vertical.

            Comment

            • SoundMan
              So Fucking Banned
              • Nov 2003
              • 3471

              #7
              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

              • Webby
                Too lazy to set a custom title
                • Oct 2002
                • 14956

                #8
                XXX TLD's - Another mosquito to swat.

                Comment

                • psyko514
                  See sig. Join Epic Cash.
                  • Oct 2002
                  • 22366

                  #9
                  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-014

                  Comment

                  • chodadog
                    Confirmed User
                    • Apr 2002
                    • 9736

                    #10
                    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.

                    &lt;table height="100%" align="center">
                    &lt;tr>&lt;td>
                    &lt;IMG SRC="imagegoeshere.jpg">
                    &lt;/td>&lt;/tr>
                    &lt;/table>

                    Hope that's what you were after.
                    26 + 6 = 1

                    Comment

                    • Voodoo
                      ♥ ♦ ♣ ♠
                      • Sep 2002
                      • 10600

                      #11

                      "I'm selflessly supporting the common good, but only coincidentally looking out for No.1."

                      Comment

                      • Ash@phpFX
                        Confirmed User
                        • Nov 2003
                        • 4292

                        #12
                        table height=100% align=center
                        tr
                        td align=center valign=center
                        shit here
                        /td
                        /tr
                        /table
                        Last edited by Ash@phpFX; 01-18-2004, 12:41 AM.

                        Comment

                        • Ash@phpFX
                          Confirmed User
                          • Nov 2003
                          • 4292

                          #13
                          how do you put in html with out it turning into html?

                          Comment

                          • The Truth Hurts
                            Zph7YXfjMhg
                            • Nov 2002
                            • 15732

                            #14
                            Originally posted by asher
                            how do you put in html with out it turning into html?
                            quote him... you'll see what he did.

                            Comment

                            • Mutt
                              Too lazy to set a custom title
                              • Sep 2002
                              • 34431

                              #15
                              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

                              • chodadog
                                Confirmed User
                                • Apr 2002
                                • 9736

                                #16
                                I've only tried it in IE 6 and Mozilla Firebird. Works in both of those. Not sure about other browsers or other versions.
                                26 + 6 = 1

                                Comment

                                • digifan
                                  The Profiler
                                  • Oct 2002
                                  • 14618

                                  #17
                                  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!
                                  [email protected]
                                  Webair Rocks

                                  Comment

                                  • Sharky
                                    Confirmed User
                                    • Mar 2002
                                    • 4938

                                    #18
                                    Originally 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.

                                    &lt;table height="100%" align="center">
                                    &lt;tr>&lt;td>
                                    &lt;IMG SRC="imagegoeshere.jpg">
                                    &lt;/td>&lt;/tr>
                                    &lt;/table>

                                    Hope that's what you were after.
                                    you forgot valign=middle

                                    align=center is for the horizontal alignment.
                                    Sharky

                                    Comment

                                    • chodadog
                                      Confirmed User
                                      • Apr 2002
                                      • 9736

                                      #19
                                      Originally posted by sharky


                                      you forgot valign=middle

                                      align=center is for the horizontal alignment.
                                      But the default valign value for a table cell is middle, isn't it?
                                      26 + 6 = 1

                                      Comment

                                      Working...