This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > September 2004 > Can't achive the same margins for <a> and (inline) <p> in CSS





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Can't achive the same margins for <a> and (inline) <p> in CSS
Philip Herlihy

2004-09-19, 7:15 pm

I'm creating a common navigation bar of text "buttons" using CSS. On each
page, I want the corresponding button to be "inert" (no hover, etc) as a
visual clue to where you are.

I thought I'd include simple <p> tags, and style them the same way as the
<a> tags, but I can't get it to work - I get different margins in each case.

I've reduced the situation to the essentials here:
http://philipherlihy.members.beeb.net/CssMargins/

Is there a fix, or am I swimming against the current? Suggestions very
welcome - it's driving me mad!

--
####################
## PH, London
####################


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews