Today just a short snippet.
To center a background image vertical and horizontal especially Mozilla Firefox need the attribute “fixed”:
body {
background-image: url(....);
background-position: center center;
background-attachment: fixed;
height: 100%;
}
Tested with: IE 6 – 8, Firefox 3.6, Safari 4
With this little trick, my day will be fine! Ole.
Related posts:
- How to … center a YAML Layout
- How to … style the dotted link border in Firefox
- How to add german Amazon.de OpenSearch Plugin to Firefox 3.5 on Ubuntu 9.1
- How to build a YAML fullscreen layout
- How to use transparency with different Browsers
- CSS border-bottom for IE 6
- Aptana IDE Webdevelopment
- How to use position-absolute and z-index with Internet Explorer 7 and nested containers
0 Responses to “CSS: center background image in Firefox & Co.”
Leave a Reply