Coder Wrap provides free to use snippets Coder Wrap provides free to use snippets

🗙
Login
Register

Create Account

Cancel
Back to Web elements
Preview Source Code
Download
HTML
CSS
/**Typeo CSS Start**/
* {
 box-sizing: border-box;
}

body {
 margin: 0px;
 background-color: #fff;
}

img {
 max-width: 100%;
}

/**Typeo CSS End**/
.offices, .offices * {
 --page-width: 1230px;
 --base-fm: 'system-ui', sans-serif;
 --title-size: 30px;
 --base-size: 18px;
 --black-clr: #000000;
 --white-clr: #ffffff;
 --bg-clr: #f5f9ff;
 --theme-clr: #072C5D;
}

.page-width {
 max-width: var(--page-width);
 padding: 0 15px;
 margin: auto;
 width: 100%;
}

.offices {
 line-height: 1.3;
 width: 100%;
 font-size: var(--base-size)
 color:var(--black-clr);
 font-family: var(--base-fm);
 padding: 50px 0px;
 background-color: var(--bg-clr);
 text-align: center;
}

.offices h2 {
 font-size: var(--title-size);
 margin-top: 0px;
 margin-bottom: 20px;
}

.offices-list {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
 grid-gap: 20px;
}

.offices-list .offices-item {
 background-color: var(--white-clr);
 border: #e9e9e9 1px solid;
 box-shadow: rgba(0, 0, 0, 0.1) 0px 0 8px;
 text-align: center;
 margin-top: 50px;
}

.offices-img {
 width: 100px;
 height: 100px;
 overflow: hidden;
 border-radius: 100%;
 border: var(--theme-clr) 2px solid;
 margin: -50px auto 0 auto;
}
.offices-img img {
 width: 100%;
 height: 100%;
 display: block;
 object-fit: cover;
}

.offices-cont {
 width: 100%;
 padding: 15px 20px;
}

.offices-list .offices-item h3 {
 font-size: 18px;
 margin: 0;
}

.offices-list .offices-item p {
 font-size: calc(var(--base-size) - 3px);
 line-height: 1.5;
 margin: 10px 0px;
 min-height: 68px;
}

.offices-list .offices-item .directions-btn {
 background-color: var(--theme-clr);
 color: var(--white-clr);
 text-decoration: none;
 padding: 8px 15px;
 display: inline-block;
 border: var(--theme-clr) 1px solid;
 transition: 0.5s all;
}

.offices-list .offices-item .directions-btn:hover {
 background-color: transparent;
 color: var(--theme-clr);
}
@media(max-width: 992px) {
	.offices {
		padding: 40px 0px;
	}
	.offices-list {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    grid-gap: 10px;
}
}

Related Web Elements