[TYPO3] Content Rendering

Kevin Renskers kevin at dauphin-mm.nl
Wed Sep 12 00:06:25 CEST 2007


Hello Antoni,

Maybe it would be easier just to use CSS styles to remove any margins so 
that the image appears right below the text? Should not be any problem 
with p and div tags really..

p {
   margin-bottom: 0px;
}

Cheers,
Kevin


> Hello all!
>  I need to do the following:
> 
> 1. Add a "Text" content element one line of text. eg. Applying for a job
> 2. Add an "Image" content element afterwards, which is basically a line of golden dots, like ...................................
> 
> However, I need the image to appear right below the text. In other words, if I were to write html code to generate such elements I would do as follows:
> 
> Applying for a job<br />
> <img src="..." />
> 
> Now, my problem is the following: Typo3 wraps "Applying for jobs" in a <p> tag and the image in <div> tags, so the code is something equivalent to this:
> 
> <p>
>     Applying for a job
> </p>
> <div>
>     <img src="..." />
> </div>
> 
> Anybody know how (or where in the documentation is) can I instruct Typo3 to enclose a "Text" content element to be enclosed in <span> tags for example, and not to enclose "Image" content elements in any tag?. So the code generated would look like:
> 
> <span>
> 
>     Applying for a job
> 
> </span><br/>
> <img src="..." />
> 
> Thanks,
> 
> Antoni.
> 
> 
> 
> 
> 
>       ____________________________________________________________________________________
> Luggage? GPS? Comic books? 
> Check out fitting gifts for grads at Yahoo! Search
> http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz


More information about the TYPO3-english mailing list