Tagged: hightlight text
- This topic has 7 replies, 2 voices, and was last updated 4 years, 7 months ago by Skandha.
-
AuthorPosts
-
September 1, 2019 at 2:35 pm #181005the brinkParticipant
Hello,
I was wondering if you would be able to advise me on how to highlight text with a colour using CSS?
I want to Highlight ‘Click here for our Environmental Commitment’ in green and also remove the underline.
Here is a link to the page http://thebrinkonline.org/about/
Thankyou!
September 2, 2019 at 12:12 am #181038SkandhaParticipant@the-brink: Hello there,
Go to => Appearance => Customize => Additional CSS and add the following CSS Code.#post-2 .entry-content span p a { background: lightgreen; text-decoration: none; }
Let me know if this is what you want!
Kind Regards,
SkandhaSeptember 2, 2019 at 12:47 am #181050the brinkParticipantwow, thats great, it works perfectly.
Now I’m just wondering how I can apply that same concept to other elements of my site?
I’m unsure what the ‘#post-2 .entry-content span p a’ refers to.Thanks for your help!
September 2, 2019 at 4:43 am #181069SkandhaParticipant@the-brink: Hello there,
You will need to be familiar with CSS to understand this.
You can let me know if you want to make any further changes.Kind Regards,
SkandhaSeptember 3, 2019 at 2:10 pm #181181the brinkParticipantHi,
I’ve got some familiarity with css. I’m just wondering where I can find reference those terms which point to the element in question so I can apply the same logic myself to other elements. I couldn’t find them using the “inspector” tool.
I have made some new highlighted elements now using the plugin “shortcodes ultimate”, but I would like to behave like the title on hover (i.e. they shouldn’t be underlined when I apply a “href” value to them, instead the lettering should change colour)
element in question are for example the two boxes below the text on this page.
thanks!
September 6, 2019 at 12:45 am #181437SkandhaParticipant@the-brink: Hello there,
I checked your site you seem to have resolved the issue. To make use of CSS Code you will need to use the inspect element tool on your browser and then search for class and id’s of element to apply something to it.Kind Regards,
SkandhaSeptember 13, 2019 at 2:35 pm #182086the brinkParticipantHi Skandha,
Nope I’m afraid the issue is not resolved. As you can see here, the lower box “support us” shows an underline which I don’t want to be there. I assume that the underline is only not visible in the “email” box because it is black.
My most urgent request is to make the underline disappear under the support us in the orange box.
Also I would like to make both the boxes (and the other “email” boxes here and here) respond to hovering by having the lettering change colour (same as in the case of the website title).
thanks for your help
TB
September 16, 2019 at 12:54 am #182187SkandhaParticipant@the-brink: Hello there,
Go to => Appearance => Customize => Additional CSS and add the following CSS Code.
/* To remove the underline in the text "Support Us" */ #post-2 .entry-content a { text-decoration: none; } /* To change text color on hover */ .entry-content a:hover .su-highlight.get-in-touch, .textwidget.custom-html-widget a:hover .su-highlight.get-in-touch { color: #F8155A !important; }
Let me know if this works out!
Kind Regards,
Skandha -
AuthorPosts
- The topic ‘Highlight text’ is closed to new replies.