I have assigned a class to the "next" and "previous" functions on my webpage, and I am interested in increasing their size on hover so that they take up more space and push the other elements aside. For example:
When I hover over the NEXT button, I want it to expand in size, thereby shifting the back and top buttons to make room.
I'm not sure if this can be achieved with a class rather than an id. I attempted using .next:hover{width:120%}, but it did not produce the desired effect.
Below is the relevant code snippet:
#pager{ width:100%; height:50px; margin-top:20px; margin-bottom:20px; margin-left:auto; margin-right:auto; } #pagination{ margin:auto; width:572px; height:30px; text-align:center; } .pagicon, .next{ display:inline; } .pagicon a, .next{ font-size:11px; padding:5px; margin:5px; color:{color:Pagination}; background:{color:Pagination background}; border-radius:{text:Border radius}; } .pagicon a:hover, .next:hover{ cursor:pointer; color:{color:Bold}; background:{color:Hover}; } .pagicon i, .next i{ color:{color:Icon}; font-size:15px; margin:5px; text-decoration:none; } .pagicon:hover i, .next:hover i{ color:{color:Bold}; }
(In the live website, there are boxes around the buttons)
Thank you!