Divyesh Patoriya Divyesh Patoriya - 5 months ago 50
CSS Question

How to remove scroll bar form prettyPhoto lightbox?

I have used one plugin for lightbox .i.e

prittyPhoto
,

Everything is fine in each browser except in
ie7
.

There will display scrollbar over lightbox. So how can i remove scrollbar in IE7 browser?/

Answer

Try the below ones

body{overflow-x: hidden;}

In which case if you apply it to html rather than body

html{overflow-x: hidden;}

else

html{
    overflow:auto;
}

Try putting if you want separate style sheet from others

<!--[if IE 7]>
    Link to alternate style sheet
    OR
    <style> /*CSS in here*/ </style>
<![endif]-->
Comments