Grow your CSS skills. Land your dream job.

issue with banner image(2000px)

  • # April 9, 2013 at 2:10 am

    Hi,

    i am using 2000px image for banner in wordpress website.. i need it always center in any resolution.

    before tried with **max-width:100%;** but height is reducing with that tag

    can you please help on this if you have stuffffffff;(

    thanks

    # April 9, 2013 at 3:08 am

    thats is what it should do with max-width it resizes the picture keeping the aspect ratio ,with the average screen resolution being at 1300px why would you use a 2000px image?

    # April 9, 2013 at 3:09 am

    what about the height of the **banner image** ?

    # April 9, 2013 at 8:05 am

    If the image could be used as a background image rather than directly in the HTML…this would be no problem.

    # April 9, 2013 at 8:06 am

    do you need the entire image to show on smaller resolutions, or just centered with left and right portions ‘chopped’ off? is this a background image?

    # April 9, 2013 at 8:13 am

    >just centered with left and right portions ‘chopped’ off?

    This I think

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".