Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I have this part of the XSLT that renders the content of a blog post:
<div class="entryContent"> <xsl:value-of select="$post/bodyText" disable-output-escaping="yes" /> </div>
and I would like to know if it is possible to somehow scan the contents of the post and look for images. I need to add some padding to any image within a post.
I guess I need to use the stripHTML method somehow?
Thanks!
Hi Alexandru,
I was just thinking couldnĀ“t you just add padding using pure CSS technology.
Like this:
.entryContent img{ padding: 5px;}
/Dennis
hah.... astounding...
I guess you forget about the simple stuff when you dig too much into it...
Thanks for waking me up ;)
You are very welcome Alexandru, sometimes it can be hard to see the most simple solution as you said :-)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Add padding to images of a blog post
Hello,
I have this part of the XSLT that renders the content of a blog post:
and I would like to know if it is possible to somehow scan the contents of the post and look for images. I need to add some padding to any image within a post.
I guess I need to use the stripHTML method somehow?
Thanks!
Hi Alexandru,
I was just thinking couldnĀ“t you just add padding using pure CSS technology.
Like this:
/Dennis
hah.... astounding...
I guess you forget about the simple stuff when you dig too much into it...
Thanks for waking me up ;)
You are very welcome Alexandru, sometimes it can be hard to see the most simple solution as you said :-)
/Dennis
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.