Pleaseee - Help me with this wordpress question!

5 replies
Hello guys,

I'm wondering if in the twentyten wordpress theme can you use as the background a very big image and make it fit on the screen depending on the resolution. So basically if the resolution is lower make the dimensions of the image smaller so it fits the screen.

Regards, Marian
#pleaseee #question #wordpress
  • Profile picture of the author SamirSM
    <img src="..." height="100%" width="100%"/>
    Set the image height and width to 100%.

    That should work I guess
    {{ DiscussionBoard.errors[3968557].message }}
  • Profile picture of the author michaeldoring
    I don't think its possible without coding up an algorithm, but I am likely wrong, so keep searching Google, please PM me if find an answer. I would love to know how to do this myself, without having to code up an IF statement.

    When I saw your post, I did try a combination of searches in Google and found no answer for you, sorry. However, If you can get the clients resolution size using PHP (some server-side, or JavaScript coding), you could write If statements based on resolution to use x size image, or to change the width, height parameters of the html img tag.

    Goodluck.
    {{ DiscussionBoard.errors[3968573].message }}
  • Profile picture of the author Anup Mahajan
    indihow has suggested a good solution however make sure that you test your installation with different resolutions to see that the image appears correct in all of them


    Anup
    Signature

    {{ DiscussionBoard.errors[3968673].message }}

Trending Topics