I have a footer for my project which has two images... each one of them is stuck to a particular corner. The lower left corner is the Division logo (system_footer_left); while the lower right corner is the Brand Logo (system_footer_right). What I would like to do is to have the size of the section to be the same as the width, even if the widths of the images are not the same.
How can I make this happen?
In my current project design, the left logo is about half the width of the right logo.
I am rusty with CSS, I have not been able to find any answers online. I did not want to set the width as a fixed percentage as I would like to have it be dynamic, so that if we change brand assets (logos) it will just "plug and play".
#system_footer {
padding: 5 5 0 5;
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: rgba(5, 51, 107, .75);
text-align: center;
margin: auto;
}
#system_footer_center {
padding: 10px;
bottom: 0;
background-color: transparent;
color: #FFD700;
text-align: center;
font-size: 12px;
font-weight: 500;
margin: auto;
word-wrap: break-word;
text-shadow: 2px 2px 2px #FF8C00;
}
#system_footer_right {
background: rgb(170, 213, 255);
background: -webkit-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: -o-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#aad5ff", endColorstr="#05336b", GradientType=1);
padding: 14px;
float: right;
max-width: 30%;
text-align: right;
border: 3px outset rgba(208, 207, 204, .5);
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
border-radius: 10px 10px 10px 10px;
-webkit-box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
-moz-box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
}
#system_footer_right:hover {
background: rgb(170, 213, 255);
background: -webkit-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: -o-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#aad5ff", endColorstr="#05336b", GradientType=1);
padding: 14px;
float: right;
max-width: 30%;
text-align: right;
border: 4px outset rgba(231, 231, 229, 1);
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
border-radius: 10px 10px 10px 10px;
-webkit-box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
-moz-box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
}
#system_footer_left {
background: rgb(170, 213, 255);
background: -webkit-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: -o-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#aad5ff", endColorstr="#05336b", GradientType=1);
padding: 14px;
float: left;
max-width: 30%;
text-align: left;
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
border-radius: 10px 10px 10px 10px;
border: 3px outset rgba(208, 207, 204, .5);
-webkit-box-shadow: 1px -0px 1px 1px rgba(255, 255, 255, 0.75);
-moz-box-shadow: 1px -0px 1px 1px rgba(255, 255, 255, 0.75);
box-shadow: 1px -0px 1px 1px rgba(255, 255, 255, 0.75);
}
#system_footer_left:hover {
background: rgb(170, 213, 255);
background: -webkit-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: -o-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#aad5ff", endColorstr="#05336b", GradientType=1);
padding: 14px;
float: left;
max-width: 30%;
text-align: left;
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
border-radius: 10px 10px 10px 10px;
border: 4px outset rgba(231, 231, 229, 1);
-webkit-box-shadow: 1px -0px 1px 1px rgba(255, 255, 255, 0.75);
-moz-box-shadow: 1px -0px 1px 1px rgba(255, 255, 255, 0.75);
box-shadow: 1px -0px 1px 1px rgba(255, 255, 255, 0.75);
}
.cny-logo-sm {
width: auto;
max-height: 35px;
object-fit: scale-down;
}
#media screen and (min-width: 300px) {
#system_footer_center {
font-size: calc(12px + (16 - 12) * ((100vw - 300px) / (1000 - 300)));
}
}
/* WITHOUT THE BLOCK BELOW, THE FONT WOULD CONTINUE TO GROW */
#media screen and (min-width: 1000px) {
#system_footer_center {
font-size: 16px;
}
}
<div id='system_footer'>
<div id='system_footer_left'>
<img src='../resources/logo/b_white_trans.png' alt='(Decorative) ' class='cny-logo-sm'>
</div>
<div id='system_footer_right'>
<img src='.../resources/logo/cny.png' alt='CNY (Logo)' class='cny-logo-sm'>
</div>
<div id='system_footer_center'>
<p>For technical support, please contact XXXX at <a href='mailto:DONTEMAIL#MY.BRAND.COM?subject=MCR System'>XXX#XXXX.XXX</a></p>
</div>
</div>
I am trying to get the left and right footer element frames to be the same width dynamically.
You can try something like this. You can't by CSS set the same width for 2 elements based on their content, you can set the width in percent or in other relative units for both containers and align content inside. I have updated hover effects and sizes because it looks bad when content jumps. I remove duplicated CSS, you have same styles on the left and the right blocks. Images keep aspect ratio, updated styles. Sorry for my bad English.
.cny-logo-sm {
display: block;
margin: auto;
width: auto;
max-width: 100%;
max-height: 35px;
object-fit: contain;
}
#system_footer {
box-sizing: border-box;
display: flex;
justify-content: space-between;
padding: 5px 5px 0;
position: fixed;
left: 0;
bottom: 0;
right: 0;
width: 100%;
background-color: rgba(5, 51, 107, .75);
text-align: center;
margin: auto;
}
#system_footer_center {
flex: 1 0 auto;
padding: 10px;
bottom: 0;
background-color: transparent;
color: #FFD700;
text-align: center;
font-size: 12px;
font-weight: 500;
margin: auto;
word-wrap: break-word;
text-shadow: 2px 2px 2px #FF8C00;
}
#system_footer_right {
order: 3;
}
#system_footer_left,
#system_footer_right {
display: inline-block;
flex: 1 1 30%;
/*max-width: 30%;*/
box-sizing: border-box;
background: rgb(170, 213, 255);
background: -webkit-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: -o-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#aad5ff", endColorstr="#05336b", GradientType=1);
padding: 15px;
text-align: right;
border: 3px outset rgba(208, 207, 204, .5);
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
border-radius: 10px 10px 10px 10px;
-webkit-box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
-moz-box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
}
#system_footer_left:hover,
#system_footer_right:hover {
background: rgb(170, 213, 255);
background: -webkit-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: -o-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#aad5ff", endColorstr="#05336b", GradientType=1);
padding: 14px;
max-width: 30%;
border: 4px outset rgba(231, 231, 229, 1);
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
border-radius: 10px 10px 10px 10px;
-webkit-box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
-moz-box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
}
#media screen and (min-width: 300px) {
#system_footer_center {
font-size: calc(12px + (16 - 12) * ((100vw - 300px) / (1000 - 300)));
}
}
/* WITHOUT THE BLOCK BELOW, THE FONT WOULD CONTINUE TO GROW */
#media screen and (min-width: 1000px) {
#system_footer_center {
font-size: 16px;
}
}
<div id='system_footer'>
<div id='system_footer_left'>
<img src='https://via.placeholder.com/150x30' alt='(Decorative) ' class='cny-logo-sm'>
</div>
<div id='system_footer_right'>
<img src='https://via.placeholder.com/270x270' alt='CNY (Logo)' class='cny-logo-sm'>
</div>
<div id='system_footer_center'>
<p>For technical support, please contact XXXX at <a href='mailto:DONTEMAIL#MY.BRAND.COM?subject=MCR System'>XXX#XXXX.XXX</a></p>
</div>
</div>
I am still not sure I understand you request but I think that this is what you are needing
#system_footer_left img,
#system_footer_right img{
width:100%;
}
#system_footer {
padding: 5 5 0 5;
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: rgba(5, 51, 107, .75);
text-align: center;
margin: auto;
}
#system_footer_center {
padding: 10px;
bottom: 0;
background-color: transparent;
color: #FFD700;
text-align: center;
font-size: 12px;
font-weight: 500;
margin: auto;
word-wrap: break-word;
text-shadow: 2px 2px 2px #FF8C00;
}
#system_footer_right {
background: rgb(170, 213, 255);
background: -webkit-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: -o-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#aad5ff", endColorstr="#05336b", GradientType=1);
padding: 14px;
float: right;
max-width: 30%;
text-align: right;
border: 3px outset rgba(208, 207, 204, .5);
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
border-radius: 10px 10px 10px 10px;
-webkit-box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
-moz-box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
}
#system_footer_right:hover {
background: rgb(170, 213, 255);
background: -webkit-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: -o-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#aad5ff", endColorstr="#05336b", GradientType=1);
padding: 14px;
float: right;
max-width: 30%;
text-align: right;
border: 4px outset rgba(231, 231, 229, 1);
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
border-radius: 10px 10px 10px 10px;
-webkit-box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
-moz-box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
box-shadow: -1px -0px 1px 1px rgba(255, 255, 255, 0.75);
}
#system_footer_left {
background: rgb(170, 213, 255);
background: -webkit-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: -o-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#aad5ff", endColorstr="#05336b", GradientType=1);
padding: 14px;
float: left;
max-width: 30%;
text-align: left;
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
border-radius: 10px 10px 10px 10px;
border: 3px outset rgba(208, 207, 204, .5);
-webkit-box-shadow: 1px -0px 1px 1px rgba(255, 255, 255, 0.75);
-moz-box-shadow: 1px -0px 1px 1px rgba(255, 255, 255, 0.75);
box-shadow: 1px -0px 1px 1px rgba(255, 255, 255, 0.75);
}
#system_footer_left img,
#system_footer_right img{
width:100%;
}
#system_footer_left:hover {
background: rgb(170, 213, 255);
background: -webkit-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: -o-linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
background: linear-gradient(rgba(170, 213, 255, 0.5) 8%, rgba(5, 51, 107, 1) 29%, rgba(5, 51, 107, 0.6362920168067228) 67%, rgba(170, 213, 255, 1) 100%, rgba(5, 51, 107, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#aad5ff", endColorstr="#05336b", GradientType=1);
padding: 14px;
float: left;
max-width: 30%;
text-align: left;
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
border-radius: 10px 10px 10px 10px;
border: 4px outset rgba(231, 231, 229, 1);
-webkit-box-shadow: 1px -0px 1px 1px rgba(255, 255, 255, 0.75);
-moz-box-shadow: 1px -0px 1px 1px rgba(255, 255, 255, 0.75);
box-shadow: 1px -0px 1px 1px rgba(255, 255, 255, 0.75);
}
.cny-logo-sm {
width: auto;
max-height: 35px;
object-fit: scale-down;
}
#media screen and (min-width: 300px) {
#system_footer_center {
font-size: calc(12px + (16 - 12) * ((100vw - 300px) / (1000 - 300)));
}
}
/* WITHOUT THE BLOCK BELOW, THE FONT WOULD CONTINUE TO GROW */
#media screen and (min-width: 1000px) {
#system_footer_center {
font-size: 16px;
}
}
<div id='system_footer'>
<div id='system_footer_left'>
<img src='https://via.placeholder.com/500x60?text=Decorative' alt='(Decorative) ' class='cny-logo-sm'>
</div>
<div id='system_footer_right'>
<img src='https://via.placeholder.com/250?text=logo' alt='CNY (Logo)' class='cny-logo-sm'>
</div>
<div id='system_footer_center'>
<p>For technical support, please contact XXXX at <a href='mailto:DONTEMAIL#MY.BRAND.COM?subject=MCR System'>XXX#XXXX.XXX</a></p>
</div>
</div>
If I understand what you're asking, you could use grid:
https://codepen.io/cschloegel/pen/wVzKZo
<div class="grid-container">
<div class="header"></div>
<div class="content"></div>
<div class="footer">
<div class="footer-left"></div>
<div class="footer-center"></div>
<div class="footer-right"></div>
</div>
</div>
CSS:
.grid-container {
background-color:lightgrey;
height:100vh;
display: grid;
grid-template-columns: 1fr 6fr 1fr;
grid-template-rows: 100px 1fr 100px;
grid-template-areas: "header header header" "content content content" "footer footer footer";
}
.header {
grid-area: header;
background-color: grey;
}
.content { grid-area: content; }
.footer {
display: grid;
grid-template-columns: 1fr 6fr 1fr;
grid-template-rows: 1fr;
grid-template-areas: "footer-left footer-center footer-right";
grid-area: footer;
background-color:grey;
}
.footer-left {
grid-area: footer-left;
border: 4px solid black;
background-color:darkgrey;
}
.footer-center { grid-area: footer-center; }
.footer-right { grid-area: footer-right;
border: 4px solid black;
background-color:darkgrey;
}
This social media footer downloaded from codepen working perfect on its own. When applied on jQuery page hover effect is not working at all.
Below you can view my code, I wish to make hover property of social buttons to become visible again. !important; property found in other posts here also not working.
$(function() {
$("button").hover(function() {
$(".content").removeClass("active");
$("#" + $(this).data("bind")).addClass("active");
});
});
.p{
text-align: center;
line-height: 100px;
}
.content {
opacity: 0;
position: absolute;
-webkit-transition: 0.3s all linear;
width: 100%;
height: 100%;
left: 0;
top: -2px;
}
.content.active {
opacity: 1;
}
#content1 {
background-image: url(file:///C|/Users/kaf/Desktop/My%20ultimate%20site/38e23136-b943-4487-930c-f4d7a50fccce.jpg);
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.button {
background:none;
border:none;
padding:0;
font-size:24px;
color:#FFF;
margin: 10px;
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
cursor: pointer;
}
.footer {
padding: 20px 0;
text-align: center;
position: absolute;
left: 0;
bottom: 0;
height: 100px;
width: 100%;
overflow:hidden;
}
.social {
display: inline-block;
width: 70px;
height: 70px;
margin: 0 10px;
line-height: 70px;
font-family: Entypo;
font-size: 35px;
text-align: center;
color: #999;
border-radius: 50%;
background: #eee;
overflow: hidden;
transition: color .3s;}
.social:hover {
color: #000 !important;
cursor:pointer;
}
.social {
box-shadow: rgb(210, 210, 210) 1px 1px,
rgb(210, 210, 210) 2px 2px,
rgb(211, 211, 211) 3px 3px,
rgb(211, 211, 211) 4px 4px,
rgb(211, 211, 211) 5px 5px,
rgb(212, 212, 212) 6px 6px,
rgb(212, 212, 212) 7px 7px,
rgb(212, 212, 212) 8px 8px,
rgb(213, 213, 213) 9px 9px,
rgb(213, 213, 213) 10px 10px,
rgb(214, 214, 214) 11px 11px,
rgb(214, 214, 214) 12px 12px,
rgb(214, 214, 214) 13px 13px,
rgb(215, 215, 215) 14px 14px,
rgb(215, 215, 215) 15px 15px,
rgb(215, 215, 215) 16px 16px,
rgb(216, 216, 216) 17px 17px,
rgb(216, 216, 216) 18px 18px,
rgb(216, 216, 216) 19px 19px,
rgb(217, 217, 217) 20px 20px,
rgb(217, 217, 217) 21px 21px,
rgb(218, 218, 218) 22px 22px,
rgb(218, 218, 218) 23px 23px,
rgb(218, 218, 218) 24px 24px,
rgb(219, 219, 219) 25px 25px,
rgb(219, 219, 219) 26px 26px,
rgb(219, 219, 219) 27px 27px,
rgb(220, 220, 220) 28px 28px,
rgb(220, 220, 220) 29px 29px,
rgb(221, 221, 221) 30px 30px;
text-shadow: rgb(226, 226, 226) 1px 1px,
rgb(227, 227, 227) 2px 2px,
rgb(227, 227, 227) 3px 3px,
rgb(228, 228, 228) 4px 4px,
rgb(229, 229, 229) 5px 5px,
rgb(229, 229, 229) 6px 6px,
rgb(230, 230, 230) 7px 7px,
rgb(230, 230, 230) 8px 8px,
rgb(231, 231, 231) 9px 9px,
rgb(232, 232, 232) 10px 10px,
rgb(232, 232, 232) 11px 11px,
rgb(233, 233, 233) 12px 12px,
rgb(233, 233, 233) 13px 13px,
rgb(234, 234, 234) 14px 14px,
rgb(235, 235, 235) 15px 15px,
rgb(235, 235, 235) 16px 16px,
rgb(236, 236, 236) 17px 17px,
rgb(236, 236, 236) 18px 18px,
rgb(237, 237, 237) 19px 19px,
rgb(238, 238, 238) 20px 20px;
}
html >
<head>
<meta charset="utf-8">
<title>Alfandari&co</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
</head>
<style>
#import url('https://fonts.googleapis.com/css?family=Lato:300');
#import url('http://weloveiconfonts.com/api/?family=entypo');
</style>
<body>
<div id="content1" class="content active">
<div class="container" align="center">
<button class="button buttonx" data-bind="content1">OUR COMPANY</button>
<button class="button buttonx" data-bind="content2">OUR HISTORY</button>
<button class="button buttonx" data-bind="content3">UNIQUE PIECES</button>
<button class="button buttonx" data-bind="content4">JEWELRY</button>
<button class="button buttonx" data-bind="content5">CONTACT US</button>
</div>
<p>Page 1</p>
<div class="footer">
<div class="social"></div>
<div class="social"></div>
<div class="social">🎬</div>
<div class="social">📷</div>
</div>
</div>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="js/index.js"></script>
</body>
</html>
Just used this code:
$(function() {
$("button").hover(function() {
$(".content").toggleClass("active");
});
});