Currently, I am in the process of creating a page template that features a transparent header. My main goal is to have the #content
div align perfectly with the top of the page right below the header.
I have experimented with various CSS properties such as:
position:absolute;
top:0;
left:0;
Unfortunately, none of these approaches have yielded the desired result thus far...
Below, you will find the stylesheet for my page template along with the specific page I am referring to:
.wrapper {
min-width: 100%;
height: auto !important;
}
.header {
background-color:transparent;
width: 75%;
max-width: 75%;
height: 40px;
padding-top: 32px;
padding-bottom:32px;
margin-right: auto;
margin-left: auto;
}
#content {
position: absolute;
top:0;
left:0;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: light;
color: #ffffff;
background-color: #ffffff;
height: auto;
width: 100%;
max-width:100%;
min-width: 960px;
margin-top: -50px;
margin-left: auto;
margin-right: auto;
text-align: left;
line-height: 30px;
}
If anybody has any insights on what might be going wrong here, I would sincerely appreciate your guidance.
Thank you very much!