diff --git a/css/style.css b/css/style.css index 784fc53..805e03e 100644 --- a/css/style.css +++ b/css/style.css @@ -1545,6 +1545,7 @@ .company{ display: flex; justify-content: center; + flex-wrap: wrap; margin: 40px auto 60px; } .contact li, @@ -1553,9 +1554,14 @@ padding: 10px; background-color: #FFFFFF; box-shadow: 0 0 8px 6px rgba(198,198,198,0.15); + margin-top: 20px; } -.contact li:first-child, -.company li:first-child{ +.contact li:nth-of-type(1),.contact li:nth-of-type(2), +.company li:nth-of-type(1),.company li:nth-of-type(2){ + margin-top: 0; +} +.contact li:nth-child(odd), +.company li:nth-child(odd){ margin-right: 4.4%; } .contact li .contact-txt{