Solved

Why is my background image looking like this?

Posted on 2014-12-31
3
96 Views
Last Modified: 2014-12-31
Attached are two screenshots of a page that I built (http://www.mms-nashville.com/index.php). This first one represents what I intend the site to look like regardless of the size of the browser:

preferred
Here's what the same page looks like in a smaller browser:

wretched
What do I need to change in my CSS so the smaller browser scenario doesn't have that hideous white space going on on the left hand side?

My stylesheet is at http://www.mms-nashville.com/stylesheet.css

Thanks!
0
Comment
Question by:brucegust
3 Comments
 
LVL 29

Accepted Solution

by:
chilternPC earned 500 total points
ID: 40525505
the margin left is incorrect - it should be 50% of 1620px (the image you are using) so it should be -810px not -553px

so it should be:

@media screen and (max-width: 1620px) { /* Specific to this particular image */
  img.bg {
    left: 50%;
    margin-left: -810px;   /* 50% */
  }
}
0
 
LVL 58

Expert Comment

by:Gary
ID: 40525594
Those slider images have a white border as do the top blocks!
0
 

Author Comment

by:brucegust
ID: 40525724
That did it!

Thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question