On évite les décalages à l'aide de box-shadow

This commit is contained in:
Matthieu Patout 2021-09-04 11:54:38 +02:00
parent 5aab3a5e25
commit a21112225c
1 changed files with 5 additions and 6 deletions

View File

@ -29,14 +29,13 @@ main article p {
width:80%; width:80%;
margin-left:10%; margin-left:10%;
margin-bottom:2%; margin-bottom:2%;
background:#FFFFFF; background:#FFFFFF;
border:dashed ; box-shadow: inset 0 0 0 2px rgba(45,81,144);
border-color:#00419b; }
border-width:2px;}
main article p:hover { main article p:hover {
border-width:4px; box-shadow: inset 0 0 0 6px rgba(45,81,144);
border-color:#5aa120;} }
main article p a img { main article p a img {
width:96%; width:96%;