Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Regular Coder
    Join Date
    Nov 2009
    Posts
    202
    Thanks
    25
    Thanked 0 Times in 0 Posts

    how can I get this page to always be centered?

    its at: (removed)

    If I apply any sort of positioning to the table such as absolute or relative everything adjusts at a different rate, and not relative to each other.
    Last edited by cyborg360; 12-15-2009 at 07:10 PM.

  • #2
    Regular Coder
    Join Date
    Jun 2008
    Posts
    173
    Thanks
    2
    Thanked 9 Times in 9 Posts
    try this

    Code:
    <body style="margin:0px; padding:0px;">
    <table style="width:100%; height: 662px; text-align:center;">
    or otherway is to give fixed width to your main outer table

    Code:
    <body style="margin:0px; padding:0px;">
    
    <table style="width:900px; height: 662px" align="center">
    vineet

  • Users who have thanked vineet for this post:

    cyborg360 (12-15-2009)

  • #3
    Regular Coder
    Join Date
    Nov 2009
    Posts
    202
    Thanks
    25
    Thanked 0 Times in 0 Posts
    thanks for replying. however, that did not work. please take another look - maybe you can figure it out.

  • #4
    Regular Coder
    Join Date
    Jun 2008
    Posts
    173
    Thanks
    2
    Thanked 9 Times in 9 Posts
    as you dont have much content so you can apply the second solution of fixed width.

    try it and let me know

    vineet

  • #5
    Regular Coder
    Join Date
    Nov 2009
    Posts
    202
    Thanks
    25
    Thanked 0 Times in 0 Posts
    i used the second option and it now looks like what I had to start with (see page online).

    Again, the intent is to have it move with the browser as you narrow or widen the page.

    Also, it crunches up really badly when you narrow it too much.

    Any ideas?

  • #6
    Regular Coder
    Join Date
    Jun 2008
    Posts
    173
    Thanks
    2
    Thanked 9 Times in 9 Posts
    you have not updated the page online. i still see the old width:100%.

    update it with this
    Code:
    <body style="margin:0px; padding:0px;">
    
    <table style="width:900px; height: 662px" align="center">
    keep the width of what ever width you designed the template.

    vineet

  • #7
    Regular Coder
    Join Date
    Nov 2009
    Posts
    202
    Thanks
    25
    Thanked 0 Times in 0 Posts
    sorry about that - your 900px suggestion does fix the crunching problem but I still need it to stay in the center of any browser at any browser width.

  • #8
    Regular Coder
    Join Date
    Jun 2008
    Posts
    173
    Thanks
    2
    Thanked 9 Times in 9 Posts
    read my code carefully.

    this is what you have pasted over there
    Code:
    <body style="margin: 0px; padding:0px;">
    
    <table style="width: 900px; height: 662px; align: center">
    and this is what i told you to paste. see the difference and copy it exactly what i pasted it and update it.

    Code:
    <body style="margin:0px; padding:0px;">
    
    <table style="width:900px;height:662px;" align="center">
    vineet

  • #9
    Regular Coder
    Join Date
    Nov 2009
    Posts
    202
    Thanks
    25
    Thanked 0 Times in 0 Posts
    you rock dude - now why cant expression web make it that easy with a few clicks?


  •  

    Posting Permissions

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