Give width to table, and set margin auto horizontally.
table {
width:500px;
margin: 10px auto;
}
More Related Contents:
- Set cellpadding and cellspacing in CSS?
- How to center an element horizontally and vertically
- Best way to center a on a page vertically and horizontally? [duplicate]
- How to align 3 divs (left/center/right) inside another div?
- How to align checkboxes and their labels consistently cross-browsers
- How do you use colspan and rowspan in HTML tables?
- CSS3’s border-radius property and border-collapse:collapse don’t mix. How can I use border-radius to create a collapsed table with rounded corners?
- Can we have multiple in same ?
- Why doesn’t table > tr > td work when using the child selector?
- Table with fixed header and fixed column on pure css
- How to display scroll bar onto a html table
- HTML table headers always visible at top of window when viewing a large table
- HTML table with horizontal scrolling (first column fixed)
- Create a HTML table where each TR is a FORM
- Wrap text in tag
- Rounded table corners CSS only
- How to hide columns in HTML table?
- How to fix height of TR?
- Merge two HTML table cells
- Giving a border to an HTML table row,
- Center form submit buttons HTML / CSS
- How can I apply a border only inside a table?
- Equivalent to float in Outlook
- How can I horizontally center an element?
- Export HTML Table to Excel using ASP.NET
- Wrapping HTML table rows in tags
- CSS way to horizontally align table
- Should Tables be avoided in HTML at any cost?
- Styling the last td in a table with css
- Setting max-height for table cell contents