Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old July 21st, 2003, 11:59 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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

Reply With Quote
  #2  
Old July 22nd, 2003, 12:34 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: adding a border adds scrollbar

how about some code?

Reply With Quote
  #3  
Old July 22nd, 2003, 12:34 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: adding a border adds scrollbar

how about some code?

Reply With Quote
  #4  
Old July 22nd, 2003, 12:50 AM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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.


Reply With Quote
  #5  
Old July 22nd, 2003, 06:21 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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.






Reply With Quote
  #6  
Old July 22nd, 2003, 07:08 PM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 57 sec
Reputation Power: 2
RE: adding a border adds scrollbar

Congrets on your 200th.

Reply With Quote
  #7  
Old July 22nd, 2003, 07:38 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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!

Reply With Quote
  #8  
Old July 22nd, 2003, 10:01 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: adding a border adds scrollbar

look at overflow CSS attribute. use it with

Code:
overflow: hidden; 


Reply With Quote
  #9  
Old July 22nd, 2003, 10:29 PM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: adding a border adds scrollbar

nevermind, I got it, I can just set overflow-x and overflow-y to hidden.

cool. thanks anyway

Reply With Quote
  #10  
Old July 23rd, 2003, 01:27 AM
madhombre madhombre is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: WI
Posts: 247 madhombre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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!

Reply With Quote
  #11  
Old July 23rd, 2003, 02:09 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: adding a border adds scrollbar

great minds?


zombie?


speak for yourself...

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > adding a border adds scrollbar


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway