Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
  1. #1
    Member actualsize82's Avatar
    Join Date
    Nov 2003
    Location
    Chicago, IL
    Posts
    41
    Member #
    3887
    http://www.designdaisy.com/tmac/

    Problems with the CSS Navigation on the side & with the centering of the table...

    Okay, I didn't know what to search for in the forums, so please forgive me if I'm posting a repeat question. If you look at the URL above in IE, it's exactly what I was looking for (though I may not like the navigation, the client does, so who am I to correct them, right?). In Netscape, however, the links in the navigation are layered on top of each other and the interface/table where the site is setup is stuck to the side of the browser instead of centered. Any help would be greatly appreciated!

    Katie

  2.  

  3. #2
    Senior Member seanmiller's Avatar
    Join Date
    Sep 2003
    Location
    Glastonbury, UK
    Posts
    868
    Member #
    3263
    Liked
    1 times
    Try adding the following to your css definition...

    a {
    display: block;
    }

    Sean

  4. #3
    Member actualsize82's Avatar
    Join Date
    Nov 2003
    Location
    Chicago, IL
    Posts
    41
    Member #
    3887
    That's great! Except the body of my page is still stuck to the left side of the browser window...

  5. #4
    Member actualsize82's Avatar
    Join Date
    Nov 2003
    Location
    Chicago, IL
    Posts
    41
    Member #
    3887
    Well, I made it a little better...Thanks for your help, Sean.

  6. #5
    Senior Member seanmiller's Avatar
    Join Date
    Sep 2003
    Location
    Glastonbury, UK
    Posts
    868
    Member #
    3263
    Liked
    1 times
    What you need to do is add these two directives to your sheet...

    #mainTable {
    width: 75%;
    border: 1px solid #000000;
    margin-left: auto;
    margin-right: auto;
    }
    It's a long story... it's the different ways the browsers do things... you do also need to keep the text-align: center in your body otherwise IE won't work (!!)

    Sean

  7. #6
    Senior Member seanmiller's Avatar
    Join Date
    Sep 2003
    Location
    Glastonbury, UK
    Posts
    868
    Member #
    3263
    Liked
    1 times
    Just found this explanation...

    http://www.granneman.com/webdev/codi...centerta/index

    Enjoy! :-)

    Sean

  8. #7
    Senior Member seanmiller's Avatar
    Join Date
    Sep 2003
    Location
    Glastonbury, UK
    Posts
    868
    Member #
    3263
    Liked
    1 times
    Just spotted one more thing...

    You need to also align your text in the table back to left... at the moment, as a result of the difference above, it is left aligned in IE and centered in NS/Mozilla.

    Easiest way to do this is just to throw in a

    table {
    text-align: left ;
    }

    ...to restore the same behaviour for ALL tables.

    Sean

  9. #8
    Member actualsize82's Avatar
    Join Date
    Nov 2003
    Location
    Chicago, IL
    Posts
    41
    Member #
    3887
    Thanks a lot, Sean. I appreciate the help.

  10. #9
    Senior Member seanmiller's Avatar
    Join Date
    Sep 2003
    Location
    Glastonbury, UK
    Posts
    868
    Member #
    3263
    Liked
    1 times
    Your stylesheet appears to have disappeared entirely at present.... maybe you are in the middle of "work in progress" but maybe not....

    I saved the front page in order to test out that things *definitely worked* before I posted them at http://www.phpwebspace.net/dd

    You can retrieve the css from there if somehow it has become lost...

    Best Wishes,

    Sean

  11. #10
    Member actualsize82's Avatar
    Join Date
    Nov 2003
    Location
    Chicago, IL
    Posts
    41
    Member #
    3887
    My goodness, I could kiss you. I was a moron and put the wrong stylesheet on my server (overwriting the right one). There's a case for not naming all your stylesheets style.css. Thank you so very much, for looking out for me.


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:10 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com