255
<div class="customwidget">
<div id="neighborhoodwidget">
<h3 id="neighborhoodwidgettitle" class="widget-title">Search Cypress, TX by Neighborhood</h3>
<div class="search-by-neighborhood-text"></div>
<div class="neighborhoodwidth">
<a href="/neighborhood/bridgeland-homes-for-sale/"><div class="neighborhoodcaption"><h3>Bridgeland</h3></div><img src="/wp-content/uploads/2014/10/wooden-room-trees.jpg" alt="Bridgeland"></a>
</div>
<div class="neighborhoodwidth">
<a href="/neighborhood/cypress-creek-lakes-homes-for-sale/"><div class="neighborhoodcaption"><h3>Cypress Creek Lakes</h3></div><img src="/wp-content/uploads/2014/10/wooden-room-trees.jpg" alt="Cypress Creek Lakes"></a>
</div>
<div class="neighborhoodwidth">
<a href="/neighborhood/towne-lake-homes-for-sale/"><div class="neighborhoodcaption"><h3>Towne Lake Homes</h3></div><img src="/wp-content/uploads/2014/10/wooden-room-trees.jpg" alt="Towne Lake Homes"></a>
</div>
<div class="neighborhoodwidth">
<a href="/neighborhood/fairfield-homes-for-sale/"><div class="neighborhoodcaption"><h3>Fairfield</h3></div><img src="/wp-content/uploads/2014/10/wooden-room-trees.jpg" alt="Fairfield"></a>
</div>
<div class="neighborhoodwidth">
<a href="/neighborhood/blackhorse-ranch-homes-for-sale/"><div class="neighborhoodcaption"><h3>Black Horse Ranch</h3></div><img src="/wp-content/uploads/2014/10/wooden-room-trees.jpg" alt="Longwood"></a>
</div>
<div class="neighborhoodwidth">
<a href="/neighborhood/coles-crossing-homes-for-sale/"><div class="neighborhoodcaption"><h3>Coles Crossing</h3></div><img src="/wp-content/uploads/2014/10/wooden-room-trees.jpg" alt="Canyon Lakes"></a>
</div>
</div>
</div>
256
/**************************
Six Neighborhodd Display
***************************/
// Custom Widget Properties
.customwidget {
width: 100%;
float: left;
}
// Neighborhood Widget (the entire container)
#neighborhoodwidget {
float: left;
width: 100%;
background-color: white;
padding: 10px;
margin-top: 10px;
margin-bottom: 10px;
}
// Neighborhood Widget (the main text header)
#neighborhoodwidgettitle {
padding: 15px 0;
border-bottom: 3px solid #aaa;
font-size: 28px;
font-weight: 700;
text-align: center;
background-color: $brand-primary;
color: $brand-second;
text-transform: uppercase;
color: #fff;
letter-spacing: 11px;
}
// Neighborhood Widget (the img)
#neighborhoodwidget img {
width: 100%;
height: 265px;
margin-top: 10px;
}
// Neighborhood Widget Caption (the container)
.neighborhoodcaption {
width: 70%;
position: absolute;
top: 200px;
background-color: rgba(0, 0, 0, 0.7);
height: 55px;
text-align: center;
}
// Neighborhood Widget Text (h3)
.neighborhoodcaption h3 {
margin-top: 13px;
color: #FFFFFF;
font-weight: bold;
}
// Neighborhood Widget Width (responsive width - row of three)
.neighborhoodwidth {
width:33.33333%;
float: left;
position: relative;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
// Media Queries
@media (max-width: 1199px) {
// Adjusting font size and margining to center in container
.neighborhoodcaption h3 {
font-size: 17px;
margin-top: 17px;
}
// Neighborhood Widget Width (responsive width - row of two)
.neighborhoodwidth {
width:50%;
}
}
@media (max-width: 766px) {
// Adjusting font size
#neighborhoodwidgettitle {
font-size: 16px;
}
// Neighborhood Widget Width (responsive width - row of one)
.neighborhoodwidth {
width:100%;
}
// Centering the entire div and changing width
#neighborhoodwidget {
float: none;
width: 70%;
margin-left: auto;
margin-right: auto;
}
}
@media (max-width: 521px) {
// Changing width of entire container
#neighborhoodwidget {
width: 100%;
}
}
0 people found this article useful
0 people found this article useful