/    Sign up×
Community /Pin to ProfileBookmark

How to remove white space after select element

Can anyone suggest how to remove the white space after a <select> element in a form?

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@thewebmanJan 03.2006 — what white space?
Copy linkTweet thisAlerts:
@scaiferwauthorJan 03.2006 — what white space?[/QUOTE]
I've got droplists in a table, and there's whitespace to the right of each list, seems to be proportionate to the width of the element.

Any ideas? Got me stumped.

[code=html]<table bordercolor="navy" cellpadding="4" border="1" width="100%"><tr><td>
<table cellpadding="0" border="0" width="100%"><tr><td>

<FORM ENCTYPE="application/x-www-form-urlencoded" method="get" action="/LogFilter.php" style="display: inline; margin: 0;" >

<span class="formlabel">&nbsp;Server</span><br>
<select NAME="Server">
<option value="">All Servers</option>
<option value='server01'>server01</option>
<option value='server02'>server02</option>
<option value='server03'>server03</option>
</select>
</td>
<td valign='bottom'>

<span class="formlabel">&nbsp;LogFile</span><br>
<select NAME="LogFile">
<option value="">All LogFiles</option>
<option value='Application'>Application</option>
<option value='Directory Service'>Directory Service</option>
<option value='DNS Server'>DNS Server</option>
</select>
</td>
<td valign='bottom'>

<span class="formlabel">&nbsp;EventID</span><br>
<select NAME="EventID">
<option value="">All EventIDs</option>
<option value='1114'>1114</option>
<option value='1126'>1126</option>
<option value='1863'>1863</option>
<option value='1864'>1864</option>
</select>
</td>
<td valign='bottom'>

<span class="formlabel">&nbsp;EventSource</span><br>
<select NAME="EventSource">
<option value="">All EventSources</option>
<option value='Application Error'>Application Error</option>
<option value='DNS'>DNS</option>
<option value='NETLOGON'>NETLOGON</option>
</select>
</td>
<td valign='bottom'>

<span class="formlabel">&nbsp;User</span><br>
<select NAME="User">
<option value="">All Users</option>
<option value='No User'>No User</option>
<option value='NT AUTHORITYANONYMOUS LOGON'>NT AUTHORITYANONYMOUS LOGON</option>
</select>
</td>
<td valign='bottom'>
<INPUT type="submit" value="Apply Filter" style="width:85px;">
<!--
</td>
<td valign='bottom'>
-->
<input type="button" value="Clear All" onClick="location.href='/LogFilter.php'" style="width:85px;">
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
[/code]
Copy linkTweet thisAlerts:
@thewebmanJan 03.2006 — can you post your css? I've got a hunch that the width of the <td>'s might have something to do with it.
Copy linkTweet thisAlerts:
@scaiferwauthorJan 03.2006 — can you post your css? I've got a hunch that the width of the <td>'s might have something to do with it.[/QUOTE]
The problem went away when I fixed something else. Go figure.
×

Success!

Help @scaiferw spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...