PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Sep 30, 2020 4:53 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Sep 18, 2014 4:54 pm 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4434
Location: United Kingdom
I need to have a scroll box that shows large images.
These images will be shown on mobile only. so it needs to automatically a) fit the screen both height and width, and B, have the images in the DIV, auto fill the width of the screen (thus the height of the DIV should be the height of the image - whatever height it is on the device).

I then want the images - rather than scroll down, with an up/down scroll, to scroll right/left, so it goes off the page to the right.

However, having tried this, a) I cannot get it to go to the right, and b) I don't know how to set the DIV so it's not too wide. ie. don't set the div to 1000PX if only 2x 300px wide images are there.

This is a good way I can see to do a touchscreen swipe of images, left right.

Any good CSS options?

_________________
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group