Forums

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

Home Forums CSS How to display a website in the position I want

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32178
    ylex1
    Participant

    HI guys I have a problem

    I needed to use some a big image in a website I’m woking on as a background so I made an empty div with a set width and height values so that it displayed the whole image. The content has a width of 960px with a centered layout margin: 0 auto.

    But when you enter the website it goes to the top left corner to display the image background and I need it to display it in a centered layout.

    How do I do that?

    http://www.neonmarketing.com.mx — This is the website.

    thanks

    #53266
    TheDoc
    Member

    You’ll need to apply your background to the body and then give it a positioning of top and center.

    As it is right now, you have huge scroll bars because you have a div that is 2000px wide.

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