Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-01-11 17:00:25
- rosemary
- New Member
- Registered: 2006-01-11
- Posts: 3
indenting lines
I’m using textpattern pages to post poetry. Some lines do not start flush left. How do I set indents for individual lines?
And is there a way to leave more spaces between lines (i.e. triple space, etc.)?
Thanks,
rosemary
Offline
Re: indenting lines
This isn’t so much a Textpattern issue as a CSS one. Tweaking your styles (in presentation > styles) should give you the results you want.
Offline
#3 2006-01-11 17:50:17
- rosemary
- New Member
- Registered: 2006-01-11
- Posts: 3
Re: indenting lines
Thank you Elenita. But if it’s a CSS issue, how can I create a style which I only want to be in effect occasionally? Wouldn’t some indent tag be more specific—something I could apply line by line?
I am extremely inexperienced with this stuff—please bear with me!
rosemary
Offline
#4 2006-01-11 17:53:02
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: indenting lines
If you like to indent the first line within a paragraph you can use f. e.:
.yourClass>p+p {text-indent:30px;}
or #div>p+p {text-indent:30px;}
that works in FF, Opera .. but not in IE .
Offline
#5 2006-01-11 18:00:26
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: indenting lines
<pre>i love poems
i love poems
i love poems</pre>
or you use < pre > …content… < /pre >
might that work??
Last edited by alexandra (2006-01-11 18:08:32)
Offline
#6 2006-01-11 20:17:48
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: indenting lines
CSS:
.indent {text-indent: 30px;}
and every line that should be indented:
<notextile>%(indent)this line to be indented%</notextile>
(Note that this part of Textile is broken in the official 4.0.3 release, solution here.)
Offline
#7 2006-01-11 20:35:09
- rosemary
- New Member
- Registered: 2006-01-11
- Posts: 3
Re: indenting lines
Thank you Alexandra and Doggiez, I will give these things a try.
—rosemary
Offline
#8 2006-01-11 21:51:54
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: indenting lines
@doggiez
i thought of your solution but my question was: how to know where the line ends? if you have very short poem lines it is okay, but not if the line is much longer.
Offline
#9 2006-01-11 22:03:32
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: indenting lines
Alexandra, I think in that case you could use padding-left instead of line-indent.
Offline
#10 2006-01-11 23:47:34
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: indenting lines
wrapping your poems in < pre > (pre-formatted text) tags might be easiest, but whatever works best for you…
PRE is used to include sections of text in which formatting is critical. Unlike in the other HTML containers, text in a PRE pair will only be wrapped at the linebreaks in the source, and spaces will not be collapsed.
The browser will render text in pre tags in a monospaced font – but you can change that behaviour in your stylesheet
e.g. pre {font-family:verdana,sans-serif;}
disadvantage: textile won’t nice up your type
Last edited by nardo (2006-01-11 23:51:32)
Offline
Pages: 1