EDITED QUESTION How do I keep the height of my images to be resized when the browser is reduced?
Ok, I've tried searching for this for a while and just can't seem to find it anywhere. Here is what I'm trying to do...
My navigation is using uploaded images instead of doing a CSS generated navigation menu.
When I resize the browser window...my background resizes properly using:
body {
background: url('/images/background.jpg') no-repeat center center fixed;
background-color:#000000;
background-size: 70%;
}
As for my navigation images...I've gotten them to resize, but not stay in the proper locations...here is my code....the 80px nav a hight is the problem...:
/* navigation */
nav {
position: relative;
top: 200px;
left: 10%;
max-width: 15%;
}
nav a {
display: block;
max-width: 191px;
height: 80px;
margin: 0;
padding: 0;
}
#homebutton {
background: url('/images/homebutton.png') no-repeat 0, 0;
background-size: contain;
}
#aboutbutton {
background: url('/images/aboutbutton.png') no-repeat 0, 0;
background-size: contain;
}
#storebutton {
background: url('/images/storebutton.png') no-repeat 0, 0;
background-size: contain;
}
#facebookbutton {
background: url('/images/facebookbutton.png') no-repeat 0, 0;
background-size: contain;
}
#contactbutton {
background: url('/images/contactbutton.png') no-repeat 0, 0;
background-size: contain;
}
Here are the pics of what I mean....1st one is browser at full size...2nd one is browser at reduced size.