Unwanted Horizontal Scrollbar
- DeadBolt
- Novice


- Joined: May 12, 2005
- Posts: 31
- Status: Offline
I'm in the middle of designing a site and I can't seem to figure out why I am getting a horiz. scrollbar. I've gone through the css and Firebug, yet I still cannot figure this out.
Here is the link: www . ecohost . net /bedrock
And here is the css
Here is the link: www . ecohost . net /bedrock
And here is the css
Code: [ Select ]
* {
margin: 0px;
padding: 0px;
}
.clearfloat {
clear: both;
}
html {
width: 1131px;
height: 100%;
text-align: center;
margin: 0px auto;
}
body {
margin: 0px auto 0px auto;
background: url(images/background.jpg);
background-repeat: no-repeat;
background-position: center;
background-color: #000;
font-family: Helvetica, arial, myriad, sans-serif;
font-size: 14px;
color: #333;
line-height: 18px;
letter-spacing: -0.9px;
height: 100%;
width: 1131px;
}
a {
font-size: 10px;
color: orange;
border: none;
}
p {
margin-top: 15px;
}
#container {
min-height: 100%;
width: 1131px;
height: auto;
margin: 0px auto 0 auto;
padding-bottom: 50px;
}
#header {
width: 1131px;
height: 255px;
}
#footer-wrap {
background: black;
bottom: 0;
position: fixed;
width: 1131px;
height: 50px;
clear: both;
/* for IE */
filter:alpha(opacity=85);
/* CSS3 standard */
opacity:0.85;
}
#footer {
text-align: center;
}
#footer p {
margin-top: 10px;
font-size: 11px;
line-height: 10px;
letter-spacing: 0px;
color: #525252;
}
#footer p.contact {
font-size: 14px;
color: #a2a2a2;
}
#footer b{
font-weight: normal;
color: orange;
text-decoration: none
}
#footer a{
font-size: 14px;
font-weight: normal;
color: orange;
text-decoration: none;
}
#footer a:hover{
font-size: 14px;
color: orange;
border-bottom: orange dotted 1px;
}
#footer a.copy {
font-size: 11px;
color: #696969;
text-decoration: none;
}
#footer a.copy:hover {
font-size: 11px;
color: #696969;
text-decoration: none;
border-bottom: #696969 dotted 1px;
}
/* CONTENT */
#content {
position: relative;
width: 660px;
height: auto;
text-align: left;
margin: 0px auto;
background-image: url(images/content-bg.png);
background-repeat: repeat;
z-index: 5px;
padding: 20px;
margin-top: 55px;
}
#main img {
margin-left: auto;
margin-right: auto;
}
#main {
float: left;
height: 100%;
width: 450px;
border-right: 1px dotted #525252;
}
#main p.caption {
margin-top: -10px;
font-size: 9px;
font-style: italic;
text-align: center;
letter-spacing: 0px;
}
#pic-bar {
float: right;
margin-top: 12px;
text-align: center;
}
#pic-bar img {
margin-left: auto;
margin-right: auto;
}
#pic-bar a {
font-family: Helvetica, arial, myriad, sans-serif;
font-size: 16px;
text-transform: uppercase;
text-decoration: none;
color: #6a6a69;
display: block;
margin: -10px auto 20px auto;
}
#pic-bar a:hover {
border-bottom: 1px dotted #6a6a69;
margin-bottom: 19px;
}
#contact-bar {
margin-top: 20px;
clear: both;
}
/* NAV BAR */
#nav-bar {
position: absolute;
width: 1131px;
height: 78px;
margin: 0px auto;
background-image: url(images/navigation-bg.png);
background-repeat: no-repeat;
z-index: 10;
}
#nav-wrapper {
width: 566px;
margin: 0px auto 0 auto;
}
ul#nav-buttons {
width: 1131px;
margin: 0 auto;
}
ul#nav-buttons li {
display: inline;
}
ul#nav-buttons li a {
float: left;
text-align: center;
margin-top: 12px;
}
ul#nav-buttons span {
display: none;
}
/* NAV BUTTONS */
#nav-buttons li.home a {
width: 105px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/home-button.png) no-repeat 0px 0px;
}
#nav-buttons li.home a:hover {
width: 105px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/home-button.png) no-repeat 0px -43px;
}
#nav-buttons li.signs a {
width: 97px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/signs-button.png) no-repeat 0px 0px;
}
#nav-buttons li.signs a:hover {
width: 97px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/signs-button.png) no-repeat 0px -43px;
}
#nav-buttons li.monuments a {
width: 155px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/monuments-button.png) no-repeat 0px 0px;
}
#nav-buttons li.monuments a:hover {
width: 155px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/monuments-button.png) no-repeat 0px -43px;
}
#nav-buttons li.map a {
width: 89px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/map-button.png) no-repeat 0px 0px;
}
#nav-buttons li.map a:hover {
width: 89px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/map-button.png) no-repeat 0px -43px;
}
#nav-buttons li.contact a {
width: 121px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/contact-button.png) no-repeat 0px 0px;
}
#nav-buttons li.contact a:hover {
width: 121px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/contact-button.png) no-repeat 0px -43px;
}
margin: 0px;
padding: 0px;
}
.clearfloat {
clear: both;
}
html {
width: 1131px;
height: 100%;
text-align: center;
margin: 0px auto;
}
body {
margin: 0px auto 0px auto;
background: url(images/background.jpg);
background-repeat: no-repeat;
background-position: center;
background-color: #000;
font-family: Helvetica, arial, myriad, sans-serif;
font-size: 14px;
color: #333;
line-height: 18px;
letter-spacing: -0.9px;
height: 100%;
width: 1131px;
}
a {
font-size: 10px;
color: orange;
border: none;
}
p {
margin-top: 15px;
}
#container {
min-height: 100%;
width: 1131px;
height: auto;
margin: 0px auto 0 auto;
padding-bottom: 50px;
}
#header {
width: 1131px;
height: 255px;
}
#footer-wrap {
background: black;
bottom: 0;
position: fixed;
width: 1131px;
height: 50px;
clear: both;
/* for IE */
filter:alpha(opacity=85);
/* CSS3 standard */
opacity:0.85;
}
#footer {
text-align: center;
}
#footer p {
margin-top: 10px;
font-size: 11px;
line-height: 10px;
letter-spacing: 0px;
color: #525252;
}
#footer p.contact {
font-size: 14px;
color: #a2a2a2;
}
#footer b{
font-weight: normal;
color: orange;
text-decoration: none
}
#footer a{
font-size: 14px;
font-weight: normal;
color: orange;
text-decoration: none;
}
#footer a:hover{
font-size: 14px;
color: orange;
border-bottom: orange dotted 1px;
}
#footer a.copy {
font-size: 11px;
color: #696969;
text-decoration: none;
}
#footer a.copy:hover {
font-size: 11px;
color: #696969;
text-decoration: none;
border-bottom: #696969 dotted 1px;
}
/* CONTENT */
#content {
position: relative;
width: 660px;
height: auto;
text-align: left;
margin: 0px auto;
background-image: url(images/content-bg.png);
background-repeat: repeat;
z-index: 5px;
padding: 20px;
margin-top: 55px;
}
#main img {
margin-left: auto;
margin-right: auto;
}
#main {
float: left;
height: 100%;
width: 450px;
border-right: 1px dotted #525252;
}
#main p.caption {
margin-top: -10px;
font-size: 9px;
font-style: italic;
text-align: center;
letter-spacing: 0px;
}
#pic-bar {
float: right;
margin-top: 12px;
text-align: center;
}
#pic-bar img {
margin-left: auto;
margin-right: auto;
}
#pic-bar a {
font-family: Helvetica, arial, myriad, sans-serif;
font-size: 16px;
text-transform: uppercase;
text-decoration: none;
color: #6a6a69;
display: block;
margin: -10px auto 20px auto;
}
#pic-bar a:hover {
border-bottom: 1px dotted #6a6a69;
margin-bottom: 19px;
}
#contact-bar {
margin-top: 20px;
clear: both;
}
/* NAV BAR */
#nav-bar {
position: absolute;
width: 1131px;
height: 78px;
margin: 0px auto;
background-image: url(images/navigation-bg.png);
background-repeat: no-repeat;
z-index: 10;
}
#nav-wrapper {
width: 566px;
margin: 0px auto 0 auto;
}
ul#nav-buttons {
width: 1131px;
margin: 0 auto;
}
ul#nav-buttons li {
display: inline;
}
ul#nav-buttons li a {
float: left;
text-align: center;
margin-top: 12px;
}
ul#nav-buttons span {
display: none;
}
/* NAV BUTTONS */
#nav-buttons li.home a {
width: 105px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/home-button.png) no-repeat 0px 0px;
}
#nav-buttons li.home a:hover {
width: 105px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/home-button.png) no-repeat 0px -43px;
}
#nav-buttons li.signs a {
width: 97px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/signs-button.png) no-repeat 0px 0px;
}
#nav-buttons li.signs a:hover {
width: 97px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/signs-button.png) no-repeat 0px -43px;
}
#nav-buttons li.monuments a {
width: 155px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/monuments-button.png) no-repeat 0px 0px;
}
#nav-buttons li.monuments a:hover {
width: 155px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/monuments-button.png) no-repeat 0px -43px;
}
#nav-buttons li.map a {
width: 89px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/map-button.png) no-repeat 0px 0px;
}
#nav-buttons li.map a:hover {
width: 89px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/map-button.png) no-repeat 0px -43px;
}
#nav-buttons li.contact a {
width: 121px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/contact-button.png) no-repeat 0px 0px;
}
#nav-buttons li.contact a:hover {
width: 121px;
height: 43px;
margin-right: 1px;
background: url(images/buttons/contact-button.png) no-repeat 0px -43px;
}
- * {
- margin: 0px;
- padding: 0px;
- }
- .clearfloat {
- clear: both;
- }
- html {
- width: 1131px;
- height: 100%;
- text-align: center;
- margin: 0px auto;
- }
- body {
- margin: 0px auto 0px auto;
- background: url(images/background.jpg);
- background-repeat: no-repeat;
- background-position: center;
- background-color: #000;
- font-family: Helvetica, arial, myriad, sans-serif;
- font-size: 14px;
- color: #333;
- line-height: 18px;
- letter-spacing: -0.9px;
- height: 100%;
- width: 1131px;
- }
- a {
- font-size: 10px;
- color: orange;
- border: none;
- }
- p {
- margin-top: 15px;
- }
- #container {
- min-height: 100%;
- width: 1131px;
- height: auto;
- margin: 0px auto 0 auto;
- padding-bottom: 50px;
- }
- #header {
- width: 1131px;
- height: 255px;
- }
- #footer-wrap {
- background: black;
- bottom: 0;
- position: fixed;
- width: 1131px;
- height: 50px;
- clear: both;
- /* for IE */
- filter:alpha(opacity=85);
- /* CSS3 standard */
- opacity:0.85;
- }
- #footer {
- text-align: center;
- }
- #footer p {
- margin-top: 10px;
- font-size: 11px;
- line-height: 10px;
- letter-spacing: 0px;
- color: #525252;
- }
- #footer p.contact {
- font-size: 14px;
- color: #a2a2a2;
- }
- #footer b{
- font-weight: normal;
- color: orange;
- text-decoration: none
- }
- #footer a{
- font-size: 14px;
- font-weight: normal;
- color: orange;
- text-decoration: none;
- }
- #footer a:hover{
- font-size: 14px;
- color: orange;
- border-bottom: orange dotted 1px;
- }
- #footer a.copy {
- font-size: 11px;
- color: #696969;
- text-decoration: none;
- }
- #footer a.copy:hover {
- font-size: 11px;
- color: #696969;
- text-decoration: none;
- border-bottom: #696969 dotted 1px;
- }
- /* CONTENT */
- #content {
- position: relative;
- width: 660px;
- height: auto;
- text-align: left;
- margin: 0px auto;
- background-image: url(images/content-bg.png);
- background-repeat: repeat;
- z-index: 5px;
- padding: 20px;
- margin-top: 55px;
- }
- #main img {
- margin-left: auto;
- margin-right: auto;
- }
- #main {
- float: left;
- height: 100%;
- width: 450px;
- border-right: 1px dotted #525252;
- }
- #main p.caption {
- margin-top: -10px;
- font-size: 9px;
- font-style: italic;
- text-align: center;
- letter-spacing: 0px;
- }
- #pic-bar {
- float: right;
- margin-top: 12px;
- text-align: center;
- }
- #pic-bar img {
- margin-left: auto;
- margin-right: auto;
- }
- #pic-bar a {
- font-family: Helvetica, arial, myriad, sans-serif;
- font-size: 16px;
- text-transform: uppercase;
- text-decoration: none;
- color: #6a6a69;
- display: block;
- margin: -10px auto 20px auto;
- }
- #pic-bar a:hover {
- border-bottom: 1px dotted #6a6a69;
- margin-bottom: 19px;
- }
- #contact-bar {
- margin-top: 20px;
- clear: both;
- }
- /* NAV BAR */
- #nav-bar {
- position: absolute;
- width: 1131px;
- height: 78px;
- margin: 0px auto;
- background-image: url(images/navigation-bg.png);
- background-repeat: no-repeat;
- z-index: 10;
- }
- #nav-wrapper {
- width: 566px;
- margin: 0px auto 0 auto;
- }
- ul#nav-buttons {
- width: 1131px;
- margin: 0 auto;
- }
- ul#nav-buttons li {
- display: inline;
- }
- ul#nav-buttons li a {
- float: left;
- text-align: center;
- margin-top: 12px;
- }
- ul#nav-buttons span {
- display: none;
- }
- /* NAV BUTTONS */
- #nav-buttons li.home a {
- width: 105px;
- height: 43px;
- margin-right: 1px;
- background: url(images/buttons/home-button.png) no-repeat 0px 0px;
- }
- #nav-buttons li.home a:hover {
- width: 105px;
- height: 43px;
- margin-right: 1px;
- background: url(images/buttons/home-button.png) no-repeat 0px -43px;
- }
- #nav-buttons li.signs a {
- width: 97px;
- height: 43px;
- margin-right: 1px;
- background: url(images/buttons/signs-button.png) no-repeat 0px 0px;
- }
- #nav-buttons li.signs a:hover {
- width: 97px;
- height: 43px;
- margin-right: 1px;
- background: url(images/buttons/signs-button.png) no-repeat 0px -43px;
- }
- #nav-buttons li.monuments a {
- width: 155px;
- height: 43px;
- margin-right: 1px;
- background: url(images/buttons/monuments-button.png) no-repeat 0px 0px;
- }
- #nav-buttons li.monuments a:hover {
- width: 155px;
- height: 43px;
- margin-right: 1px;
- background: url(images/buttons/monuments-button.png) no-repeat 0px -43px;
- }
- #nav-buttons li.map a {
- width: 89px;
- height: 43px;
- margin-right: 1px;
- background: url(images/buttons/map-button.png) no-repeat 0px 0px;
- }
- #nav-buttons li.map a:hover {
- width: 89px;
- height: 43px;
- margin-right: 1px;
- background: url(images/buttons/map-button.png) no-repeat 0px -43px;
- }
- #nav-buttons li.contact a {
- width: 121px;
- height: 43px;
- margin-right: 1px;
- background: url(images/buttons/contact-button.png) no-repeat 0px 0px;
- }
- #nav-buttons li.contact a:hover {
- width: 121px;
- height: 43px;
- margin-right: 1px;
- background: url(images/buttons/contact-button.png) no-repeat 0px -43px;
- }
- Anonymous
- Bot


- Joined: 25 Feb 2008
- Posts: ?
- Loc: Ozzuland
- Status: Online
March 16th, 2010, 11:31 am
- DeadBolt
- Novice


- Joined: May 12, 2005
- Posts: 31
- Status: Offline
- tastysite
- Proficient


- Joined: Apr 09, 2008
- Posts: 349
- Loc: Brighouse, West Yorkshire, England
- Status: Offline
ok worked out your problem, its the footer (thickbox), its to wide however I can't work the code out, its all over the place someone with better eyes for code could find where the width is declared.
---
Also on a off topic note you have, for #main got z-index:5px; - z-index is not done in px it shoud be just z-index:5; (Don't think this will make any difference to your problem but you never know )
---
Also on a off topic note you have, for #main got z-index:5px; - z-index is not done in px it shoud be just z-index:5; (Don't think this will make any difference to your problem but you never know )
^__^
- graphixboy
- Control + Z


- Joined: Jul 11, 2005
- Posts: 1828
- Loc: In the Great White North
- Status: Offline
The issue is the fixed width on the absolutely positioned #nav-bar
To fix it simply add overflow-x:hidden; to that element's styles.
To fix it simply add overflow-x:hidden; to that element's styles.
Code: [ Select ]
#nav-bar {
position: absolute;
width: 1131px;
height: 78px;
margin: 0px auto;
background-image: url(images/navigation-bg.png);
background-repeat: no-repeat;
z-index: 10;
overflow-x:hidden;
}
position: absolute;
width: 1131px;
height: 78px;
margin: 0px auto;
background-image: url(images/navigation-bg.png);
background-repeat: no-repeat;
z-index: 10;
overflow-x:hidden;
}
- #nav-bar {
- position: absolute;
- width: 1131px;
- height: 78px;
- margin: 0px auto;
- background-image: url(images/navigation-bg.png);
- background-repeat: no-repeat;
- z-index: 10;
- overflow-x:hidden;
- }
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
- DeadBolt
- Novice


- Joined: May 12, 2005
- Posts: 31
- Status: Offline
- graphixboy
- Control + Z


- Joined: Jul 11, 2005
- Posts: 1828
- Loc: In the Great White North
- Status: Offline
Page 1 of 1
To Reply to this topic you need to LOGIN or REGISTER. It is free.
Post Information
- Total Posts in this topic: 6 posts
- Users browsing this forum: No registered users and 102 guests
- You cannot post new topics in this forum
- You cannot reply to topics in this forum
- You cannot edit your posts in this forum
- You cannot delete your posts in this forum
- You cannot post attachments in this forum
