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 5 of 5
  1. #1
    New Coder
    Join Date
    Mar 2009
    Posts
    89
    Thanks
    27
    Thanked 0 Times in 0 Posts

    I need a line....margin top or margin bottom?

    Hi all..

    Working on this website (my first full CSS layout) and the guy has decided to change the bottom black box to just a black line above the bottom navigation.
    test site
    css
    easy! so I removed the black background from the #footer and added in margin-top: 2px and margin-top-color: #000 and voila! nothing happened. shouldn't that have worked? Or am I missing something obvious?

    carrie

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,606
    Thanks
    6
    Thanked 997 Times in 970 Posts
    What in the world is “margin-top-color”?

    I’d suggest border-top: 2px solid black;

  • Users who have thanked VIPStephan for this post:

    intcon (04-06-2009)

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello intcon,
    You're wanting a border instead of a background color.
    Change #footer to look like this-
    Code:
    #footer {
    border-top: 1px solid #000;
    clear: both;
    }
    VIP is right, there's no such thing as margin-top-color and I think the validator would have shown that to you.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    intcon (04-06-2009)

  • #4
    New Coder
    Join Date
    Mar 2009
    Posts
    89
    Thanks
    27
    Thanked 0 Times in 0 Posts
    lol..sorry, that's what dreamweaver suggested i use to make the top border black..
    bless you again excavator! that's the right answer...thanks so much!

    carrie

  • #5
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Gotta wonder about DW sometimes...

    VIP had it right too, and before me.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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