Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Highlighted text: how to add padding to every line's beginning and end
how could i achieve this effect?
is it possible at all? the important part is that each line has a little bit of padding applied to it in the beginning and the end…
Offline
#2 2006-03-06 13:40:51
- pepebe
- Member
- From: Mannheim, Germany
- Registered: 2005-02-07
- Posts: 74
Re: Highlighted text: how to add padding to every line's beginning and end
With the css property “padding”, you can controll how “big” the box arround an element is. Margin will controll the distance to the elements around.
Unfortunately this means, that as long you have a single paragraph (as it seems to be the case in your example) you cannot controll the padding line-by-line WITHIN a paragraph.
Yet, with some extra work. You could either
- manually add span-elements to it,
- use linebreaks or
- add some self-written php code to your articles to do this automatically (though I’m not sure about the last one..) .
Client-side javascript would also be a solution, but this would not be a proper solution.
Anyway, what do you want to accomplish with that kind of presentation?
Greetings,
pepebe
Last edited by pepebe (2006-03-06 13:52:33)
Offline