CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 24th, 2012, 12:28 AM
DesignLady94 DesignLady94 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 26 DesignLady94 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 11 m 52 sec
Reputation Power: 0
New Member - Container background not showing in the iPhone 5 and other mobile devices

The parchment container background (wrap) on this site is not showing up on the iPhone 5, Skyfire Android and possibly other devices.

debbierking.com/hobbitnews

I am hoping someone can help me out here....this is my first attempt at responsive design. Here's my code:

#wrap {
background: url(../img/wrap-bg.jpg) repeat;
padding-top: 25px;
}


#wrap:after {
content: ".";
visibility: hidden;
display: block;
height: 0;
clear: both;
}

Reply With Quote
  #2  
Old September 24th, 2012, 09:33 AM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
add
Code:
#wrap{overflow:hidden}

see how that goes. Just make sure you don't declarate any height or width to #wrap or it will be cut off
__________________
PHP Tutorial

Reply With Quote
  #3  
Old September 24th, 2012, 11:17 AM
DesignLady94 DesignLady94 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 26 DesignLady94 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 11 m 52 sec
Reputation Power: 0
Aeternus,

I can't...using overflow:hidden crops off the date ribbons on the left. That's why I used the pseudo element :after instead.

Reply With Quote
  #4  
Old September 24th, 2012, 11:26 AM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
Instead of that, add an extra element to your container just before the bottom.
oldschool. (instead of pseudo stuf some browsers prolly don't understand)

Code:
   <div class="clear"></div>
</div> <!-- closing tag #wrap -->


div.clear{height:0;clear:both;}


Let me know if it works for you.

P.s. Keep in mind browser caching when tweaking. add a $_GET variable to the stylesheet just in case.
stylesheet.css?v=123

Last edited by aeternus : September 24th, 2012 at 11:29 AM.

Reply With Quote
  #5  
Old September 24th, 2012, 11:34 AM
DesignLady94 DesignLady94 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 26 DesignLady94 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 11 m 52 sec
Reputation Power: 0
I just tried this and the clear class attached to the wrap container in the .php file completely eliminates all the content and background between the header and footer. Did I not do this right?

Reply With Quote
  #6  
Old September 24th, 2012, 12:11 PM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
Quote:
Originally Posted by DesignLady94
I just tried this and the clear class attached to the wrap container in the .php file completely eliminates all the content and background between the header and footer. Did I not do this right?

I don't see it on your page, but I am certain you made an error when that happens.

I will clarify it a bit more. If your wrapper div has no dimensions (like a set width or height) it normally fits its size to the inner elements. Unless these elements, mainly the last one is floated. To deal with this problem you can either use overflow:hidden or a clear div (and for modern browsers pseudo stuff). To demonstrate this clear div:

Code:
<div id="wrapper">
            <div class="floated"></div>
            <div class="floated"></div>
            <div class="floated"></div>
            <div class="clearfix"></div><!-- added to give the wrapper layout -->
        </div>


So in other words right before the closing tag you place this clearfix div to compensate for floated things.

Easy test btw to see if you wrapper has layout, is to give it a pink color and see if that shows up on the iphones If it does show up but the image not, something is wrong with your image.
In old IE browsers (ie5/6) a problem could be that you didnt used a space between the ) and repeat attribute like so:
Code:
url(../images/bla.gif)repeat-x;
 instead of
url(../images/bla.gif) repeat-x;

Also it might help if you add these guys ' '
Code:
url('../images/bla.gif') repeat-x;

Last edited by aeternus : September 24th, 2012 at 02:09 PM.

Reply With Quote
  #7  
Old September 24th, 2012, 01:44 PM
DesignLady94 DesignLady94 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 26 DesignLady94 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 11 m 52 sec
Reputation Power: 0
Aeternus, you are *the best*! Thanks so much...so far everything is working okay. I just downloaded iOS 6 to my phone and it seems to be working okay there. Just to make sure, I'll check with my friend who just got the iPhone 5 ...it wasn't working on his the other day. Thanks so much for your helpful explanations.

Reply With Quote
  #8  
Old September 24th, 2012, 02:08 PM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
Quote:
Originally Posted by DesignLady94
Aeternus, you are *the best*! Thanks so much...so far everything is working okay. I just downloaded iOS 6 to my phone and it seems to be working okay there. Just to make sure, I'll check with my friend who just got the iPhone 5 ...it wasn't working on his the other day. Thanks so much for your helpful explanations.


No problemo! happy coding!

Reply With Quote
  #9  
Old September 25th, 2012, 03:16 PM
DesignLady94 DesignLady94 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 26 DesignLady94 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 11 m 52 sec
Reputation Power: 0
So apparently the background is still not showing up on the iPhone 5, which is iOS6-based. Yet its showing up on my iPhone 3G, which I just updated to iOS6. That doesn't make any sense to me...any ideas?

Reply With Quote
  #10  
Old September 25th, 2012, 03:32 PM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
Hi i cant realy respond good ( phone) because i ruined my computer. Anyway did you try the pink backgriund tip? And the adding of the getvariable? Hope.i have a new mats soon for a new comp.

Reply With Quote
  #11  
Old September 25th, 2012, 03:37 PM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
oh can you maybe also try to directly view that image on that device. Sometimes the image is corrupt. Some browsers still show it others dont. So check if ir shows when targeted directtly if not that is the problem. Happend to me 2 times in 12 years

Reply With Quote
  #12  
Old September 25th, 2012, 05:30 PM
DesignLady94 DesignLady94 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 26 DesignLady94 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 11 m 52 sec
Reputation Power: 0
Quote:
Originally Posted by aeternus
Hi i cant realy respond good ( phone) because i ruined my computer. Anyway did you try the pink backgriund tip? And the adding of the getvariable? Hope.i have a new mats soon for a new comp.


Where would I add get variable? I'm pretty limited on js skills. Why do I need to do pink..the parchment bg is pretty easy to see.

Sorry to hear about your computer...thanks for helping.

Reply With Quote
  #13  
Old September 25th, 2012, 05:43 PM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
Hmm this confuses me. You say you see the parchement... On that iphone? I thought it was not showing up. I use pink jus temporary so i can see on that device that ddevice where the image is not showing wether its the image or the container that screws up.

The get variable you can add to any link to a resource to force the browser to get a new version. Like so:

src="css/my-awesome-stylesheet.css?version=5"

As you can see the link to the resource has a ?version appended that is a get variable with in this case a value of 5

Did you try to directly check the image? On the device that us not showing it. Sorry for my spellling these touchscreens sucl :-P

Last edited by aeternus : September 25th, 2012 at 05:45 PM.

Reply With Quote
  #14  
Old September 25th, 2012, 06:43 PM
DesignLady94 DesignLady94 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 26 DesignLady94 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 11 m 52 sec
Reputation Power: 0
I don't have an iPhone 5...a friend checked it and he told me it's not showing up.

Do you have any ideas on the other problem I posted about a couple of hours ago about the font glyphs not showing up?

Reply With Quote
  #15  
Old September 25th, 2012, 06:57 PM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
Quote:
Originally Posted by DesignLady94
I don't have an iPhone 5...a friend checked it and he told me it's not showing up.

Do you have any ideas on the other problem I posted about a couple of hours ago about the font glyphs not showing up?

I wanted to check that out but it wiser than i dont respond to new topics because i cant inspect the website (as in source code) . I wouldnt be able to really help with that adequately. Sirry

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > New Member - Container background not showing in the iPhone 5 and other mobile devices

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap