Jump to content


Photo

Responsive image positioned over responsive image

responsive

  • Please log in to reply
1 reply to this topic

#1 biggieuk

biggieuk

    Advanced Member

  • Members
  • PipPipPip
  • 159 posts

Posted 03 May 2013 - 10:51 AM

I have setup a jsfiddle of what i'm trying to do:

 

http://jsfiddle.net/MgcDU/3936/

 

 

The image of the cat is my background image which resizes as the browser resizes.

 

The ball image is absolutely positioned over the cat. How can I get the ball image to resize and stay in the same position as it is my default?

 

Thanks for help with this



#2 theverychap

theverychap

    Advanced Member

  • Staff Alumni
  • 78 posts
  • LocationDevon, England

Posted 21 May 2013 - 10:19 AM

If i understand correctly, you want the ball to resize too?

 

http://jsfiddle.net/BG8F9/

 

I added a percentage width to the ball, it will scale with any resizing.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com