[TYPO3] tt_news puts out author as a paragrapf tag. how can I get a "clean" output?
W van Bruggen
w.van.bruggen at gmail.com
Tue Jan 9 18:39:53 CET 2007
Hi,
I've encountered the same problem today, and i haven't been able to
find it in the tt_news code yet. It's the only wrap property i have
encountered this with.
> If the p tag as a class try using css:
>
> p.myclass {
> display: inline;
> }
It uses bodytext as p class as default, so to specifically style this
p class some extra code is needed in your template. A fix would be to
encapsulate the marker used for the author in the template you are
using.
For example :
<div class="ttnews_author">###NEWS_AUTHOR###</div>
allows you to specifically target the <p class="bodytext"> with css,
and undo the 'damage' the p is doing to your layout.
CSS :
div.ttnews_author p.bodytext {
insertcsshere;
}
Even better would be to lose p.bodytext completely for the author
field, but this might be a simple solution to the problem.
gr,
Wietse
More information about the TYPO3-english
mailing list