I did not find any answer for my question, even if it is really simple.
I am using the CSS proprety box-sizing to do an "inside border" for a div (which is actually a <a>...</a>
)
.myDiv{
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
border: 2px solid #3498db;
}
But it seams that it is not working at all as the border is the same without border-box properties. Anyone has an answer?
Just to be sure of what I am doing. What I want is to get a <a>
an "inside border". I obviously know the border: ...;
property but it is making the element bigger and I don't want that. I would like to have something like border: -2px solid #3498db
.
[EDIT] I found a solution. Description on the comments.