TheDarkKnight TheDarkKnight - 5 months ago 8
CSS Question

Items jump round on hover

Link: http://path.com.my/v2/gallery/

Try when you hover/mouseover one of the links in the tab, especially near EXTERIOR, ILLUMINATED, INTERIOR, PYLON , the items on the second row keep moves around.

I tried changing a few of the CSS on hover but it doesn't seems to work.
Anyone can help?

Answer

Remove float from .sortLink and use inline-block instead.

Use following css:

.sortLink {
    display: inline-block;
    vertical-align: top;
    color: #999;
    font-size: 14px;
    padding: 5px 8px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0 5px 5px 0;
    transition-duration: 0.5s;
}
Comments