Jump to content

Resize Images for iPad/iPhone?


twilitegxa

Recommended Posts

I have a page at: http://southfloridabridals.com/, and I'm trying to make it compliant with iPads and iPhones, but the header images (named left1.png), isn't resizing for the smaller screen size. Attached is a screenshot of what it looks like in an iPad or iPhone. Can anyone tell me how i can fix this problem?

 

[attachment deleted by admin]

Link to comment
Share on other sites

use this:

 

 

#left_image {
    float: left;
    padding: 0;
    width: 100%;
}

div#top {
    background-color: #FFFFFF;
    overflow: hidden;
    width: 100%;
}

 

It should work pretty well ::)

Link to comment
Share on other sites

well it should work if you make sure you remove the fixed height that was there first

 

so from

div#top {
    background-color: #FFFFFF;
    height: 200px;
}

to

div#top {
    background-color: #FFFFFF;
    overflow: hidden;
    width: 100%;
}

 

Otherwise clear your browser memory and depending on your host, it can take a while in case they are caching stylesheets.

Otherwise say what browser you use.

 

_edit, i also noticed you websites is loading extremly slow, haven't looked at the cause, but it took 3 seconds

 

 

EDIT: remove the FIIXED HEIGTH at line 68 of your stylesheet, don't get sloppy, you are setting styles for #top at line 68 and 78 !! reduce it to 1 place

Link to comment
Share on other sites

Also i can recommend to use a sprite for all those little buttons, at the moment you have 50+ header requests that is quite a lot. I think it can easily be reduced to around 25. makes your pages load a bit faster.

Link to comment
Share on other sites

First of all did it work the after removing the fixed height? (i bet it did  ;))

 

Well, the best thing would be to get familiar with the concept of sprites by following a tutorial.

in a nut shell: Sprites are big images, that have a lot of small images inside them. This for instance what google uses as sprite:

nav_logo37.png[/img]

Now the trick is that you can target certain positions of that large image.

 

maybe this is a nice tutorial, never seen it , but it was the first google gave: http://websitetips.com/articles/css/sprites/

 

If you want you can post a request on an article at my blog, and I'll do an article on it if the previous was not sufficient.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.