html - CSS Wrapper shifts upon navigation -
i have issue in every time navigate different pages entire wrapper section of site shifts left , right depending on page you're on. if possible i'd stays still no matter page navigate too. i'll provide snippet of mean.
here css entire styling of website if helps, if there's other code may need such html let me know , can provide well.
/*css pages*/ /*body/wrapper section*/ body {background:#eeeeee; background-repeat: no-repeat; background-attachment: fixed;} #wrapper {width: 1750px; margin: 0 auto; background-color: white; border-radius: 5px; box-shadow: 0px 1.5px 2px 0px; border: 1.5px solid #e0e0e0; color: #e0e0e0;} /*top banner section*/ #banner {height:150px;} #logo {} #ip_box { width:200px; height:43px; background:#212121; border-radius: 5px; box-shadow: 1px 1px 5px;} #ip_text {color: white; font-size: 15px;} #teamspeak_box {width:159px; height:43px; background:#212121; border-radius: 5px; box-shadow: 1px 1px 5px;} #teamspeak_box_2 {width:43px; height:43px; background:#313131; border-radius: 5px 0px 0px 5px;} #teamspeak_text {color: white;} #teamspeak_image {} /*top nav bar section*/ * {margin: 0px; padding: 0px;} #nav_bar {background-color: #313131; height: 45px; text-align: center;} #nav_bar ul {padding: 0;} #nav_bar > ul > li {display: inline-block;} #nav_bar ul > li > {color: white; display: block; text-decoration: none; font-weight: normal; padding-left: 15px; padding-right: 15px; line-height: 45px; transition: 0.5s ease;} #nav_bar ul li ul {display: none; list-style: none; position: absolute; background: white; margin-left:0px; box-shadow: 0px 1px 5px; text-align: left; z-index:1;} #nav_bar ul li a.active-page {background-color: #212121;} #nav_bar ul li:hover ul li {line-height: 2em;} #nav_bar ul li a:hover {background: #212121; transition: 0.5s ease; } #nav_bar ul li:hover ul {display: block;} #nav_bar ul li ul li {color: #000000; display: block;} #nav_bar ul li ul li a:hover {background: #1565c0; color: white; transition: 0.5s ease;} /*bottom footer section*/ #bottom_footer {width: 1750px; height: 50px; margin: 0px auto; margin-top: 15px; margin-bottom: 15px; background:white; border-radius: 5px; box-shadow: 0px 1.5px 2px 0px; border: 1.5px solid #e0e0e0; color: #e0e0e0;} #created_by {padding: 17px; text-align: center; color:black;} #social_media_youtube {float: left; margin: -46px; margin-left: 315px;} #social_media_twitch {float: left; margin: -43px; margin-left: 380px;} #social_media_twitter {float: right; margin: -53px; margin-right: 368px;} #social_media_facebook {float: right; margin: -47px; margin-right: 325px;} /*element selections section*/ p {font-family: arial, helvetica, sans-serif; margin-left: 20px; margin-right: 20px;} ul {font-family: arial, helvetica, sans-serif; margin-left: 37px; color:black;} h3 {font-family: arial, helvetica, sans-serif; margin-left: 20px; color:black;} h4 {font-family: arial, helvetica, sans-serif; margin-left: 20px; color:black;}
your pages aren't rendering differently. problem seeing scrollbar appearing in window on of pages, causing viewport shrink 20px.
nothing can unless make of pages @ least long enough trigger scroll bar, or short enough not trigger scrollbar.
at least far know...
Comments
Post a Comment