This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 1 year, 6 months ago.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Text alignment
This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 1 year, 6 months ago.
Hi, I am having a lot of issues with trying to text-align: center the first line of text on the search results. No matter where I put the code, it doesn’t work? See image – it’s the bit in the red circle I need to centre.
Hi,
It happens, because the text itself is inline within an anchor and the containing h3 element is also displayed as inline (that is the default for browsers). To center them, the container has to be converted to a block and given a 100% width. This custom CSS will do the trick:
.asp_r h3 {
display: block;
width: 100%
}
.asp_r h3, .asp_r h3 a {
text-align: center !important;
}
Best,You must be logged in to reply to this topic.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |