|
Posted by Rik on July 17, 2007, 9:32 am
Please log in for more thread options
On Tue, 17 Jul 2007 14:38:51 +0200, w33bster@googlemail.com
> wrote:
>> Hi
>> I have some text that I want to add a background-color to so I've got
>> a span tag with a class defining the following:
>>
>> display:inline;
>> color:#FFFFFF;
>> border-top:5px solid #65C7C6 ;
>> background-color:#65C7C6;
>>
>> which works great if my text all fits on one line however the problem
>> comes when wrapping the text. I magically lose the border on the next
>> line which is a tad frustrating.
>>
>> I've tried wrapping the lot in a p tag with similar css to above as
>> well as using padding instead of a border.
>>
>> here is an example of what I'm
>> after:http://www.rees-jenkins.co.uk/stuff/textwrapproblem.gif
>>
>> any one got any ideas?
>>
>> w33b
>
>
> sorry, instead of border-top:5px solid #65C7C6 ; that should be
> border:5px solid #65C7C6 ;
>
> (all the way round, not just the top)
>
> this doesn't fix the problem I just wrote it wrong!
Could you put up the HTML somewhere instead of an image?
--
Rik Wasmus
|