Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Help with CSS background image for IPHONE SAFARI

Help with CSS background image for IPHONE SAFARI
Thread Tools
Fresh-Faced Recruit
Join Date: Sep 2007
Status: Offline
Reply With Quote
Sep 18, 2007, 12:03 AM
 
Hello all
Im having trouble with a site that I built not working correctly on the iphone.
Everything works great on safari (Desktop)..but when I view the site on the iphone...the background image does not resize (thats what Im thinking is happening).
This is the CSS code I use to create the main container:

#container {
margin: 0 auto;
text-align: left;
padding: 0px;
background: url(/images/mainbg.jpg) repeat-y;
width: 750px;
height: 670px;
position: absolute;
}

The image mainbg.jpg has a height of 1 pixel..and just repeats to create illusion of a background container image. However..on the iphone this image does not seem to RESIZE and looks very very awkward with the rest of the website that gets resized. I hope this makes sense. Any help?!? Thanks!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:32 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2