Jump to content

Recommended Posts

I've built a dynamic list using .JS and HTML similar to the code of the following line....

 

        cellHtml += '                <input class="myButton1 w_50p h_70 margin_top_20px" onclick="' + onClickType2 + '" type="button">';

 

 

--------------------------

The problem is after getting about 7 or more rows built.... only on the IPAD I get images like the attached where about 2 out of the 7 lines the button images overlap with its own image....  It looks fine on my other safari browsers and the IPhone.  For the safari browsers these are .PDF images to get the highest quality.

 

Has anyone seen issues like this?  Any other vector images that people recommend to use?

 

Thanks in advance
 

post-133784-0-30673200-1367978681_thumb.jpg

Edited by phpjayx
  • 3 weeks later...
  • 2 weeks later...

Maybe I just don't have the right tools.... I'm using Adobe Illustrator.  Whenever I try to save my vector images as a PNG.... the quality goes way down and is somewhat distorted.

 

If PNGs are working well for you, showing up with a high quality on IPADs or Iphones, what settings or method are you using to save them at a high quality?

So I'm attempting it another way... with a PNG like mentioned... starting off with a larger high quality image.

Looking at some web references it looks like this should load in the image... but nothing happens

My debugger shows the image B1.png is loading... but I don't see it.  Is the sizing messing something up. 

 

.myButtonA {
    background:url(/B1.png) no-repeat;
    margin:0;
    padding:0;

width: 14%;

height: 14%;

    border: none;
        
}
 

Edited by phpjayx
I'm using Adobe Illustrator.

 

 

Do you have photoshop? Just used photoshop.

 

My debugger shows the image B1.png is loading... but I don't see it.  Is the sizing messing something up.

 

 

Did you link the image?

 

Did you put that CSS code in @media query:

@media screen and (max-device-width: 480px) {
.myButtonA {
    background:url(../path/B1.png) no-repeat;
    margin:0;
    padding:0;
    width: 14%;
    height: 14%;
    border: none;    
}
}

/* iPhone (portrait) ----------- */
@media screen and (max-device-width: 320px) {
.myButtonA {
    background:url(../path/B1.png) no-repeat;
    margin:0;
    padding:0;
    width: 14%;
    height: 14%;
    border: none;
}
}

to test it out first?

Edited by Sam46

I do have photoshop and Illustrator.  I've used both, but the last one I saved B1.png with was Illustrator.

 

I did not know about the @media query option.  I will have to learn a bit about that.  The attached pic is what I was trying to use.post-133784-0-36372200-1371526854_thumb.png

yea... tried that.. still no luck.

The resizing just doesn't seem to work.  Even if I try to assign a specific pixel size to the image in CSS.

 

The button just shows up as being empty.

 

Any other suggestions on code to try out? 

 

This seems like it should be so simple but I can't fix this darn thing.

Edited by phpjayx
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.