Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Align text to middle of radio button

Status
Not open for further replies.

jdbolt

Programmer
Aug 10, 2005
89
CA
I was wondering if there was a way to align text to the center of a radio button, vertical-align:middle doesnt do anything, the text at the moment appears at the top or the bottom, and doesnt look great.

Thanks!
 
Code:
<input style="vertical-align:middle" type="radio" id="modifiersCheck" name="searchType" value="searchModifiers" checked /> 

<label>Portals</label>
										
<input style="vertical-align:middle" type="radio" id="documentsCheck" name="searchType" value="searchDocuments" />

<label>Documents</label>

I just checked it in IE and it looks better than firefox, although not exactly in the center.

Thanks!
 
may i suggest this:

Code:
<label><input type="radio" id="modifiersCheck" name="searchType" value="searchModifiers" checked />Portals</label>
<label><input type="radio" id="documentsCheck" name="searchType" value="searchDocuments" />Documents</label>

*cLFlaVA
----------------------------
[tt]I already made like infinity of those at scout camp...[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top