Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Nav bar and background issues? Re: Nav bar and background issues?

#62069
eip56
Member

Hmm, sample code would be helpful.

Anyways to center in all browsers instead of using px i like to create a div and assign margin to auto. This ensures that in all browsers and screen sizes it will be in the center…

I would look something like this:

Code:
#wrapper {
margin: auto;
padding: inherit;
}

As far as the background is concerned let me know what you find out haha. Getting a background image to re-size itself in different resolutions as eluded me for some time now :oops: . I believe it can be achieved with some JavaScript, however im unsure of the code.