How to put vertical space between 2 elements in table column

Posted on 2006-04-24
Medium Priority
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
  • 2
LVL 17

Accepted Solution

BogoJoker earned 1000 total points
ID: 16527194
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

ID: 16527527
Glad it was what you wanted =)

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

621 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