screensavers

TappedOut forum

Posted on Feb. 9, 2017, 12:41 a.m. by golgariizzet

hi, i was just wondering how everyone is installing pics on the deck page background?

AngryKitten says... #2

The way I do it (and I believe many others) utilizes an exploit of sorts on tappedout.
I put this code in the top of the deck description.

<img src="img_url.png" style="position:fixed;top:0px;left:0px;width:100%;height:100%;z-index:-1;" />
Any image you provide will appear like it is the background and apply some styling.
postion:fixed will force the image to stick to the top of the page so it scrolls with the viewer.
top:0px and left:0px aligns the image to the top left.
width:100% and height:100% tells the image to fill up the entire viewport.
z-index:-1 tells the image to sit behind the page content.

I hope that all makes sense, let me know if you need any help getting it to work.

February 9, 2017 4:37 p.m. Edited.

Lame_Duck says... #3

Before you start adding images to the background of your decks, I'll just throw it out that I (and I know I'm not completely alone in this) think it looks terrible, it makes it harder to read the page and makes the site slower to load. Personally, as soon as I see a page start loading a background image, I back out. So, it's worth considering that if you're looking for feedback on a deck, you might be hurting your chances by putting a picture in the background.

February 9, 2017 4:50 p.m. Edited.

AngryKitten says... #4

Taking Lame_Duck's comment into consideration, it might be worth looking into html/css if you want to go a different route and add a tiled background. It would load faster but still has the personalized feel you might be going for. Also it would be easier to get the colors and whatnot to look good together. Only thing is I've never tried doing that on TappedOut so I'm not sure whether it is possible or not.

Just a thought.

February 10, 2017 9:37 a.m.

enpc says... #5

Generally, the preferred option is just to not have background images. There's a whole bunch of issues regarding mobile users, bandwidth, and a whole bunch of other stuff. And I believe I have seen this in the past (from the mods themselves) that while not enforced, they would prefer you didn't.

February 12, 2017 7:39 a.m.

Please login to comment