Home › Forums › CSS › Nav bar and background issues? › Re: Nav bar and background issues?
August 11, 2009 at 11:54 am
#62069
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;
}
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.