- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I want to add the 10px padding on the span’s text. my text is like goes an dnkan dfknakdnfk nadkfn akdnfkn ad andk nfkandkfn akdn fnakdnf akdnfk adkfn kanak d
I need the text background only not the whole background
Okay. Do so?
Give us a better example on what you want to do.
I think you want to do something like [this](http://codepen.io/anon/pen/grJth “”).
if so, then apply following code to span.
margin: 0 10px; background:SOMETHING_YOU_LIKE; line-height:FONT-SIZE+20px;
Or something like [this](http://codepen.io/anon/pen/bgrCi).
margin: 0 10px; background:SOMETHING_YOU_LIKE; line-height:FONT-SIZE+20px;
this is right but you forgot width and float ?
bhaktanishant is right and @bablucolno I think float and width not important in this case.
[@bablucolno](https://css-tricks.com/forums/profile/45802/bablucolno “”) This is span text and there is no need of width and float.
ok i agree with Sarfaraj and bhaktanishant but i have some confusion in span background designer want text background bg color what we do without width and float ??