inherit
207962
0
Apr 18, 2014 15:46:01 GMT -8
captainkb
11
April 2014
captainkb
|
Post by captainkb on Apr 17, 2014 13:36:36 GMT -8
Your background behaves the same on both PC and phone here. Any white space around the background image would be due to differences in resolution between both devices. For example, there's white space around the image on the PC I'm currently on because my screen resolution is set to 1680 x 1050, while your background image is 1600 x 900, which is smaller. Thanks for the quick response But the background scrolls on a computer but not on my mobile device. Not even when I switch from mobile view to desktop view. Even if it was a resolution thing causing te white areas that doesn't explain why the background doesn't scroll with the page.
|
|
#eb7100
33409
0
1
Oct 19, 2024 14:37:42 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 17, 2014 13:58:47 GMT -8
Your background behaves the same on both PC and phone here. Any white space around the background image would be due to differences in resolution between both devices. For example, there's white space around the image on the PC I'm currently on because my screen resolution is set to 1680 x 1050, while your background image is 1600 x 900, which is smaller. Thanks for the quick response But the background scrolls on a computer but not on my mobile device. Not even when I switch from mobile view to desktop view. Even if it was a resolution thing causing te white areas that doesn't explain why the background doesn't scroll with the page. That sounds more like a problem with how your mobile browser renders fixed backgrounds. Backgrounds are specified in an HTML document with only a small amount of CSS code. This is literally the only way to do it the way it is on your forum, and it's one of the most simple bits of CSS out there (not to mention it's used universally on every site ever with a background), so there's no possible way the code that adds the background is broken. It's working on my device and in its native PC environment.
|
|
inherit
207962
0
Apr 18, 2014 15:46:01 GMT -8
captainkb
11
April 2014
captainkb
|
Post by captainkb on Apr 17, 2014 15:33:02 GMT -8
Odd, i know the bethesda forums for "Skyrim" has a fixed background and that works fine on my phone, but my forum with a fixed background doesnt work on my fine... just odd i guess
|
|
inherit
207962
0
Apr 18, 2014 15:46:01 GMT -8
captainkb
11
April 2014
captainkb
|
Post by captainkb on Apr 17, 2014 15:45:57 GMT -8
captainkb, skim a bit further down the linked thread, you'll find out that Chris answers that very question with the necessary code (it's this particular post). one final question, promise. i'm having trouble finding out where i throw this in: {foreach $[post]} <div style="height: 15px"></div> <div class="container"> <br /> <div class="title-bar"> do i REPLACE the first part or ADD that in after. I tried adding it in afterwards and it seriously screwed up my threads haha.
|
|
Joachim
Full Member
Shhh, can't see me.
Posts: 905
inherit
23771
0
Nov 18, 2012 17:23:23 GMT -8
Joachim
Shhh, can't see me.
905
April 2004
izaeah
|
Post by Joachim on Apr 17, 2014 16:14:45 GMT -8
From what I'm seeing in the posts, essentially just add the second line: <div style="height: 15px"></div> -- between {foreach $[post]} and <div class="container"> and that should do it.
At least I hope, I'm no coder and I suck at CSS but I try to read a whole lot between the lines when I can.
|
|