Answer the question
In order to leave comments, you need to log in
How to change li on hover?
Good afternoon. I would like to make a calendar where, when hovering over a date, a "circle around that date" appears. If I just make a circle on hover, it will remove the elements that are further away, since the size of the hovered element will change. How to get around this?
.calendar .number li a:hover {
cursor: pointer;
border-radius: 50%;
color: #7B4EFE;
line-height: 1;
outline: 0;
border: 0;
width: 35px;
height: 35px;
background-color: #fff;
text-align: center;
transform: scale(1.2);
}
Answer the question
In order to leave comments, you need to log in
Circle everything in advance with transparent circles, remove transparency when hovering.
How to bypass it?
<li>
used for lists, so in my opinion it simply does not fit the calendar. <table>
and then manage the elements of the table to your liking. When you hover over a table element, you draw a border with a CSS3 property border-radius:50%
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question