- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
HTML:
Please Login Here!
Testing
©Victoria School Infocomm Club 2012
CSS:
#footer{
margin-top: 100px;
height: 166px;
width: 100%;
background: url(‘../img/footerBackground.png’) repeat-x;
text-align: center;
/*Align to bottom*/
position: fixed;
left: 0;
bottom: 0;
/* IE 6 */
* html #footer {
position:absolute;
top:expression((0-(footer.offsetHeight)+(document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight)+(ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop))+’px’);
}
}
#footer h6{
font-family: Helvetica;
font-size: 10px;
color: #e2f8ff;
position: fixed;
bottom: 10px;
}
Problem: The h6 text doesn’t align to the centre, it just stay aligned to the left.
Remove this:
#footer h6{
font-family: Helvetica;
font-size: 10px;
color: #e2f8ff;
/* position: fixed; <== remove! */
/* bottom: 10px; <== remove! */
}
It worked but its also vertically align is there a way to have the same effect as
bottom: 0;
maybe with
line-height