Platinum Partner

Center HTML Content Horizontally Using CSS

Ahh the infamous CSS centering thing... make sure to specify the width and set the right/left margins to 'auto'


#content {
        margin: 0 auto;
        width: 740px;
}


Your HTML would look something like this:

This is centered
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}