Solved

alignment vertical text of the label

Posted on 2015-02-12
1
77 Views
Last Modified: 2015-02-12
Hi,

I have the following code

<input precio = "<?php echo number_format(round($loop[$loopProtecciones->name]*1.5,2),2,".",",")?>" type="radio" name="protecciones" id="<?php echo $loopProtecciones->name ?>" class="custom" value="<?php echo $loopProtecciones->name ?>"/>
                                                    <label for="<?php echo $loopProtecciones->name ?>"><?php echo $loopProtecciones->name." - $".number_format(round($loop[$loopProtecciones->name]*1.5,2),2,".",",") ?><img src="imagenes/logotelefono.jpg"></label>

Open in new window


I need two the text appears vertically center. This is a jQuery mobile page
0
Comment
Question by:joyacv2
1 Comment
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
Comment Utility
Wrap the radio button and the image in a <div> then give the radio button a height equal to the image height.

Example with a 70px tall image:

<style type="text/css">
.radioImg input { height:70px }
</style>

<div class="radioImg">
    <input type="radio" name="radio1" id="radio1" />
    <label for="radio1"><img src="img/70pxTall.png" alt="" /></label>
</div>
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Table append 4 22
javascript to html map 8 36
advertisement module in core php 4 78
jQuery aJax Disable Async 24 39
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now