This is a discussion on "Faux Columns Problem - scolling up / down causes part of background image 2 disappear" within the Web Page Design section. This forum, and the thread "Faux Columns Problem - scolling up / down causes part of background image 2 disappear are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Faux Columns Problem - scolling up / down causes part of background image 2 disappear
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hi All,
I have a problem with my Faux Columns. You can see an example on my live site at www.abipo.com/contact.html Here you can see 3 sheets of paper (background images) that the content sits on top of. Basically, each 'sheet of paper' is made up of three background images: 1. a top image (both left and right top corners of the page) 2. a middle image (this is tiled vertically in the background behind all the content that is entered to form the main part of the 'page' 3. a bottom image (both bottom corners of the page) Here is the very simple code that shows how to do this:
Does anyone have any idea why this is happening and also how to prevent it? Thanks a million, /Brian Last edited by karinne; Apr 23rd, 2007 at 13:16. Reason: Please use [code]...[/code] tags when displaying code! |
|
|
|
|||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
I couldn't replicate the problem in FF2.0 or IE 7. What browser are you using?
|
|
|||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
Hi, thanks for replying. I should have said: this only seems to happen in good old IE6...
/Brian |
|
|||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
If you scroll down the page to the very bottom of the form (www.abipo.com/contact.html) the navigation buttons will scroll off the top of the screen. Then scroll up again until you see the navigation buttons again. Look for parts of the page disappearing (replaced with a grey horizontal thick line). If you don't see them then, scroll down and up a few times without releasing the mouse button. You should have to scroll no more than a few times to see the problem. I have been able to reproduce the problem easily on my home and work machine under IE6. Can you see it?
Thanks, /Brian |
|
||||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
Nope ... don't see any problem.
|
|
|||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
On IE 6.0.2 on WinXP SP2 i can see the problem you talk about.
It's like a sector (of 8-10 px height) don't repeat the background just before the menu list. Can't imagine why but i saw this problem before with IE6, try to save the entire background image as a single file (without cut it in 3) and see if the problem persists, if the problem disappear... well... maybe you'll lose 1ms in loading time but you've resolved. Bye. PS: I've reproduced the problem also on IE7. It appears in all the pages that you can scroll down, before the solution above try add some overflow:hidden; in the coloumns css. Maybe it's just a matter of clearing the floats. Last edited by Gwayn; Apr 23rd, 2007 at 14:02. |
|
|||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
Thanks a lot for your suggestions. I will give both your ideas a go when I get home and post back to let you know how I got on. Thanks again!
/Brian |
|
|||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
Update: Its nothing to do with the image or the size of the image so we can rule that out. The image was 1 pixel in height. I changed that to 300 pixels in height but the problem still occurred.
Will keep lookin' /Brian |
|
||||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
Try adding position: relative; to the div(s) in question. Strangely, that fixes a lot of stupid quirks.
|
|
|||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
Found it! For some reason (can't remember why) I had a non-semantic <span> inserted. It was this that was causing the grey stripe to appear.
My markup looked like this:
/Brian Last edited by karinne; Apr 24th, 2007 at 12:16. Reason: Please use [code]...[/code] tags when displaying code! |
|
||||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
Um. Why was it there in the first place? Very few things should be between anchors. An image are the only thing that comes to mind at the moment.
|
|
||||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
W3C's validator probably would have caught that
|
|
||||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
Does the validator hiccup at that? I'm too used to doing things my normal way.
|
|
||||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
Yep ... it does. Try it out. Enter this code
Quote:
|
|
||||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
I feel at one with semantics. Patience young Skywalker.
|
|
|||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
Lol - you are right of course. I wish I could offer some explanation as to why I put that in there. I left the code for quite a while (several months) and have forgotten the reason. I know that in the past I have used non-semantic spans in order to attach an extra backgound image (as only one background image is allowed per element) and I have also used non-semantic spans for image replacement. However, in this context it just seems wrong and it shouldn't be there. I should have validated first.
|
|
||||
|
Re: Faux Columns Problem - scolling up / down causes part of background image 2 disap
Yeah, validating is always a good idea
|
![]() |
| Tags |
| columns, css, disappears, down, faux, scroll |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| background-image rollover problem ie6 | ukstoner | Web Page Design | 6 | Apr 9th, 2008 14:00 |
| [SOLVED] Image links disappear after clicked | finalfantasyfanatic | Web Page Design | 14 | Dec 5th, 2007 12:14 |
| [SOLVED] div background image problem in ie | Rincewind | Web Page Design | 7 | Nov 30th, 2007 09:30 |
| I still don't get faux columns. | pdk | Web Page Design | 8 | May 21st, 2007 10:52 |
| Background Image Problem - Challenge! | lgmgroup | Web Page Design | 2 | Jan 23rd, 2007 16:09 |