Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting space underneath table

Tags:

css

html-table

I want a little bit of space underneath my table.

<table border="0" class="medtable">
    <tr> 
        <th>User</th>
        <th>From</th>
        <th>To</th>
    </tr>
    <tr>
        ...
    </tr>
</table>

This CSS

table
{
border:1px solid black;padding-bottom:15px
}

But space between the border at the bottom and the last bit of text in the table. So it is not what I want. Any tips?

like image 663
dublintech Avatar asked Jan 07 '13 16:01

dublintech


1 Answers

You want margin-bottom instead of padding-bottom. From outside to inside: margin, border, padding, content.

like image 148
cimmanon Avatar answered Oct 05 '22 18:10

cimmanon