August 2nd, 2013, 12:10 AM
-
Overflow auto doesn't work in opera
Hi I have the following CSS, which works in everything except the Opera browser.
Code:
#bodyRightWhite{
float:left;
margin-top:280px;
float:left;
position:absolute;
width:568px;
height:278px;
margin-top:274px;
margin-left:435px;
padding:12px 12px 12px 12px;
background-color:#FFFFFF;
overflow:auto;
}
I need to use "overflow:scroll;" to get it to work in Opera, but this creates a horizontal and vertical scroll bar. I only need a vertical scroll bar.
What is the work around for this?
thanks
August 2nd, 2013, 12:39 AM
-
Have you even looked at what you have there?
1. You have float:left; declared twice,
2. You have margin-top: declared twice with 2 different values,
3. You are using position:absolute; with float:left; (which do you want to do... position absolutely or float left?),
4. You are using some huge margin values, telling me there is something wrong there.
Can you please post a link to the page you are working on with this, so, we may possibly help you get thru this?
August 2nd, 2013, 12:43 AM
-
thanks Don R
I just cranked out CSS. I need to go back in and clean it up.
For some reason, the overflow:auto; is working now. I'm not sure what was up, maybe the sloppy CSS like you suggested.
thanks
again!
August 2nd, 2013, 12:51 AM
-
Originally Posted by lelales
For some reason, the overflow:auto; is working now. I'm not sure what was up, maybe the sloppy CSS like you suggested.
Glad you got it figured out..and, I agree, that was some sloppy CSS there