Forum Support

Shape 5
March 28, 2024, 05:05:43 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Responsive images in articles  (Read 403 times)
rowanwins
Jr. Member
**
Offline Offline

Posts: 11



« on: November 07, 2012, 04:16:14 PM »

Hi guys,

Thanks for a great template. I just had a question about how to make images contained in articles responsive.

I've normally layout my articles in a table but when I do this it all goes a bit crazy on mobile devices, the image stays the same size but the text just get next column gets all squished.

If I dont have a table the image stays the same size but the text get resized so its smaller.

Im sure you guys must have a better way where the image resizes Smiley

Thanks in advance!

Rowan
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: November 08, 2012, 08:48:13 AM »

Hello,

I'm not sure what your question is? A table won't work well with responsive designs and is not commonly used anymore. If you want the images to resize you need to do them outside of a table.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
rowanwins
Jr. Member
**
Offline Offline

Posts: 11



« Reply #2 on: November 08, 2012, 04:08:43 PM »

Hi Mike,

Well that answers part of my question, tables & responsive = bad!

So currently I have an article with an image in it
http://bullant.rldesign.net/about2.html

When I resize the page the image stays the same size and the text all moves around it. Ideally I'd like the images in my articles to resize on the fly, like they do in the image slider on the demo homepage...

Perhaps this is because my image is within the same para as my text rather than just sitting on the line above or below?

Am I making any more sense?

Thanks
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #3 on: November 09, 2012, 08:56:57 AM »

Hello,

All a responsive image will do is make sure that it doesn't become larger than the div that contains it, ie: max-width:100%

if you want it to keep it's proportions you need to switch the image to a percentage based width. You currently have it set to 290px and it will always stay that width until it reaches the width of the surrounding div.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.