Sent by Holly Bergevin on 27 December 2004 16:04
From: "Kris Carlson" [EMAIL-REMOVED]>
>I'm having trouble with the CSS for my links page. I want to use an
>unordered list to display the links. The problem appears to be with the
>default alignment for line items.
>The links page is here: http://www.hopeinhampton.org/links.php
>The CSS is here: http://www.hopeinhampton.org/css/site.css
Actually, the default values are on the UL not the LIs as it appears you have tried to deal with.
Some of the problem stems from the following declaration -
div#content ul {margin: 0px 0px 0px 15px;}
But I think that the thing you really need to do is zero the padding for the #link1 and #link2 ULs.
Moz/FF adds about 40px of padding, and that's what's shoving it over. Once you've zeroed that, you
may want to rething the above selector to see if 15px is what you want for margin.
You'll need to write a more specific selector than what you have, though, to effect the change.
Something like -
#content #link1 ul,
#content #link2 ul {margin: 0; padding: 0;}
will get those LIs snug against your (temporary) border, if that's what you want.
Bob's suggestion was a good one, by the way, with regards to both making a test case, and using the
techniques from the "Mystery Bug" article. I use those all the time, myself.....
hth,
~holly
ps - there is no such thing as negative padding...
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/