45 users online (0 members and 45 guests)  

Thread: Frame center


  Results 1 to 6 of 6

Related

  1. One pixel off in IE - center div    Forum: CSS Forum
    Replies: 1
  2. How do you center images?    Forum: HTML Forum
    Replies: 4
  3. Replies: 1
  1. #1
    Darksushi's Avatar
    New User

    Status
    Offline
    Join Date
    May 2005
    Posts
    8

    Frame center

    how do i center something so its not only centered width wise but also height wise?
    like if i have a frame with nothing else on the page
    i want that frame to be in the exact middle of the page

  2. #2
    TurnkeySites's Avatar
    New User

    Status
    Offline
    Join Date
    May 2005
    Location
    Atlanta
    Posts
    8

    Re: Frame center

    what are you talking about here a form like in the middle or do you want the webpage really in frames, id have to get some more details to help you here i need more specfics or to see a web page your working on

  3. #3
    Darksushi's Avatar
    New User

    Status
    Offline
    Join Date
    May 2005
    Posts
    8

    Re: Frame center

    wut i mean is
    you know how u can center the stuff inside of a table with <TR VALIGN=MIDDLE>
    well i want to center the actual frame in the middle of the page both horizontally and vertically
    Last edited by Darksushi; 05-24-2005 at 05:04 PM. Reason: fixing typos

  4. #4
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: Frame center

    here:
    Code:
    <table border="0" width="100%">
      <td height="1000" align="center" valign="middle"><table width="60"><td>hello</td></table></td>
    </table>

  5. #5
    Darksushi's Avatar
    New User

    Status
    Offline
    Join Date
    May 2005
    Posts
    8

    Re: Frame center

    thats not exactly what im looking for
    that will center it on the page, but people might have different size viewing areas due to extra toolbars on the top, etc

    what i want is if someone is has a viewing area of 1000 pixels high on their browser and another person has a 800 pixel high viewing area on a different browser, they both see the page exactly centered

    the problem im running into is when i use ur code
    is the <td height> which would need to be adjusted depending on how large the veiwing area is for that person

    is there any equivalence of width="100%" for height?

    {edit}
    heres a site that does this
    gotwoot.net
    even if u add or remove toolbars, use different browsers, and such
    it stays centered vertically
    Last edited by Darksushi; 05-25-2005 at 04:29 PM. Reason: Adding example

  6. #6
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: Frame center

    oh, that is a quick fix:
    Code:
    <table border="0" height=100% width="100%">
      <td align="center" valign="middle"><table width="60"><td>hello</td></table></td>
    </table>



Tags for this Thread