Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2011
    Thanked 0 Times in 0 Posts

    Question Background size...

    I'm new to Web design and this is something I need to know but it's been bugging me for quite a while now.

    How do you make your background image so its the same resoulution size on whatever computer you go on?

    usually when I scroll down, there is left over white space on the side and bottom but i just want the image to fit... =/ =(

  2. #2
    Registered User
    Join Date
    Jun 2011
    Thanked 241 Times in 240 Posts
    you can use background-repeat: repeat; if the background is repeatable.

    setting your background to 100% of the screen will distort the image, so you have to use javascript to detect the user's browser size


    if you are talking about when you decrease the browser size and scroll over, there is white space, then this is due to margin: 0 auto; try setting the parent tag to min-width: (value of child width)


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts