How to put vertical space between 2 elements in table column

Posted on 2006-04-24
Last Modified: 2008-02-20

I have table with a column

<TD width=150><select id="myselect" onchange="fillFields(this, add_fields)">
            <option value=-1>Select Field</option>
            <INPUT type="button" value="Delete Fields" onClick="document.fadd.add_fields.value=''";>

How do I put a small vertical space between the select and the button using CSS?

Question by:tr5
    LVL 17

    Accepted Solution

    You could give the select a bottom margin.  Example:
    style="margin-bottom: 3px;"

    You would put that in the <select> tag.  Or in an external CSS give myselect the margin:
      margin-bottom: 3px;

    Joe P
    LVL 17

    Expert Comment

    Glad it was what you wanted =)

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    A colleague recently asked me about how to give his client a small part of the web site that could be completely under the client's control.  Since I have done this sort of thing before to add emergency banners to a web site, I decided I would creat…
    CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
    In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
    In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

    729 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

    18 Experts available now in Live!

    Get 1:1 Help Now