[TYPO3-content-rendering] CSS Styled Imgtext

Christopher bedlamminusspamhotel at gmail.com
Mon Jul 4 19:35:15 CEST 2005


Stefan Beylen wrote:
> Christopher wrote:
> 
>> <ul>
>>   <li>
>>     <img src="#" />
>>     <div>Caption</div>
>>   </li>
> 
> 
> cool idea! I dont see any reason why this shouldnt work either. no 
> nested floats, position it in center, left or right, below or above
> As the images are an array that belong to the content element a list 
> would be appropriate as well and semantically correct. just change the 
> <div> in the caption to <span> and I am more than happy ;)
> 

I specified <div> because, given that the images would probably have 
styles 'display:block;' and 'float:right;', the caption container is 
going to have to be a block level element too. Using an element that's 
block level by default would help keep the generated css a bit slimmer.

Of course we could always alter the wraps with TS... ;^)

-Christopher



More information about the TYPO3-project-content-rendering mailing list