...

View Full Version : I need a line....margin top or margin bottom?



intcon
04-06-2009, 09:28 PM
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 (http://www.monarchcottages.com/evans/test9/)
css (http://www.monarchcottages.com/evans/test9/evans.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?:p

carrie

VIPStephan
04-06-2009, 09:33 PM
What in the world is “margin-top-color”?

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

Excavator
04-06-2009, 09:57 PM
Hello intcon,
You're wanting a border instead of a background color.
Change #footer to look like this-
#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.

intcon
04-06-2009, 10:05 PM
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

Excavator
04-06-2009, 10:11 PM
Gotta wonder about DW sometimes...

VIP had it right too, and before me.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum