<body>
<div style="width:800px; margin:0 auto;">
centered content
</div>
</body>
Related Contents:
- How to center absolute div horizontally using CSS?
- Center aligning a fixed position div
- How to position a div in the middle of the screen when the page is bigger than the screen
- CSS: Center block, but align contents to the left
- Center an item with position: relative
- Center fixed div with dynamic width (CSS)
- Align elements side by side
- Can overflow text be centered?
- Center form submit buttons HTML / CSS
- Align vertically using CSS 3
- Align HTML input fields by : [duplicate]
- Div table-cell vertical align not working
- How do I position an image at the bottom of div?
- How can I horizontally center an element?
- What’s the difference between align-content and align-items?
- Make a div into a link
- Responsive image align center bootstrap 3
- How can I align one item right with flexbox?
- How can I make an svg scale with its parent container?
- How do you get the footer to stay at the bottom of a Web page?
- How to make a floated div 100% height of its parent?
- Font Awesome not working, icons showing as squares
- How do I force a DIV block to extend to the bottom of a page even if it has no content?
- Preventing an image from being draggable or selectable without using JS
- iPad Safari scrolling causes HTML elements to disappear and reappear with a delay
- 2 column div layout: right column with fixed width, left fluid
- Changing three.js background to transparent or other color
- How can I add a vertical scrollbar to my div automatically?
- Advantages of using display:inline-block vs float:left in CSS
- How to make a element expand or contract to its parent container?
- trying to align html button at the center of the my page [duplicate]
- Stretch child div height to fill parent that has dynamic height
- Footer at bottom of page or content, whichever is lower
- Why is not in HTML 5 Tag list while is?
- Button Center CSS
- How can I center into a div?
- CSS div alternating colour
- div hover background-color change?
- Webkit CSS to control the box around the color in an input[type=color]?
- Make an image to fit its parent dimensions
- Canvas is stretched when using CSS but normal with `width` & `height` attributes
- Change an HTML input’s placeholder color with CSS
- Centering a canvas
- How to display and hide a div with CSS?
- CSS align images and text on same line
- margin-left: auto and margin-right: auto not working on input
- override css for html5 form validation/required popup
- How to center things – display:block/inline-block
- What is the current state of the “scoped” attribute for the style element in HTML5?
- Disable zoom on a div, but allow zoom on the page (an alternate div)