Solved

Why does this image force the page to scroll?

Posted on 2014-04-24
4
150 Views
Last Modified: 2014-04-25
Head out to http://thornhilllawncare.com/testimonials.php.

The graphic that runs along the bottom ("see the difference...our clients include") is the culprit.

I have to minimize that image almost 300 pixels in order to get the side to side scroll bar to vanish. It doesn't make any sense to me why I have to make it so small when, just by eyeballing it, it seems to have plenty of room and I don't know why it goes into "overflow" mode.

What am I doing wrong? Where is the problem that makes the page overflow? If I get rid of the bottom graphic completely, there's no problem. If I slash the width by 300 pixels, no problem. But it shouldn't be an issue at 975px, yet it is. Why?
0
Comment
Question by:brucegust
  • 2
4 Comments
 
LVL 4

Expert Comment

by:ravikantninave
ID: 40021772
use
overflow:hidden;
in
#satellite_body_text
0
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 40021847
If you use overflow:hidden you won't be able to vertically scroll your text.

You need to hide only the horizontal scroll, so use this:
#satellite_body_text {
position:absolute;
width:980px;
height:610px;
margin-top:60px;
margin-left:128px;
font-weight:normal;
overflow-x: hidden;
}

HTH,
Dan
0
 

Author Comment

by:brucegust
ID: 40022194
Dan, I used this:

overflow-x: hidden; overflow-y: auto;

...and it worked great!

Thanks!
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 40022213
You're welcome.

Glad I could help!
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
SharePoint 2013 Searchbox Branding 11 44
Urgent need help ASAP With CSS 5 37
is this a cms? 8 35
How can I increase the size of this logo 5 22
Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
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.
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

16 Experts available now in Live!

Get 1:1 Help Now