Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can you change the color of a link within Google Sites when the mouse hovers over the link?

share|improve this question

Although I have not used Google Sites, I believe the problem you are having is that it does not let you add custom CSS?

Having checked Google and finding a "CSS Workaround" I see that while you cannot add custom CSS, you can add custom HTML. Although most people prefer using CSS for styling, you can still add CSS to the attributes in HTML.

For example:

<a href="#"onmouseover="this.style.color='#ffffff';"    onmouseout="this.style.color='#000000';" style="color:#000000;">Link</a>

While I have not tested this in Google Sites, I am 90% sure it will work. Unless they do not allow inline Javascript either, in which case I am sorry and there is nothing you can do.

share|improve this answer

Google site clearing inline javascript.

You should use HTML Box (https://support.google.com/sites/answer/2500646?hl=en) for features as hover. Allows you to use custom css and javascript.

Unfortunately, HTML Box content is displayed on page with delay

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.