Large Gap on right side f site causing horizontal scroll bar

I've been searching Google and been adding width 100% and auto to no avail. Can someone tell me why there is a ginormous gap on the right side of this layout?

Alicia St RoseOwner & Principle Developer/DesignerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Nathan RileyFounderCommented:
I'm, not seeing it, did you already fix?

I see elements with the width set to 100%.
Tom BeckCommented:
I see the problem (in Firefox) and I don't yet have a solution but maybe this observation will spark something in another expert.

In Firebug, if you remove class="flexslider" from the div holding the flexslider, the problem goes away. Although the slides continue to change, this is not a solution of course because class="flexslider" is required to initiate the flexslider on load.
Alicia St RoseOwner & Principle Developer/DesignerAuthor Commented:
Thanks, Tom Beck!
You've let me on the right track. I commented out the captions and it's all good. So, now I've got to see what buggy things going on with those. I've uncommented, if anyone can see the problem...
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tom BeckCommented:
I looked at it again, but I'm no Flexslider expert. I cannot find an example anywhere online of a Flexslider with markup even remotely similar to what you have.
			<a href="">			<img width="1400" height="627" src="" class="attachment-full" alt="test-slide04" /></a>
			<!--Slider Description example-->
			<div class="slide-desc light" style="width: 600px; top: 375px; left: 50px;">
					 <h2 class="slide-caption-title" >Dreamy</h2>
					 <p>Blah blah blah blah blah blah blah blah blah blah blah </p>  
					<!-- <p>Demo description here. Demo description here. Demo description here. Demo description here. Demo description here. <a class="more" href="#">more</a></p> -->

Open in new window

Where did you get that markup?

With those description divs positioned absolute and with hard coded widths and top/left positions, I don't see how this can ever work properly. The flex slider images are responding to changes in browser window size but the descriptions are not able to with that css. Some of the descriptions are left 600px. That will be off the screen on a device less than 600px wide.
Alicia St RoseOwner & Principle Developer/DesignerAuthor Commented:
Sorry, I'm still here and will take a closer look at Tom's suggestions.
I may have to put a div around captions with auto margin, so they can remain on screen.
I'm using inline styles with custom fields so my client can position the caption depending on the photo used.
Tom BeckCommented:
As a general rule, if you want to position things on the screen absolutely but you still want it to remain in the viewport regardless of screen size, you need to use percentages rather than fixed pixels. You will also likely need media queries to adjust the size of the description divs and the font sizes for smaller screens.

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Alicia St RoseOwner & Principle Developer/DesignerAuthor Commented:
@Tom Beck!
I'm picking up what you're puttin' down.
Heading in right now to make some changes. I see some points in your future!
Alicia St RoseOwner & Principle Developer/DesignerAuthor Commented:
Thank you!!!!
Percentages did the trick!
Tom BeckCommented:
You're welcome. Thanks for the points.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.