473,382 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

thumbnails

Ken
I am in the process of designing my first web-site, and am having a problem
with my picture gallery. My thumbnails are all different sizes, I would
like them to be one size. The manual does not address this situation.
Where did I go wrong?
Jul 20 '05 #1
5 3651
Ken wrote on 21 jul 2003 in comp.infosystems.www.authoring.stylesheets:
I am in the process of designing my first web-site, and am having a
problem with my picture gallery. My thumbnails are all different
sizes, I would like them to be one size. The manual does not address
this situation. Where did I go wrong?


<style>
..thumbnails {width:80px;height:60px;margin:5px;}
</style>
.......
<img src=".." class="thumbnails">
<img src=".." class="thumbnails">
<img src=".." class="thumbnails">
.......

btw, what manual are you talking about ?
css is learned by looking at examples and documentation.

.... and reading this NG ;-)

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2
Ken wrote:
I am in the process of designing my first web-site, and am having a
problem
with my picture gallery. My thumbnails are all different sizes, I would
like them to be one size. The manual does not address this situation.
Where did I go wrong?


Err... you didn't specify the same size for all the thumbnails in your image
editor?

--
David Dorward http://david.us-lot.org/
Jul 20 '05 #3
On Sun, 20 Jul 2003 18:51:30 -0500, "Ken" <ke****@worldnet.att.net>
wrote:
I am in the process of designing my first web-site, and am having a problem
with my picture gallery. My thumbnails are all different sizes, I would
like them to be one size. The manual does not address this situation.
Where did I go wrong?


Do you mean you don't know how to do this in HTML?

Are you using any software to process your photos? They should be
resized and optimized to become thumbnails. You can specify the same
width and height for them, but it's best to do that only if they're
already mostly the same dimensions. Don't just set small dimensions on
a large photo, because the page will take forever to load.

If you really mean CSS, there's no reason that I know of to set the
width and height of your images with CSS when you can do it just as
easily in HTML.

Ian
--
http://www.aspipes.org/
http://www.bookstacks.org/
Jul 20 '05 #4
In article <Xn********************@194.109.133.29> in
comp.infosystems.www.authoring.stylesheets, Evertjan.
<ex**************@interxnl.net> wrote:
Ken wrote on 21 jul 2003 in comp.infosystems.www.authoring.stylesheets:
I am in the process of designing my first web-site, and am having a
problem with my picture gallery. My thumbnails are all different
sizes, I would like them to be one size. The manual does not address
this situation. Where did I go wrong?


<style>
.thumbnails {width:80px;height:60px;margin:5px;}
</style>


This is really not good advice, for two reasons:

(1) most browsers don't give very good results when resizing
pictures.

(2) having the browser resize a picture wastes download time.

A MUCH better approach, really the only reasonable approach, is for
the author to use an image editor to make the thumbnails the desired
size before uploading them.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #5
Stan Brown wrote on 21 jul 2003 in
comp.infosystems.www.authoring.stylesheets:
<style>
.thumbnails {width:80px;height:60px;margin:5px;}
</style>


This is really not good advice, for two reasons:

(1) most browsers don't give very good results when resizing
pictures.

(2) having the browser resize a picture wastes download time.

A MUCH better approach, really the only reasonable approach, is for
the author to use an image editor to make the thumbnails the desired
size before uploading them.


1
It is a bit beside the question as the question was a stylesheet solution
(NG!) to different thumbnail sizes, it does not say the src'es where not
thumbnails.

2
It sometimes is not a waste of download time at all, since it can be a
very visual way of preloading, even if the original is 400x300px or so.
Even vertical images, though distorted as horizontal thumbnails, are
easily recognisable, a thumbnail is nearly never a good picture and it
doesn't need to be:

=============

<style>
..thumbnails {width:80px;height:60px;margin:5px;}
</style>

<img src="empty.jpg" class="big" id="bigimg"><br>

<img src="a.jpg" class="thumbnails"
onmouseover="bigimg.src=this.src">

<img src="b.jpg" class="thumbnails"
onmouseover="bigimg.src=this.src">

===========

This specific code not tested, it is the idea.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Lemming | last post by:
Hi, I'm putting together a website for a local estate agent. One of the things they want to do is upload property descriptions/prices/etc. plus a picture of the property which is for sale.
6
by: c d saunter | last post by:
Greetings All, In Widows Explorer there is a thumbnail view, where you see images as thumbnails. Applications such as MS Office and OpenOffice, when installed, cause their respective filetypes to...
4
by: Rednelle | last post by:
Greetings all, As a newbie, using Access 2000, I would appreciate advice on the best way to include pictures. I have developed a 'Home Inventory' database which can include jpeg thumbnails of...
3
by: Vagabond Software | last post by:
I'm trying to display thumbnail images in a Listview that look more like the Windows thumbnail view. Everything is working pretty good, but my thumbnails are decidedly not like the Windows...
1
by: Espen Evje | last post by:
Hi, I am trying to present the images in a folder as thumbnails in a dynamically created asp:table. I however do not want to save the thumbnails to disk, only show the images in this folder as...
6
by: Rich | last post by:
Hello, I want to simulate the dynamic thumbnail display of Windows Explorer (winxp) on a form or pannel container. If I place a picture box on my container form/pannel and dimension it to the...
4
by: Barely Audible | last post by:
Guys I was wondering if it was possible to have a js file that, when the page loaded, it automatically generated a a set of thumbnails from directory of the page on the web server? Or would...
5
by: JJ | last post by:
I have a gallery-like application. (The gallery will be actually presented in Flash, but the management (cms) of the images will be in asp.net. ) My question is, is it ok to create Thumbnail...
1
by: iswar | last post by:
hi friends asp.net(2.0) c# i am trying to create an image gallery in which all the uploaded image are converted into thumbnails and i want to bind these thumbnails into gridview. and on clicking...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.