Reply LinkBack Thread Tools Search this Thread
Old 06-01-2004, 10:03   #1 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
css background moving with scroll bars

ok. background set using css:

body {
margin: 0;
padding: 0;
background-color: #000;
background-image: url(../images/bkg.jpg);
background-position: center;
background-repeat: no-repeat;
font-family: verdana, arial, helvetica, sans-serif;
}

if scroll bars are needed on that frame then the background image shifts about meaning that you can't centre align anything with the top frame. mozilla does the same but slightly differently.

http://dev.flark.net/abovethesky/

any pointers? cheers chaps.
  Reply With Quote
Old 06-01-2004, 10:17   #2 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,967
Have you considered ditching a frames-based layout and going with a holistic layout? (one where a scrollbar will shift the entire page rather than just sections).
If not, you should.
If you have, you should consider it again.
  Reply With Quote
Old 06-01-2004, 10:21   #3 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
turn it in bill, its not a frames argument. i've changed it now, by placing a div around the whole page and putting the image as a background to that div. not ideal. work in progress...
  Reply With Quote
Old 06-01-2004, 10:25   #4 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,967
When it's frames that are creating the problem, then it's a frames argument.
Sorry for trying to point you in the right direction.
  Reply With Quote
Old 06-01-2004, 10:33   #5 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
even if it was not framed the issue would be the same. an element aligned centre in the page will not align with a background image positioned by css as this behaves differently on different browsers depending on the presence of browser scrollbars.

you were not pointing in the right direction, you were getting on your high goat about frames. sometimes technical restrictions, client requirements and design require frames to produce a site that fits the brief.
  Reply With Quote
Old 06-01-2004, 10:39   #6 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
arse beards. i'm wrong. it all moves the same. dismounting goat now...
  Reply With Quote
Old 06-01-2004, 10:40   #7 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
only in mozilla however. ie behaves itself.
  Reply With Quote
Old 06-01-2004, 10:48   #8 (permalink)
Mik
Magazines™
 
Mik's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,897
i see two menus at top

flark!
  Reply With Quote
Old 06-01-2004, 10:48   #9 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,967
Just out of interest, what are the bits that require the site to be done in frames?
Maybe there's some way around it that would keep the site intact and the client (and more importantly - me ) happy.

...and remember, I'm only trying to help you , Ro-land.
  Reply With Quote
Old 06-01-2004, 12:27   #10 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,572
Quote:
Originally Posted by japanmik
i see two menus at top

flark!
I see two as well - one in the top frame and one in the main frame. That can't be right.
  Reply With Quote
Old 06-01-2004, 12:30   #11 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
no, its not right. its just so i can see what's going on. surley its too obvious to be taken as an error? cheers though. any solutions to the scroll thing in mozilla?
  Reply With Quote
Old 06-01-2004, 12:41   #12 (permalink)
Mik
Magazines™
 
Mik's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,897
Quote:
Originally Posted by Brown
any solutions to the scroll thing in mozilla?

honestly?
  Reply With Quote
Old 06-01-2004, 12:41   #13 (permalink)
Mik
Magazines™
 
Mik's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,897
dare I
  Reply With Quote
Old 06-01-2004, 12:45   #14 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
go on then. i've not told anyone to fuck off all week.
  Reply With Quote
Old 06-01-2004, 12:59   #15 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,572
Quote:
Originally Posted by Brown
any solutions to the scroll thing in mozilla?
No.

I arsed about with scrollbars in mozilla a while back > here

I think you could fix it with set heights and so on, but a user's screen resolution might spaz it up.
Try ignoring it.
  Reply With Quote
Old 06-01-2004, 13:02   #16 (permalink)
Mik
Magazines™
 
Mik's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,897
Quote:
Originally Posted by Brown
go on then. i've not told anyone to fuck off all week.

how novel.
  Reply With Quote
Old 07-01-2004, 06:29   #17 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
thought you'd like it. cheers stickboy. working on that one now.
  Reply With Quote
Old 09-01-2004, 08:42   #18 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
http://bugzilla.mozilla.org/show_bug.cgi?id=72540

Quote:
Originally Posted by lazy developers at mozilla
This bug will not be fixed, but we will be introducing ways of letting Web page authors (and users, through user stylesheets) control this, so settle down people, your needs will be addressed!

WONTFIX.

have to wait for css3. how long? beuller? beuller?
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8