WordPress.org

Ready to get started?Download WordPress

Forums

Style Sheet - Header alignment (5 posts)

  1. dkelly85
    Member
    Posted 4 years ago #

    Hi,

    Hoping someone can help. I'm trying to edit the style sheet and want to change the alignment. Currently it is centred, which I don't like the look of. I good example of this on my blog is http://www.clarosoftware.com/blog/?p=75

    Does anyone know what exactly to edit in the css file? Any help would be much appreciated.

    Thanks

  2. Peter Boosten
    Member
    Posted 4 years ago #

    It isn't centered, but justified.

    add text-align: left; to the h2 tag in your stylesheet, like this:

    h2 {
      margin:30px 0 0;
      text-align:left;
    }

    line 348 in your style.css, however this will also look strange for that particular header.

    Peter

  3. dkelly85
    Member
    Posted 4 years ago #

    Hi Peter,

    Thanks for that. Much appreciated.

    Daniel

  4. landia
    Member
    Posted 4 years ago #

    Hi Peter,

    I have a similar question but do not want to use exact positioning - I want to align the element using % instead so that it shifts accordingly when the page is resized. Can you help?

    Thanks,
    Landia

  5. esmi
    Forum Moderator
    Posted 4 years ago #

    Site url?

Topic Closed

This topic has been closed to new replies.

About this Topic