Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

How to center and and fade text color when hovered over in markdown?



Hi everyone!

I’m having some trouble with markdown and I’m hoping someone in the community might be able to help.

Using markdown, my goal is to have a line of text in H2 centered AND fade to a different color when you hover over it.

Using the code below, I’ve been able to get the text to fade when I hover over it using the markdown code below. But I haven’t been able to figure out how to center it, it stays left-aligned. There is also a strange thin line that’s appearing under the text that I’m not sure how to remove.

(Screenshot of code is attached as the Squarespace forum translated the code when I typed it below)

alt textalt textMy website is using the Mentor template, and it’s at https://inmymindconference.com.

Thanks so much for your help!



Edited by ahizora
Initial Revision
Link to comment
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Posted Images

2 answers to this question

Recommended Posts

  • 0

@ahizora sorry, this code :D

/* Center h2 */
h2#-a-data-preserve-html-node-true-id-celebratefiveyears-style-color-fee8b6-class-fadeinup-celebrating-5-years-a- {
   text-align: center;
/* Remove line */
a#celebratefiveyears {
   border-bottom: none;

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...