You can play around with different alignment settings for the img (absolute
middle, baseline, top etc.,), or simply wrap them both in a single table row
with two cells side by side. Then you can use the <td valign="middle">.
You could also try playing around with the text's line-height CSS property
to force it to align with the image better.
-=R
On 3/25/08 2:22 AM, "opet" <[EMAIL PROTECTED]> wrote:
>
> Hello peeps,
>
> I'm quite new to iUI and I can't get around this little problem. I'm
> trying to display a little icon in front of my label on a row. While
> this _works_, it doesn't look any good. Both items (image and text)
> gets aligned to baseline. Is it possible to do this another way or
> aligning it in a vertical middle?
>
> Sample code is:
>
> <div class="row">
> <label><img src="<?php echo( $src['icon'] ); ?>" /> <?
> php echo( $src['title'] ); ?></label>
> <a class="button" href="javascript:void();"
> onclick=HttpRequest('xxx?id=<?php echo($id);?>'); return
> false">Toggle</a>
> </div>
>
> And a second question; Is it possible to add several buttons on a row?
> Three, four +++?
>
> Thanks in advance,
>
> Oyvind
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---