I've set up this testing website here
It has a full screen background image and a content box in the middle. How would I horizontally center the box.
I'll post the html and css here as well
html, body {
width: 100%;
padding: 0;
margin: 0;
}
#full-screen-background-image {
z-index: -999;
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}
#wrapper {
position: relative;
width: 800px;
min-height: 400px;
margin: 100px auto;
color: #333;
margin-left: auto;
margin-right: auto;
padding:10px;
background-color:#C7C7C7; /*hex fallback for wrapper*/
background-color: rgba(500,500,500,0.8);
}
and the html
<img alt="full screen background image" src="http://www.swangardenimages.co.uk/swangardenimages/Gallery/Pages/The_Gardens_of_Easton_Lodge_1_files/Media/Courtyard%20and%20Fountain%20/Courtyard%20and%20Fountain%20.jpg" id="full-screen-background-image" />
<div id="wrapper">
<h1>Swan Garden Images</h1>
<p>Yada Yada</p>
<p>Stuff</p>
<a href="#">Link</a>
</div>
Thanks in advance