MasterWeb & IBGeekGirls
May 19, 2012, 07:33:16 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Unfortunately due to being innundated by idiot spammers we've had to temporarily disable new registrations while we review the forum. We hope to have service back to normal (or what passes for normal around here) very soon. In the meantime, please feel free to browse around the forums.
 
   Home   Help Search Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Liquid Layout Background Problem  (Read 2013 times)
OldHonky
Moderator
*****

Karma: +2/-1
Offline Offline

Posts: 81



View Profile WWW
« on: January 21, 2007, 05:49:39 PM »

I'm trying to make something  that has a fluid design with a background comprising 3 images - a background 2px wide slice on the body - and  right hand and left hand images floated in divs within the body.  Then all the content will be inside an absolutely positioned div 100% wide and 100% high bought to the top using z-index.

This works perfectly except when I resize the window to 800 x 600 the right hand side image is cut off slightly.  I've tried changing div widths - using percentage widths on one or both divs, and floating both divs left, nothing seems to work.

Can anyone tell me what I'm doing wrong?

The page is here  http://www.test-area1.doncaz.co.uk/
Logged


"I am fond of pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals."
Winston Churchill
Fallen Angel
Administrator
*****

Karma: +7/-7
Offline Offline

Posts: 887


0% Angel


View Profile WWW
« Reply #1 on: January 21, 2007, 06:44:13 PM »

Have you got a screenshot of what it's doing/not doing? It's looking fine to me when I resize to 800x600.
Logged

"No matter how hard you try, You're still in prison, If ya born with wings and you never fly."
OldHonky
Moderator
*****

Karma: +2/-1
Offline Offline

Posts: 81



View Profile WWW
« Reply #2 on: January 21, 2007, 08:27:00 PM »

Both sides should look the same


Logged


"I am fond of pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals."
Winston Churchill
Fallen Angel
Administrator
*****

Karma: +7/-7
Offline Offline

Posts: 887


0% Angel


View Profile WWW
« Reply #3 on: January 21, 2007, 09:45:39 PM »

Very odd. I'm baffled. It's symmetrical when I re-size to 800x600 - and in Opera and IE too...

Everything looks to be in order in the code, but I can't check out whether any changes to the CSS make any difference because it's showing up fine as it is for me. The only thing I could think of that could possibly influence it would be the 100% height you've got on the html and body, but as your images are the same width and height, if they were going to get stretched or squished, it'd be in the same proportions, so it can't be that.

The only thing I have noticed is that when I highlighted the block level elements using the FF web dev toolbar, the right hand image div is 300px while the image itself is 250px, whereas the left hand image div and image are both 250px. Does it make any difference if you make that right hand image div 250px wide?

If not, I'm stumped.  G.T.'s eye smiley
Logged

"No matter how hard you try, You're still in prison, If ya born with wings and you never fly."
PrawnDog
Geek in Training
**

Karma: +1/-0
Offline Offline

Posts: 56


Half prawn, half dog and half-a-brain


View Profile
« Reply #4 on: January 21, 2007, 11:40:06 PM »

I can't replicate the problem with FF, IE and Opera either.

However, looking at your image I wonder if it's an FF problem? The tab for your selected page almost appears off the page - I wonder if somehow FF is pushing both the tab bar tab and the page outside the display port (excuse my DIY terminology). I've never seen it happen, but that's the impression I get from your image. Maybe a silly question, but do you get the same problem with fewer tabs (or duplicate to new window).
Logged

There are 10 types of people in the world: those who understand binary, and those who don't.
Caz
Global Moderator
*****

Karma: +6/-3
Offline Offline

Posts: 211


Brain... abend...altitude: 60,000 ft


View Profile WWW
« Reply #5 on: January 22, 2007, 02:13:58 AM »

I get the same problem opening in a new window rather than a new tab but your measurements sound interesting FA, I didn't think to measure on screen just accepted what he was yelling at me.( Because I couldn't put it right  G.T.'s giving it the eye smiley )
Logged

Anyone can create a usable website. It takes a graphic designer to make it slow, confusing, and painful to use.
Fallen Angel
Administrator
*****

Karma: +7/-7
Offline Offline

Posts: 887


0% Angel


View Profile WWW
« Reply #6 on: January 22, 2007, 06:04:44 PM »

I spotted it first because I'd highlighted block level elements using the FF web dev toolbar and one just *looked* wider, so I got MeasureIt on the job.
Logged

"No matter how hard you try, You're still in prison, If ya born with wings and you never fly."
OldHonky
Moderator
*****

Karma: +2/-1
Offline Offline

Posts: 81



View Profile WWW
« Reply #7 on: January 23, 2007, 01:16:01 AM »

It was deliberate, and it makes no difference.  I thought if the last 50px disappear off-page then why not make the right floated div 50px wider.  It made no difference so I left it as is.

It is only a problem on FF,  IE and Opera are OK, I get the same problem with FF on my machine at work.  I can probably live with it but I would really like to know why it's happening.
Logged


"I am fond of pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals."
Winston Churchill
PrawnDog
Geek in Training
**

Karma: +1/-0
Offline Offline

Posts: 56


Half prawn, half dog and half-a-brain


View Profile
« Reply #8 on: January 23, 2007, 11:58:42 AM »

I can replicate your problem on a local copy, but only under quite tenuous circumstances.

Have you tried removing the height/min-height declarations? This should remove the vertical scrollbar, which you don't seem to have (which may be part of the problem).
Logged

There are 10 types of people in the world: those who understand binary, and those who don't.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!