Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

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 Dev Shed Forums Sponsor:
  #1  
Old November 12th, 2004, 11:34 AM
ukwheel ukwheel is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 ukwheel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 12 sec
Reputation Power: 0
Scrollbar problem between firefox 1 and IE

Putting together a pretty simple site - a scrolling page under a (pos absolute) header and (pos fixed) footer. Written to xhtml 1 strict - html and css both validate.

css body has overflow:hidden

I have an alternative stylesheet for IE6 :-

html {overflow:hidden;}
#header {position:absolute; top:0;}
#page {padding:3%; overflow:auto;}
#margin {position:absolute;}
#footer {position:absolute;}

This all works fine in IE.
However when tested in Firefox 1.0 only half the screen is visible with no available scrollbar. Tried changing css body to "auto" and all is OK in Firefox. Problem is IE now has second scrollbar on right hand side which is messy and unsightly.

Is there a reasonably simple fix for this - or am I to assume that as IE is the 92% browser that I have to code for that alone?

Or have I missed something more fundamental

Thanx

Reply With Quote
  #2  
Old November 13th, 2004, 08:58 PM
BonRouge's Avatar
BonRouge BonRouge is offline
Winemaster
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Sendai, Japan
Posts: 1,354 BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 2 h 52 m 6 sec
Reputation Power: 86
I'm not so clear what your problem is. Can you post a link or the rest of the code?

Reply With Quote
  #3  
Old November 17th, 2004, 09:07 AM
Arafi Arafi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Belgium
Posts: 43 Arafi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 19 sec
Reputation Power: 4
Quote:
Originally Posted by ukwheel
I have an alternative stylesheet for IE6 :-

So why not make an alternative stylesheet for FF?

I don't know. Is this possible? Sort of browser-detection and then using the correct stylesheet?

Reply With Quote
  #4  
Old November 17th, 2004, 03:16 PM
blockcipher blockcipher is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2003
Posts: 701 blockcipher User rank is Sergeant Major (2000 - 5000 Reputation Level)blockcipher User rank is Sergeant Major (2000 - 5000 Reputation Level)blockcipher User rank is Sergeant Major (2000 - 5000 Reputation Level)blockcipher User rank is Sergeant Major (2000 - 5000 Reputation Level)blockcipher User rank is Sergeant Major (2000 - 5000 Reputation Level)blockcipher User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 7 h 40 m 21 sec
Reputation Power: 55
You can use a CSS hack to have your CSS work for both IE and Firefox. Tantek's hack is considered the most valid that I know of, however I don't think it works with IE 6 anymore. I like to use the hack where you want to select tags with a specific attribute. For example,

Code:
.someclass[class]


This states that you are looking for any tag with the class "someclass" and has the attribute "class" Firefox will read this while IE ignores it. Therefore, you could do this:

Code:
body { overflow: hidden; }
body[id] { overflow: auto; }
...
<body id="main">
...


However, I will caution you that if IE is ever fixed, this may not work anymore. Of course, it may be that you don't have to do this anymore. Either way, with many hacks there's a chance that it won't work anymore as browsers evolve.
__________________
blockcipher
---------------
Gratuitously stolen...
mysql> SELECT * FROM user WHERE clue > 0;
0 Results Returned.

PHP5/MySQL/UTF-8
My Tech Blog

Reply With Quote
  #5  
Old November 19th, 2004, 11:28 AM
ukwheel ukwheel is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 ukwheel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 12 sec
Reputation Power: 0
Scrollbar problem between firefox 1 and IE

Thanks - I'll give it a try

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Scrollbar problem between firefox 1 and IE


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 1 hosted by Hostway