Public Voice Network
- What are you listening to… 41674167
- Park Slope
- Pic of the Day 5936059360
- AE shadows won't work 88
- Trailer Of The Day 388388
- Skillz of the day 2121
- Politics 1759417594
- intern -> job 1717
- Smart Phone #2 88
- Your Last Concert 369369
- Show some recent work 47664766
- QBN+ Challenge 26 4343
- Chick of the Day 1431314313
- the gif animation thread 1132111321
- DUBSTEP of the Day 369369
- Show your latest Pics 29702970
- Skateboarding. 596596
- Vid of the Day 1095610956
- blog 5557755577
- ♥ Things girls like ♥ 9595
- Key Note 22
- edge printing 1111
- New illustration work 1414
- instagram 201201
do this in CSS? 4242 Responses
Last post: 2 years, 1 month ago | Thread started: Dec 18, 09, 7:53 a.m.
- blackspade
hey guys,
Anyone know of any tricks/ways around having a solid background colour around text in CSS, without having it hug tight to the edge of each word (in other words increase the overall padding around HTML text)
Exactly like this...
http://twitpic.com/u0zdrany ideas? or have u seen any tutorials around about a simple way to achieve this?
CHeers!
C- Dec 18, 09, 7:53 a.m. – Permalink
- blackspade
like this^

- Dog-earDec 18, 09, 7:54 a.m. – Permalink
- blackspade
yea as far as Im aware and from what the CSS guy here is telling me its not that simple as adding padding?
im trying to find a method to prove him wrong


- Dog-earDec 18, 09, 7:56 a.m. – Permalink
- AdamWintle
Add padding, float left?


- Dog-earDec 18, 09, 7:59 a.m. – Permalink
- blackspade
sure you can do that, but the background color just stretches the width of your div or width of your page, it doesnt end directly at the end of each word on each line, if that makes sense


- Dog-earDec 18, 09, 8:02 a.m. – Permalink
- blackspade
tyme, both of those give me a sold block of colour
ie: doesnt wrap nicely matching the edge of the line of text, have tried a few options, its trickier than it seems to achieve that exact effect

- Dog-earDec 18, 09, 8:11 a.m. – Permalink
- blackspade
not bad, thanks point. think thats bout as best as its gonna get
cant quite get the perfect spacing heightwise while keeping a nice tight leading, but its close
thanks i appreciate the help guys =)


- Dog-earDec 18, 09, 8:20 a.m. – Permalink
- blackspade
not bad, thanks point. think thats bout as best as its gonna get
cant quite get the perfect spacing heightwise while keeping a nice tight leading, but its close
thanks i appreciate the help guys =)


- Dog-earDec 18, 09, 8:20 a.m. – Permalink
- blackspade
forgot to mention this is editable text in the CMS so will need to be flexible for different copy week to week (ie not sure lots of divs is CMS friendly !?

- Dog-earDec 18, 09, 8:24 a.m. – Permalink
- blackspade
Still getting a NO from CSS :/
cant have multiple Paragraphs, as it will be 1 heading tag, so cant force all the <P> they'd have to be breaks <strong> ?? :/


- Dog-earDec 18, 09, 8:34 a.m. – Permalink




