[Typo3] custom bulletlist image with htmlarea
Christopher
tombedlam at yahoo.com
Mon Feb 7 16:40:39 CET 2005
Hiya,
--- Diederik van Veen <crz_06 at hotmail.com> wrote:
> just noticed after install of the htmlerea extension that when using
> a
> bulletlist, the set custom image is ignored. Instead a default ascii
> icon is
> used. How to fix this? or howto define a custom image that is used by
> the
> RTE extension by Stan
>
> ---------------------
> So in the constant field this ain't working anymore as it used for
> the old
> RTE
>
> content.bulletImages.3 = <img src="media/bullets/bullet33.gif"
> vspace="2"
> hspace="2" border="0" alt="" />
> ---------------------
> and in setup field this only works for the CE bulletlist, not RTE
>
> tt_content.bullets.20.default.split.1.wrap = <tr><td
> valign="top"><img
> rc="media/bullets/bullet33.gif" vspace="4" hspace="4"
> alt=""/></td><td
> valign="top"> | </td></tr>
>
I guess that this is because the RTE generates an unordered list
instead of a table. Try this in your stylesheet:
ul li {
background:url(media/bullets/bullet33.gif) no-repeat 2px 2px;
padding-left:10px;
}
(Where '2px' is the horizontal distance and '3px' the vertical distance
the image is placed from the top left corner of the element, and
'padding-left:10px' is the distance from the left edge of the element
that the text starts at)
You may also need to play with some of the other properties of <li>
elements to style the list items exactly as they are in the table.
-Christopher
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
More information about the TYPO3-english
mailing list