Home › Forums › CSS › moving an anchor tag up when we i hover it . › Reply To: moving an anchor tag up when we i hover it .
August 20, 2013 at 1:58 pm
#147626
noahgelman
Participant
Remove your current styles that are trying to move the link and add:
a {
position:relative; /* This will let us change where the link is displayed visually without affecting the rest of the dom */
}
a:hover {
top:-2px; /* This value is the px length and direction you wish to move the link */
}