View Single Post
Old 04-23-2009, 04:44 PM   #2
Pete
Senior Member
 
Pete's Avatar
 
Join Date: Jan 2009
Location: Chorlton, Manchester
Posts: 102
Thanks: 5
Thanked 17 Times in 14 Posts
Default

Instead of using the CSS opacity rule (which also affects child elements). Make yourself a 1px PNG file. and set it as the background for the container. To fix IE6's PNG issue, you can use either of these hacks:

jquery.pngFix.js - PNG transparency for Windows IE 5.5 & 6 (IE PNG Fix)
IE PNG Fix - TwinHelix

I'd advise the jQuery fix as it's more reliable for tiling backgrounds.

There are a couple of ways to center a div. Easiest is to stick a <center> tag below your body tag, then in the css, tell the div to align all text to the left. Another way would be to put the div in a 100% wide container, set the positioning to absolute and use a negative margin, half the width of the div you want to float, like so: Center Absolute Position DIV | marketing . web . design
__________________
---
Pete Morley, Graphic Designer.
View my portfolio - Add me on Twitter

Last edited by Pete; 04-23-2009 at 04:46 PM.
Pete is offline   Reply With Quote
The Following User Says Thank You to Pete For This Useful Post:
MarkS (04-23-2009)