The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS Style Specific Word?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #286978

    I have am using a WordPress plugin for event listings and such. You can check out an example here

    The details sidebar Spits out labels “Dates” for example. By default it’s aligned to the left.

    Can somebody let me know what the selector would be if I want to specifically align the word “Dates” to the center?

    .geodir-aligncenter {
        clear: both;
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: fit-content;
        text-align: center; /* add this */

    Unfortunately, this will also align the actual dates to the center so you’d have to override that for them.

    .geodir_post_meta {
        text-align: left; /* add this */
        text-indent: .25px;
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.