Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

silverstripe cuts of body-background in firefox


Reply


5 Posts   1773 Views

Avatar
benni

Community Member, 5 Posts

25 February 2008 at 12:35am

Edited: 25/02/2008 1:39am

hey

(before this I wrote something about the base_tag, please ignore it ...)

I don't know why, but when I load my site through the silverstripe template-engine, the body-background ends, when the last div ends. The error also occurs without anything changed in the template (like base_tag %meta_tags, %Content ...). When I load the template directly from hd (...index.html) everything is fine.
This problem only occours in firefox, in IE6 or opera everything is fine.

Any ideas, I'm really despaired.... ?

Thanks in advance.
Benni

Avatar
benni

Community Member, 5 Posts

25 February 2008 at 1:51am

I add a screenshot. The left side is the hdd-ouput, the right side the silverstripe-template ...

Avatar
benni

Community Member, 5 Posts

25 February 2008 at 1:53am

second try, now the screenshot is visible, I hope ....

Avatar
Willr

Forum Moderator, 5513 Posts

25 February 2008 at 9:06pm

Put that grey background color on the html as well. So that if the body tag is shorter (ie like your case) it will display grey.

In your layout.css

html {
background: #888; /* whatever your grey color is */
}

There are other methods like adding body or html { height: 100%} but I prefer that first method of putting the bg on the html tag

Avatar
benni

Community Member, 5 Posts

25 February 2008 at 10:09pm

great, thats it. Thanks a lot, I can know go on working with this great framework ...