amitamberker Posted June 16, 2010 Share Posted June 16, 2010 Hi,How do I disable “Scrollbar” from the following code? <div class="01" style="overflow:auto" scrolling="no"> <p class="word-wrap" style=""><b>A</b></p> <p class="word-wrap" style="">B</p> <p class="word-wrap" style="">C</p> <p class="word-wrap" style="">D, MM 007</p> <p class="word-wrap" style="">Phone: 123456789</p> </div> Link to comment Share on other sites More sharing options...
Ingolme Posted June 16, 2010 Share Posted June 16, 2010 The "overflow: auto;" part is what's causing the scrollbar to appear. Just remove it. Link to comment Share on other sites More sharing options...
amitamberker Posted June 17, 2010 Author Share Posted June 17, 2010 Hi Ingolme,Removed the "overflow: auto;" part but still the “Scrollbar” is appearing... whew! Wondering how do I disable it?Please help! Link to comment Share on other sites More sharing options...
dsonesuk Posted June 17, 2010 Share Posted June 17, 2010 the scroll bar will only appear if the total height of text exceeds the set height of the element, so this looks like it is controlled somewhere else like class="01" (by the way, I'm pretty sure using numbers as a reference at the start causes problems, at end yes! such as 'myclass01' is fine) this make me wonder if this has overflow:auto; set as well. Link to comment Share on other sites More sharing options...
wirehopper Posted June 17, 2010 Share Posted June 17, 2010 overflow:hidden; Link to comment Share on other sites More sharing options...
amitamberker Posted June 17, 2010 Author Share Posted June 17, 2010 the scroll bar will only appear if the total height of text exceeds the set height of the element, so this looks like it is controlled somewhere else like class="01" (by the way, I'm pretty sure using numbers as a reference at the start causes problems, at end yes! such as 'myclass01' is fine) this make me wonder if this has overflow:auto; set as well.Hi dsonesuk,The class="01" is just a dummy due to confidentiality issue and NOPE, it's not controlled in class="01" [dummy name].FYI - The class="01" has a different Name. I believe, the Scrollbar is displaying from a different source since the Scrollbar is still not disappearing upon incorporating as overflow:auto; in class="01" [dummy name]. Unfortunately I do not have rights to copy and paste the entire html code into this forum. Link to comment Share on other sites More sharing options...
amitamberker Posted June 17, 2010 Author Share Posted June 17, 2010 overflow:hidden;Hi wirehopper,NOPE Still the Scrollbar is not disappearing for "overflow:hidden;" . I believe, the Scrollbar is displaying from a different source. I mean, from a different DIV tag. Link to comment Share on other sites More sharing options...
wirehopper Posted June 17, 2010 Share Posted June 17, 2010 The style="" are probably overriding and defeating the overflow:hidden;scrolling="no" isn't valid on a div tag.What is class="word-wrap"? Link to comment Share on other sites More sharing options...
ShadowMage Posted June 17, 2010 Share Posted June 17, 2010 Where is the scroll bar appearing? On the window? On a specific page element, like the div you posted?If it's appearing on an element, can you be certain that it's appearing on the div you posted? Try adding large paddings and unique background colors to different divs so you can figure out for sure which element the scrollbar is attached to. Link to comment Share on other sites More sharing options...
amitamberker Posted June 18, 2010 Author Share Posted June 18, 2010 Hi All,Well - The "OVERFLOW-Y: scroll;" was the culprit ... It was on a different DIV tag in a different Class... WHEW! Thanks a lot friends...Take Care! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.