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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select tag

Status
Not open for further replies.

HotBob

Programmer
May 26, 2006
37
GB
I have a select tag which is I need to fix at a width but there is no width property attached. Any ideas


Code:
<td width="140"><font size="2">
<% 			
If request.Form("hid") <> "optA" And request.Form("hid") <> "" Then
%>  
<select  name="ddl" id="ddl"  onkeypress="if(event.keyCode==13) {document.search.submitID.click(); return false}" >
<%
 
You could set a width using a CSS class.

Code:
CSS
select.fixwidth{
      width:50%;
}

HTML

<select class="fixwidth" name="ddl" id="ddl"  onkeypress="if(event.keyCode==13) {document.search.submitID.click(); return false}" >

I may be wrong but it's one way of doing it.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top