...

View Full Version : Firefox Repeat-y problem



dancrew32
01-03-2008, 08:43 PM
Hey, this bug is only in FF, it has to do with this 1px tall image that's repeating on the y axis to expand along with the content...

The page loads fine, but if you scroll down, you'll notice that in Firefox the repeat-y image stops at the bottom of the browser... I want it to continue on forever like it does in every other browser...

Please take a look here: Page Link (http://buttebusinessresources.com/?page_id=3)

My stylesheet is here: Stylesheet Link (http://buttebusinessresources.com/wp-content/themes/default/style.css)


This is very strange since I don't usually have FF problems... more the other way around.. haha

If anyone can help me with a fix, I would much appreciate it!!

Excavator
01-03-2008, 08:55 PM
#wrap {
margin:0 auto;
position:relative;
width:921px;
background:#e9e7e7 url(i/mainbacky.gif) repeat-y top center;
/*height: 100%; remove this*/
font-size:.9em;
text-align:left;
}

100% is the height of the browser window in this case, but no more.

dancrew32
01-03-2008, 09:04 PM
haha awesome, that fixed it all up! Thanks a ton!

Excavator
01-03-2008, 09:16 PM
Very cool :thumbsup:

dancrew32
01-04-2008, 12:23 AM
crap, I spoke too soon.. although pulling out that line did fix the cut off problem with longer pages, the shorter pages like This Page (the homepage) (http://buttebusinessresources.com/index.php) are stopping the repeat from reaching the bottom of your browser...

Is there anyway to make sure this repeat-y pattern is always extending to the bottom of the browser without using the height 100% on that wrap??

Excavator
01-04-2008, 01:44 AM
Is there anyway to make sure this repeat-y pattern is always extending to the bottom of the browser without using the height 100% on that wrap??

That's a little more complicated.
A full height layout takes a couple extra tricks. I have a nice example here. (http://nopeople.com/CSS/full-height-layout/)
The CSS for that is at http://nopeople.com/CSS/full-height-layout/global.css to see how that's done.
Note there are specific things in that CSS that you will need to duplicate in both your CSS and markup:

html
body
*
#wrap
* html #wrap
#footer



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum