Results 1 to 10 of 10

Thread: troubles with vertical alignment

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    New Jersey
    Posts
    334

    troubles with vertical alignment

    Hello everyone,
    I'm back here, as I usually am every few months, with a problem I need help with.

    This should be very very easy, I have been searching the web, these boards, but I cannot solve this.

    Plese take a look at www.medinaconsultants.com

    All I need to do is center the white horizontal area vertially on the page. That's it...

    However, nothing I try works. Somebody please help!!!!

  2. #2
    Fanatic Member kaihirst's Avatar
    Join Date
    Jul 2005
    Location
    The Resaurant At the End of The Universe
    Posts
    633

    Re: troubles with vertical alignment

    pad the css box at the top til you get it centered..

    kai
    As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..

    A few things that make a good Developer a Great One.
    Methodical and a thorough approach to research and design inevitably leads to success.
    Forward thinking is the key to Flow of control.
    Never test in the design environment, always test in real time, you get the REAL results.
    CBSE & OOSE are the same animal, they just require different techniques, and thinking.
    SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
    The key to good design is explicit attention to both detail and response.
    Think Freely out of the "Box" you're in..... You will soar to better heights.

    Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT


  3. #3
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: troubles with vertical alignment

    that's what I was thinking, put some line breaks until it looks centered.

  4. #4
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: troubles with vertical alignment

    You can either use a Table or CSS. Tables you can just set the valign property and your away, but I don't think its validate HTML4 strict or XHTML.

    The CSS way...I believe involves alot of hacks, as vertical-align is for use with Tables, not text.
    Don't Rate my posts.

  5. #5
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Re: troubles with vertical alignment

    do u mean make the white area in align center??

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    New Jersey
    Posts
    334

    Re: troubles with vertical alignment

    hi guys, thanks for the responses

    adding linebreaks wont do the trick, as this will look different in different resolutions

    can't really use tables (at least the way I tried), because i can't manage to set the table's height to 100% of the window. height="100%" doesn't seem to do the trick..

    hmmm, what are hacks? what should i look into in css to take care of this?

    thanks!

    kenny_o: I mean align the white space vertically within the browser window

  7. #7
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: troubles with vertical alignment

    style="height:100%" should give it a height of 100... the height property only works for IE.

    HTML Code:
    <table style="height:100%">
    <tr>
    <td valig="middle">
    MIDDLE ME!
    </td>
    </table>
    Its not a great way of doing it, but it works.

    As for CSS versions..
    http://www.jakpsatweb.cz/css/css-ver...-solution.html
    Theres a few different ways of doing it.
    Don't Rate my posts.

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    New Jersey
    Posts
    334

    Re: troubles with vertical alignment

    Aha, I use Firefox primarily, so that would explain why I had troubles with that.

    Will look into that link.

    Thanks!

  9. #9
    Fanatic Member kaihirst's Avatar
    Join Date
    Jul 2005
    Location
    The Resaurant At the End of The Universe
    Posts
    633

    Re: troubles with vertical alignment

    This code will work in all broswers, just might take a bit of tweaking with the size to get it aligned in opera, firefox and IE and safari.

    CSS CODE

    Padding: 5px 0px 0px 0px;

    I think this is right to pad the top out, if not play with all four of them to do so.

    this wil lwork

    ta

    Kai
    As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..

    A few things that make a good Developer a Great One.
    Methodical and a thorough approach to research and design inevitably leads to success.
    Forward thinking is the key to Flow of control.
    Never test in the design environment, always test in real time, you get the REAL results.
    CBSE & OOSE are the same animal, they just require different techniques, and thinking.
    SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
    The key to good design is explicit attention to both detail and response.
    Think Freely out of the "Box" you're in..... You will soar to better heights.

    Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT


  10. #10
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: troubles with vertical alignment

    Yeah, but it won't work if the user has a different screen size though will it? 1024, 800,640... center is going to be different for each of them so you can't use a fixed measurement for the job.
    Don't Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width