Grow your CSS skills. Land your dream job.

How to display a website in the position I want

  • # March 29, 2011 at 3:48 pm

    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

    # March 29, 2011 at 4:00 pm

    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)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".