I have a rather interesting problem, and I thought if this could be done exclusively in CSS. I know you can use webkit moz or javascript transforms, but is there another simple solution for CSS cross browser?
I have a field with a class container.
.container
{
position: absolute;
border: black 1px solid;
top: 100px;
left:100px;
width: 10px;
height: 10px;
}
Now, what I want to do is mouse hover (CSS hover) - this will increase the margin to 30 pixels by 30 pixels around the center point somewhere in the approximate center of the 10x10 window, returning to the original container when I exit. Sort of:
.container:hover
{
width: 30px;
height: 30px;
top: 90px;
left:90px;
}
Now the difficulty is that the positions topand Leftare set in the HTML sent from the database and therefore are not displayed in the CSS file.
, CSS ( , ), Javascript onmouseover onmouseout . , . eeeugh.
, , CSS?