Monday, August 20, 2018

Web site tricks

To get rid of the underline on links:

    a { text-decoration: none; }

To put more spacing between bullet points:

    li { margin-bottom: 0.5em; }

To change the color of a link:

    a { color: yellow; }

To change the color of a link that was visited previously:

    a:visited { color: orange; }

To change the color of a link only when you are hovering over it:

    a:hover { color: red; }

To underline a link only when you are hovering over it:

    a:hover { border-bottom: 1px solid red; }

To make a sans-serif font default for your page:

    body { font-family: sans-serif; }


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.