cannon303
02-17-2009, 03:30 PM
hi I'm setting some background color to my <a href> text tags to give a highlighted effect. I'm using padding so that the text fits neatly inside the coloured background. Everything's fine until you get a text link that is too wide for the div column that it is sat in. What happens is that you don't get any padding on the left hand side of the wrapped over text. I've included a pic showing you what's happening. http://www.chriscannon.co.uk/text.jpg the only style I've got so far is
text-decoration:none; color:#FFF; background:#01511C; padding:4px 10px 4px 10px;
this is assigned to the a tag. I don't want to put a break in as the links will be created by the user and I don't want to put the effect on the <li> tag that each link is sat in as I want to change the background colour on the a:hover state.
Any ideas???
Ta
text-decoration:none; color:#FFF; background:#01511C; padding:4px 10px 4px 10px;
this is assigned to the a tag. I don't want to put a break in as the links will be created by the user and I don't want to put the effect on the <li> tag that each link is sat in as I want to change the background colour on the a:hover state.
Any ideas???
Ta