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   1749 Views

Avatar
benni

25 February 2008 at 12:35am (Last edited: 25 February 2008 1:39am), Community Member, 5 Posts

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

25 February 2008 at 1:51am Community Member, 5 Posts

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

Avatar
benni

25 February 2008 at 1:53am Community Member, 5 Posts

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

Avatar
Willr

25 February 2008 at 9:06pm Forum Moderator, 5511 Posts

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

25 February 2008 at 10:09pm Community Member, 5 Posts

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