0

I am fairly new to the Web Development world. When I create a new site, most often as there will be a slight movement, right to left, or left to right of the page when switching from page to page.

I am using Dreamweaver CS4.

Any help would be appreciated

3
Contributors
8
Replies
9
Views
6 Years
Discussion Span
Last Post by teedoff
0

umm can you post a link to your site? or the code?

You sure its not the fact that one page may be longer than the height of the browser, so therefore a scrollbar is added to the right thus shifting the page slightly?

Edited by teedoff: n/a

0

Yeah, it's the scroll bar that you have on every page except links and contact.
The only way to get around this is to either add a scroll bar on these pages using the overflow property in CSS or by adding additional content to these pages so a scroll bar shows up.

0

I didn't add a scroll bar to any page, at least not intentionally. Can you point me in the right direction here, please?

1

The scroll bar is something that is automatic and happens when you overflow the container. On every page except the links and contact page, your content does not overflow the container and therefore doesn't need the scroll bar to show up.

For the time being, you can add an empty div with a defined height on both of those pages so they are consistent. e.g.

<div style="width:100%; height:250px; background-color:transparent;">&nbsp;</div>

This would probably solve your issue on those two pages.

0

I prefer to add a global style rule to add a scroll bar to all pages. Less headache I think.

In your stylesheet add the following line:

html {
	overflow: scroll;
}
0

It works! My eternal gratitude... It is amazing what can happen when you know what you are doing, or can tap into someone who does.

1

I had this exact same thing happen to me when I first started out. Thats why I suggested it might be the scrollbar without seeing your code or page. I remember thinking "whats going on?" when I saw my page shifting over like you did.

Glad to help!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.