Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Wednesday 25 March 2015

Design anchor tag in visited link, select link, unvisited link and active link and link open in new tab


hello

you want to open in new tab then use target="_blank" propertity in anchor tab
example

http://myphpinformation.blogspot.in

anchor tag css

/* unvisited link */
a:link {
color: green;
}

/* visited link */
a:visited {
color: #776655;
}

/* mouse over link */
a:hover {
color: red;
}

/* selected link */
a:active {
color: yellow;
}
anchor tag css add in style see it.

if you want to change text-decoration in anchot tag.

text-decoration propertity by default in text-decoration: underline; if you want to remove
unader line text-decoration: none; is your css.

a:link {
color: green;
text-decoration: none;
}

if you want line in over the link then you can set as
below
a:link {
color: green;
text-decoration: overline;

}

if you want to create link line-through then change

a:link {
color: green;
text-decoration: line-through;

}

you can also change anchor tag background color;

a:link {
background-color: red;
color: #ffcc77;
text-decoration: none;
}

you can also change it font family
a:link {
background-color: red;
color: #ffcc77;
text-decoration: none;
font-family: Verdana;
}