Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox overflow: hidden bug

Tags:

html

css

firefox

So I added in an image slider into my webdesign as it is now. It worked fine in IE + Chrome, but in firefox I had a very strange issue.. The image slider images were being pushed towards the right hand side of the page.

enter image description here

When it should look like this:

enter image description here

I really don't know why this is happening.

here is the css for the slider:

    <style type="text/css">
        #slider {
            position: relative;
            width: 918px;
        }
        #slider .viewer {
            position: relative;
            width: 918px;
            height: 200px;
            overflow: hidden !important;
        }
        #slider .viewer .reel {
            display: none;
            height: 200px;
        }
        #slider .viewer .reel .slide {
            width: 918px;
            height: 200px;
        }
    </style>

And the css for the container around the slider:

#photobox {
border-left: 1px solid #ababab;
border-right: 1px solid #ababab;
position: relative;
width: 918px;
height: 200px;
z-index: -1;
top: -6px;
}

This is really stumping me. You can also see a live version of the site - http://simplesolutions.netne.net/

like image 879
Duncan Palmer Avatar asked Dec 13 '12 04:12

Duncan Palmer


2 Answers

It is a floating issue:

#slider {  float:left }

should fix it.

like image 164
Gurpreet Singh Avatar answered Sep 30 '22 01:09

Gurpreet Singh


Adding clear:both to #slider .viewer seems to take care of it.

like image 22
gotohales Avatar answered Sep 30 '22 03:09

gotohales