Why is my layout shifting a few pixels on certain pages?

I have a site in development here: http://www.kellercrescentdigital.com/lmh

For some reason, certain pages will shift to the left 2-3 pixels...enough to be noticeable.

For example, if you go to the ABOUT tab and select ABOUT US the site shifts to the left...select CEO MESSAGE and it shifts back.

It does this throughout the site. Some pages shift...others don't. How can I lock it in place?
input[type=text] {font-size: 11px; color: #336699; border: #336699 1px solid; font-family:Tahoma, Arial, Helvetica, Geneva, sans-serif; background: #ffffff; padding-left: 5px;}
 
input.submit {text-transform:uppercase; font-family:Tahoma, Arial, Helvetica, Geneva, sans-serif; font-size:10px; background-color:#336699; color:#ffffff; font-weight:bold; border: 2px solid; border-color:#003333;}
 
input.submit:hover {text-transform:uppercase; font-family:Tahoma, Arial, Helvetica, Geneva, sans-serif; font-size:10px; background-color:#488AA0; color:#ffffff; font-weight:bold; border: 2px solid; border-color:#333333;}
 
.flat {font-size: 11px; color: #336699; border: #336699 1px solid; font-family:Tahoma, Arial, Helvetica, Geneva, sans-serif; background: #ffffff; padding-left: 5px;}
 
#baby_frame {
      position:relative;
      width: 500px;
      height: 600px;
      z-index: 10;
      border: 2px solid black;
}
#baby_frame .imageFrame {
      position:absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      z-index: 30;
}
#baby_pic {
      position:absolute;
      top: 120px;
      left: 50px;
      z-index: 10;
}
#baby_name {
      position: absolute;
      top: 3px;
      left: 20px;
      width: 350px;
      z-index: 50;
}
.bdetail th {
    font-size: 12px;
    color: #000;
    text-align: right;
    font-weight: bold;
} 
.babydetails {
      position: absolute;
      top: 410px;
      left: 195px;
      width: 255px;
      z-index: 60;
}
.babyh3 {
      color: #000;
      font-size: 27px;
      /* margin-top: -5px;
      margin-bottom: 5px; */
}
.babyh4 {
    color: #000;
    font-size: 17px;
 
    /* margin: 1.33em 0 0;
    padding-top: 15px; */
}
img.dogear {
    position: relative;
    top: -13px;
    right: -13px;
    float: right;
}
 
table.baby {width:100%; border-collapse: collapse; border-spacing:0; border-color: #000000; border-width: 1px; border-style: solid;}
table.baby th {white-space: nowrap; text-transform: uppercase; text-align: center; background:#336699; padding:4px; font-size: 9px; font-weight: bold; color: #ffffff; border-color: #2F8A53; border-width: 1px; border-style: solid; padding: 4px;}
table.baby td {font-size: 90%; font-weight: normal; color: #000000; border-color: #2F8A53; border-width: 1px; border-style: solid; padding: 4px; }
 
div.contentbox {
    float: left;
    background: #F7F7F7;
    border: 1px dotted #ccc;
    padding: 12px;
    width: 712px;
    margin-top: 20px;
}
select {font-size: 11px; color: #336699; border: #336699 1px solid; font-family:Tahoma, Arial, Helvetica, Geneva, sans-serif; background: #ffffff; }
 
#searchbox {
 position: absolute;
 top: 6px;
 left: 260px;
}
input.searchme {
    font-size: 13px;
    height: 18px; 
    color: #336699; 
    border: #336699 1px solid; 
    font-family:Tahoma, Arial, Helvetica, Geneva, sans-serif; 
    background: #ffffff url(../images/searchme.gif) no-repeat left center; 
    padding-left: 25px;
    margin-top: 2px;
}
.gn_header_1 {
 color: #336699;
}
#latestnews {
  float: left;
  width: 200px;
  height: 225px;
}
#latestevents {
  float: right;
  width: 200px;
  height: 225px;
  padding: 5px;
  color: #336699;
  font-weight: bold;
}
.contentheading {
  color: #336699;
  font-size: 20px;
  font-weight: bold;
}
.componentheading {
  color: #336699;
  font-size: 20px;
  font-weight: bold;
}
img, div { 
      behavior: url(/lmh/templates/LogansPort_Memorial_Hospital/iepngfix.htc) 
}
 
h1 {
      color: #4a6171;
      font-size: 20px;
   }
#wrapper {
	width: 780px;
	margin: 0 auto; /* centering the page */
	text-align: left;
	}
#container {
      background: #fff;
      height: 100%;
      float: left;
      width: 100%;
}
#header {
      background: #fff;
	height: 34px;
	margin: 0 auto; /* centering the page */
	padding: 0; 
	}
#left {
      background: #fff;
	float: left;
	width: 200px;
      background: #fff url(../images/left_bg.png) repeat-x top;
      margin: 5px;
      padding: 10px;
      height: 100%;
	}
#content {
      background: #fff;
	float:left;
      padding: 20px;
      height: 100%;
      min-height: 400px;
	}
#footer {
     clear: both;
     background: url(../images/bg_footer.png) no-repeat top;
     color: #024886;
     font-size: 10px;
     height: 25px;
     width: 780px;
}
#footleft {
     width: 300px;
     float: left;
     padding: 10px;
}
#footright a {
     color: #024886;
     width: auto;
     float:right;
     padding: 10px;
     text-decoration: none;
}
 
#logo {
      display: block;
	background: url(../images/lmhlogo.png) no-repeat;
	height: 135px;
	width: 265px;
}
#icons {
      position: relative;
      display: block;
	background: url(../images/icon_bar_06.gif) repeat-x;
	height: 37px;
	width: 440px;
      float: right;
     
}
#splash {
      text-align: center;
      margin: 5px;
}
 
.tile {
	float: left;
	width: 106px;
      height: 225px;
      margin: 5px;
}

Open in new window

Donnie WalkerAsked:
Who is Participating?
 
Hube02Commented:
The reason is simply because the about us page is longer than the home page and this causes the right hand (up/down) scroll bar to appear. This changes the window width and the page moves to the left to maintain its center.
0
 
knonieCommented:
In browsers like Firefox and Chrome, that doesn't show a scrollbar on right side if page has less height, when you visit a page that requires a scrollbar, you notice the page shift...

If you search this site, you'll find detailed response to this question.

It's just normal behavior, and there's nothing to do with your html or CSS.

:-)
0
 
Donnie WalkerAuthor Commented:
thanks
0
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.