Jump to content

Recommended Posts

hi,

 

I need to put together the following:

 

http://www.freemanholland.com/cow/homepage.jpg

 

I eventually need to be able to administer the images in the back-end but for now i just want to put it together..

 

The page will remain the same in terms of layout, the images wrapper will be elastic so it spreads across the screen.. I had a go at doing it with one image:

 

http://www.freemanholland.com/cow/public_html/

 

But i need to have the page looking like the image i have provided above..

 

How can i do this?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/209280-how-can-i-display-this/
Share on other sites

Thanks mate..

 

Well is there a way i can do it with CSS? If you look at the images they are all different shapes and sizes..

 

If they were the same height but different widths it would be quite simple which is what i have now:

 

http://www.freemanholland.com/cow/public_html/

 

But i need to have it like this:

 

http://www.freemanholland.com/cow/homepage.jpg

 

Can you help?

 

And i didn't design the site :)

With just CSS I don't think you can achieve that dynamically. You can however paste together all the images in photoshop and just add dynamic post excerpts.

 

Using php and js I would first create an upload page, to upload my images to a "homepage_images" folder and create thumnails of those images to a thumbnails folder and as well insert their path into a DB table.

 

Then you can have for instance a column that's 300px wide, retrieve thumbnail image paths from the db table and generate thumbnails 150x150px and float them left or right in that column.

 

But then you have the wider thumbnails. For those I would use getimagesize() when uploading images  to detect if the width of some are particularity wider and their height smaller (wide images usually measure that)  and set their thumbnail width to 300px. Also one 300px wide thumbnail should substitute for two 150px thumbnails.. so you'll need to detect if you have a wide thumbnail and set the MYSQL limit  -2.

 

Then just add more columns with different properties. That would be my approach, hope it makes some sense..

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.