The text align center covers most of the text elements but a little extra is needed to centre align the table
div {width:400px; text-align:center;}
table {margin: 0 auto;}
table td {text-align: left;}
More Related Contents:
- change the menu font size
- Can I debug by CSS code in easy way for beginner?
- How to write a:hover in inline CSS?
- Landscape printing from HTML
- CSS grid square layout [duplicate]
- Is it possible to have two background colors for a single html element? [duplicate]
- Masonry-style Layout ONLY with CSS
- Two inline-block, width 50% elements wrap to second line [duplicate]
- Expanding a parent to the height of its children
- How to hide image broken Icon using only CSS/HTML?
- Can you link to a CSS file from an email?
- Why does vw include the scrollbar as part of the viewport?
- HTML-Tooltip position relative to mouse pointer
- `margin:auto;` doesn’t work on inline-block elements
- How to replace color of PNG image using CSS? [duplicate]
- How to calculate required hue-rotate to generate specific colour?
- What is haslayout?
- Bootstrap 3: Push/pull columns only on smaller screen sizes
- How can I write ‘a:hover’ in inline CSS?
- Is there a reason to use a instead of a:link or a:visited in my stylesheet?
- How do I remove the horizontal scrollbar in a div?
- Change color of bootstrap navbar on hover link?
- Missalignment with inline-block (other elements pushed down)
- Yet Another Divs vs Tables issue: Forms
- How to get rid of x and up/down arrow elements of a input date?
- pseudo-element acting like a grid item in CSS grid
- Can a recursive variable be expressed in css?
- Image behavior within flexbox (rows embedded in columns)
- How can I select elements in CSS by partial ID value?
- The difference between HTML media queries and CSS media queries