Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shazzad Hossain Khan

    (@sajib1223)

    Yes, But that’s a CSS thing. Check it here –
    https://www.w3.org/Style/Examples/007/evenodd.en.html

    Thread Starter iafserviceswebsite

    (@iafserviceswebsite)

    What would I apply the even odd styling to? This is what our template code says:

    [posts]

    [post_date format=”F j, Y”] at <span id=”createon-[post_number]”>[post_time format=”g:i a”]</span>: [title] <span id=”modifyon-[post_number]”>(updated at [post_modified_time format=”g:i a”])</span>

    <script>
    var id=”[post_number]”;
    if( (“(updated at “+$(“#createon-“+id).text()+”)”)==$(“#modifyon-“+id).text() )
    $(“#modifyon-“+id).hide();
    </script>

    [/posts]

    Plugin Author Shazzad Hossain Khan

    (@sajib1223)

    Hi, well you can wrap each post inside an element. ex:

    <div class="myItems"><!-- this wraps the whole list-->
    [posts]
    <div class="myItem"><!-- this wrap each list item-->
    .... rest of the code ...
    </div>
    [/posts]
    </div>

    The following code could go inside the Style -> CSS field

    .myItems .myItem:nth-child(2n){background: #FFF;}
    .myItems .myItem:nth-child(2n+1){background: #CCC;}

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS Styles – Every other post styles’ is closed to new replies.