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

Home Forums CSS Nav bar and background issues?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #25722

    ok i programmed my nav bar on another computer with a smaller screen but when i moved it to 20 inch it wasn’t centered cause i can’t figure out how to align the images with css without naming pixels… also how do i resize my content with the browser size in css? how do i add another image for a background overflow like three seperate questions…


    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:

    #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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.