teppy's layouts & tips


links

here are some cool ways to style links!!

intro

Links are the "<a>" tags that allow you to link to other pages.

by default, most browsers show links as blue, and underlined.

The basic link, without any CSS styling:
HTML

now below are some ways to make your HTML links ("<a>" tags) look different using CSS styling!

underlines

usually, people like to remove the underlines:

removing the underline:
CSS

you can use the "border" CSS to give some other types of outlines.

CSS
CSS
CSS
CSS

hovering

we can specify what the links should look like when the mouse cursor hovers over our links.

keep this in mind when looking through these link styles since you can always mix and match!

CSS
CSS

buttony menus

using the same "<a>" tags, we can style them to be some blocky links, suitable for menus!

HTML
CSS

the below used "::before" which is an advanced CSS rule - it allows us to kind of create a ghost-element. In this case I created a second lighter rectangle, to give the illusion of a glossy button!

HTML
CSS

below we use "border" for the left-side and bottom-side in a creative way with "hover" to make it look like a 3D button press!

HTML
CSS
HTML
CSS
HTML
CSS
HTML
CSS
HTML
CSS

horizontal buttons

to make the menus horizontal, replace the "display: block" with "display: inline-block"



Back 2 cool styles