Forums

[resolved] Code to left justify comments on single page (7 posts)

  1. beisbolct
    Member
    Posted 3 years ago #

    For some reason, the comments are showing up on my blog as centered. I have not changed anything that would affect this. How do i get my comments to align on the left of the page.
    http://randomthoughts.ianbethune.com/?p=111

  2. bmonster99
    Member
    Posted 3 years ago #

    Add this to your css file...

    ol#comments { text-align:left; }

  3. beisbolct
    Member
    Posted 3 years ago #

    ok this is what i see there. so where would i add that?

    /* Begin Comments*/
    .alt {
    margin: 0;
    padding: 10px;
    }

    .commentlist {
    padding: 0;
    text-align: justify;
    }

    .commentlist li {
    margin: 15px 0 3px;
    padding: 5px 10px 3px;
    list-style: none;
    }

    .commentlist p {
    margin: 10px 5px 10px 0;
    }

    #commentform p {
    margin: 5px 0;
    }

    .nocomments {
    text-align: left;
    margin: 0;
    padding: 0;
    }

    .commentmetadata {
    margin: 0;
    display: block;
    }
    /* End Comments */

  4. bmonster99
    Member
    Posted 3 years ago #

    You can add it anywhere as long as it is not inside a comment (/*comment*/). A good place would be just before the /*End Comments*/, but it doesn't really matter in this case.

  5. beisbolct
    Member
    Posted 3 years ago #

    ok i added what you said and nothing seemed to change..any ideas? and thank you for your help.

  6. beisbolct
    Member
    Posted 3 years ago #

    ok. oddly enough after making a post. everything aligned to the left in the comment section...thank you again for your help.

  7. bmonster99
    Member
    Posted 3 years ago #

    you are welcome beisbolct. glad i could help :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags