Search code examples
htmlcssgenesis

How do I center the post title?


How do I center the title "BOASISH IS UNDER CONSTRUCTION" but keep By Kyle Boas · Follow: Twitter, Google+ September 4, 2014 as it is. My website is http://boasish.com, if you get a error page then use http://orangina.asmallorange.com/~boasishc/ as the url instead of http://boasish.com

<h2 class="entry-title" itemprop="headline"><a href="http://orangina.asmallorange.com/~boasishc/site-under-construction/" rel="bookmark">Boasish is Under Construction</a></h2>
    <a href="http://orangina.asmallorange.com/~boasishc/site-under-construction/" rel="bookmark">Boasish is Under Construction</a>
</h2>

Solution

  • You can add this code to you css

    .entry-header h2{
       text-align: center;
       width: 100%;
    }
    

    or just add this code

    .entry-header{
       text-align: center;
    }
    
    header .entry-meta{
       text-align: left;
    }
    

    enter image description here