Marcel van L. Posted May 26, 2006 Share Posted May 26, 2006 Hello,I have built a website using html and css. I used layers (<div>tags) to position the various elements. I have nested al the elements in a container (<div id="container">elements</div>).Here's my question: I want to align the container with all the elements in the center of the browser. Using tables you can use align="center". What do I use in the case of layers?Another question about the container. I would like to use a filter to display a dropshadow. When I use the filter, the dropshadow appears not only by with the container but also with all the text in the container. Is there also a solution for this?You can find the website at www.hartenlief.nlThanks a lot for your help!Rgrds,Marcel van Leeuwen Link to comment Share on other sites More sharing options...
asylum Posted May 28, 2006 Share Posted May 28, 2006 this works for me in firefox #container { margin: 0 auto; position: relative;} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now