The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › CSS Style Specific Word?
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; }