Forums

[plugin gd star rating] Need some help with basic CSS (3 posts)

  1. wouldyou
    Member
    Posted 2 years ago #

    Hey!

    Im pretty new to editing with css... I've been using the gd star rating plugin. I am trying to center the stars that appear in each post.

    So far i am able to center if i manually insert each rating block into the post:

    putting this into the html of a post centers the rating block how i want:

    <div align='center'>[starratingblock]</div>

    what i am trying to do is center the block all the time so that i dont have to insert that code each post.

    i have tried adding this to the css and php file of gd star rating so far:

    .ratingblock {width: 100%; margin-left: auto; margin-right: auto;}

    From what i googled i thought setting both margins at auto might work however it didnt..

    Im sure this is probably easy stuff i just havn't found the solution yet..

    thanks for any help!

  2. wouldyou
    Member
    Posted 2 years ago #

    still messing around with this.. no luck so far.

  3. Milan Petrovic
    Member
    Posted 2 years ago #

    Well, it depends on the theme for one and the location where the block is added. Also rating block has several nested divs, and some of them may require additional styling to position properly with the theme you are using.

Topic Closed

This topic has been closed to new replies.

About this Topic