Solved

Why is my background image looking like this?

Posted on 2014-12-31
3
89 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 28

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do i set sidebar width to 45% of screen width 1 28
Making my existing website "mobile friendly"... 10 34
CSS Question 5 38
Add css and js to MVC Project not in project 9 27
CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

930 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now