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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

silverstripe cuts of body-background in firefox


Go to End


5 Posts   2126 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, 5523 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 ...