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 4 of 4
  1. #1
    Regular Coder
    Join Date
    May 2005
    Location
    lincolnshire
    Posts
    155
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy simple css layout gone grey!

    For once IE's fine!,
    but........I cannot get rid of this annoying little grey box in mozilla,
    I'm hoping someone will point out my mistake?,also i cannot get
    moz to top align my css boxes?, thankyou so very much!

    all the css and html are in one html doc within zip file.

  • #2
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    The grey background is being set in #mainnav div.
    Just remove the line highlighted below.

    Code:
    #mainnav{
    width: 650px;
    height: 20px;
    margin-top: 20px;
    float: center;
    background: #C0C0C0;
    }

  • #3
    Regular Coder
    Join Date
    May 2005
    Location
    lincolnshire
    Posts
    155
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks!

    you can never see them yourself can u!

    cheers! I really appreciate it!

  • #4
    Regular Coder
    Join Date
    May 2005
    Location
    lincolnshire
    Posts
    155
    Thanks
    0
    Thanked 0 Times in 0 Posts

    aaahhhhh, the problem was

    in the mainnav div, it was aligned center not left!, its also sorted out my top margin problem!

    cheers


  •  

    Posting Permissions

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