- This topic is empty.
-
AuthorPosts
-
October 9, 2014 at 2:36 am #185839
Marc2412
ParticipantThe background images of a website I’m working on (http://www.skillsz.pixub.com) are not displaying properly on mobile phone browsers. The problem occurs within the header, header-bottom and body. Here is a picture of the problem on my smartphone:
http://i.gyazo.com/a16e2bda410a0df354de66c4073a8dde.png
This is the piece of code I made but it fails to do the job:
body.custom-background, #header, #header-bottom { background: url("http://freestocktextures.net/wp-content/uploads/2013/10/Free- Dark-Black-Gradient-Texture-with-Ripped-Paper.jpg") no-repeat center center fixed; -webkit-background-size: 100%; -moz-background-size: 100%; -o-background-size: 100%; background-size: 100%; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }
October 9, 2014 at 2:44 am #185844Paulie_D
MemberCurious…on my (admittedly) desktop the site is not really responsive below 1200px.
October 9, 2014 at 2:53 am #185845Marc2412
ParticipantWhat browser are you using?
October 9, 2014 at 2:54 am #185846Paulie_D
MemberChrome Version 38.0.2125.101 beta-m (64-bit)
October 9, 2014 at 2:55 am #185847Paulie_D
MemberAlso, your link has been taken down…you might want to fix that.
October 9, 2014 at 3:03 am #185851Marc2412
ParticipantHm.. On 17″ screens like my laptops, I have no problem with anything. On my Ipad it shows fine aswell but when I went on my 15″ laptop I see that the sides go over the slideshow and some of the text. Is this also happening for you?
October 9, 2014 at 3:26 am #185855Paulie_D
MemberPretty much…I’m resizing the browser to replicate a mobile environment.
Are you using media queries?
October 9, 2014 at 3:31 am #185856Marc2412
ParticipantFixed the issue with 15″ screens so it should show up correct now. No I am not using media queries since I have never worked with those so I have no clue how to even start. The website shows correctly on Ipads, 15″ screens and 17″ screens now. Only problem is showing the images correctly on mobile device browsers.
October 9, 2014 at 3:43 am #185859Marc2412
ParticipantI’m using WordPress, the theme has a responsive toggle but once I use that it’s all messed up.
October 9, 2014 at 3:44 am #185860Marc2412
ParticipantAs you can see it’s responsive when you try now, but everything is messed up
October 9, 2014 at 3:45 am #185861Marc2412
ParticipantThis is my media query stylesheet:
[MOD EDIT – Codedump Removed]
October 9, 2014 at 4:17 am #185864Marc2412
Participanthere is the pastebin: http://pastebin.com/3AMue78V
I want the background to show white on phones and ipads.. so no background I have on a laptop/computer, that’s all
October 9, 2014 at 4:19 am #185865Paulie_D
MemberThe site is unresposive because it’s hardcoded not to be with fixed px widths all over…like
#slide-container { width: 930px; height: 383px; background: url("images/sliderbottom.png") no-repeat scroll center bottom transparent; margin: 30px 0; }
and
media="all" #heading { color: #CCCCCC; font-size: 35px; margin: 40px auto; text-align: center; width: 700px; font-weight: 100; }
October 9, 2014 at 4:31 am #185866Marc2412
ParticipantSo I guess I can’t fix it?
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.