|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
adding a border adds scrollbar
howdy folks, to spare my aching brain.
I added a thin border to a div and low and behold a scroll appeared that was not there before. The content is way smaller than the div, when scolling just a touch and the content is way within that. Before I used padding but that is not working. if you add a border, what items do you need to set to offset the difference the border makes. Thanks back to google to keep looking |
|
#2
|
|||
|
|||
|
RE: adding a border adds scrollbar
how about some code?
|
|
#3
|
|||
|
|||
|
RE: adding a border adds scrollbar
how about some code?
|
|
#4
|
|||
|
|||
|
RE: adding a border adds scrollbar
no need to repeat yourself :-)
here is the div creation <div id="focus-content" name="extras" style="position: absolute; top: 20px; left: 485px; height: 391px; width: 499px; overflow-y: auto;overflow-x: hidden;padding-right: 5px;visibility: hidden;border: thin solid white; background-color: #336699;scrollbar-face-color: #336699;scrollbar-3dlight-color: #336699;scrollbar-base-color: #336699;scrollbar-track-color: #336699;scrollbar-darkshadow-color: #336699;scrollbar-arrow-color: #336699;scrollbar-shadow-color: white;scrollbar-highlight-color: white;"> I have tried bottom padding, 0 right padding and lots of other things. without the border in there it is fine, with the border it gives me a scroll bar. |
|
#5
|
|||
|
|||
|
RE: adding a border adds scrollbar
thanks for that, must be something special or maybe I miscalculated somewhere, I will take another look.
BTW - 200th post for me - wow, didn't think I had that much to say. |
|
#6
|
|||
|
|||
|
RE: adding a border adds scrollbar
Congrets on your 200th.
|
|
#7
|
|||
|
|||
|
RE: adding a border adds scrollbar
this is still not working, I took the div right down, far away from all edges.
took out most of the content from the inner div so it no longer scrolls. still the outer div scrolls! is there anyway I can turn scrolling off for a div???? that would be very useful. it still doe not do it when there is no border, why is this? this is beginning to get to me! |
|
#8
|
|||
|
|||
|
RE: adding a border adds scrollbar
look at overflow CSS attribute. use it with
Code:
overflow: hidden; |
|
#9
|
|||
|
|||
|
RE: adding a border adds scrollbar
nevermind, I got it, I can just set overflow-x and overflow-y to hidden.
cool. thanks anyway |
|
#10
|
|||
|
|||
|
RE: adding a border adds scrollbar
didn;t actually see you posted their zombie, I see great minds think alike.
mental note: refresh the page before posting! |
|
#11
|
|||
|
|||
|
RE: adding a border adds scrollbar
great minds?
zombie? speak for yourself... |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > adding a border adds scrollbar |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|