Welcome Guest Search | Active Topics | Sign In | Register

Slide Menu - Display Text below and images Options
Reza Khan
Posted: Thursday, April 23, 2009 10:03:40 AM
Rank: Member
Groups: Member

Joined: 4/15/2009
Posts: 13
Hello ,

I am using a Slide Menu control and for each Item , I am showing an image and text .The only problem is that when rendering , the 'text' attribute does not appear anywhere and wondered how I can make it display at the bottom of the image.

Many thanks.

Reza.

R Khan
eo_support
Posted: Thursday, April 23, 2009 11:00:00 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

There are two ways to do that:

1. Set Image.Mode to ItemBackground or TextBackground. This way the image will be rendered as background of the whole item. So most likely you will need to modify the image. For example, if your original image size is 16 * 16 and the text is 20 * 100, you may need to modify the image as (16 + 20) * 100 so that it covers the whole item. The text will then be placed on top of the image. By applying padding top to the text, you can push the text downwards so that the text will appear "below" the image, but in fact it is placed directly on the bottom portion of the image and that portion of the image is blank;

2. Set the item's Text to some HTML code that includes an image. For example, you can set the item's Text to:

Code: HTML/ASPX
<div style='text-align:center'><img src='someimage.gif' >/</div>
<div style='text-align:center'>some text/</div>


This will display the image above the text and center align both of them.

Hope this helps.

Thanks!

Reza Khan
Posted: Thursday, April 23, 2009 11:17:27 AM
Rank: Member
Groups: Member

Joined: 4/15/2009
Posts: 13
yep , that works , thanks you very much !

Reza
:d/ :d/
eo_support wrote:
Hi,

There are two ways to do that:

1. Set Image.Mode to ItemBackground or TextBackground. This way the image will be rendered as background of the whole item. So most likely you will need to modify the image. For example, if your original image size is 16 * 16 and the text is 20 * 100, you may need to modify the image as (16 + 20) * 100 so that it covers the whole item. The text will then be placed on top of the image. By applying padding top to the text, you can push the text downwards so that the text will appear "below" the image, but in fact it is placed directly on the bottom portion of the image and that portion of the image is blank;

2. Set the item's Text to some HTML code that includes an image. For example, you can set the item's Text to:

Code: HTML/ASPX
<div style='text-align:center'><img src='someimage.gif' >/</div>
<div style='text-align:center'>some text/</div>


This will display the image above the text and center align both of them.

Hope this helps.

Thanks!



R Khan
eo_support
Posted: Thursday, April 23, 2009 11:19:10 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Cool. Let us know if you have any more questions!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.