473,395 Members | 1,456 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,395 software developers and data experts.

Interesting dilemma....image sizing problem

Considering the code below.

Adapting this part of the code from meyerweb.com to my own use, I was
playing around with some values and came up with an interesting result I
like.
Copy and paste the code and try it out and you'll see what I mean.
The problem is, somehow in the coding, my thumbnails can not be presented as
they are given.
The dimensions of the thumbnails are totally dependent upon the fixed value
of the height in the first line.
I would like to show the thumbnails in their original sizes, but can't seem
to figure it out.
Using the code as is presents problems for showing the thumbnails as they
should be.
Setting a fixed height and width, causes some images to be shown out of
whack.
What can be done to correct this problem?
div#links { width: 166px; height:600px; font: 13pt Arial, Verdana,
sans-serif; }
div#links a {display: block; text-align: left; font: bold 1em Arial,
sans-serif;
padding: 5px 5px; margin: 0 0 1px; border-width: 0;
text-decoration: none; color: #FFC; background: #F44;
}
div#links a:hover {color: #F11; background: #AAA;
border-right: 5px double white;}

div#links a img { height:0px; width:0px; border-width: 0;}
div#links a:hover img { width:100px; height:60px;}

<div id="links">
<a href="#">Bar Red<img src="images/thmb001.jpg"></a>
<a href="#">Cat's Eye Nebulae<img src="images/thmb002.jpg"></a>
<a href="#">Magellanic Cloud<img src="images/thmb003.jpg"></a>
</div>
Jul 21 '05 #1
0 1405

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

Similar topics

4
by: Mimo Zus | last post by:
I'm hoping that someone can explain what's going on; better yet provide a workaround. I'm designing a centered CSS site based on a 550 pixel wide vertical background image. Onto this background...
3
by: coolsti | last post by:
I need some help here. I am making an application which allows a user to look at a series of picture files one at a time, and enter the outcome of various visual tests to a database. The...
5
by: BWIN | last post by:
I am the owner of a very large scale member-base website and the members are having trouble re-sizing there pics to create headshots. The headshots are supposed to be 175 x 175 pixels exactly. We...
5
by: KiwiBrian | last post by:
I wish to place an image of a word of text in the middle of a sentence, but need to adjust the vertical position of the image so that it looks inline with the text. I have tried unsuccesfully to...
3
by: tedqn | last post by:
I'm using VS 2005. When user selects a image from the FileListBox, the code is PictureBox.ImageLocation = sFullPath PictureBox is set to AutoSize. When the newly loaded image is smaller...
4
by: John Smith | last post by:
I have a continuous form. there is a command button with the following code for the OnClick event: DoCmd.OpenForm "frmPlants", , , "PlantsID =" & Me!PlantsID I click the button and frmPlants...
6
by: RoseW | last post by:
This is a collection of images with its own style sheet to create the hover over the thumbnail and the larger image appears. http://www4.webng.com/chesleyhs/images/planting/Planting.html Narrow...
6
by: Stephan Bourdon | last post by:
Hi, Your opinion please on the following subject: Is it acceptable to set the width and height of an image in ems or percents in CSS? The advantage for me is that images will scale up or down...
2
by: =?Utf-8?B?SmVmZlAtPg==?= | last post by:
I want to retrieve an image file (TIF) convert it to a bmp file and enable sizing. I know how to do the converting & sizing part, and store any atributes to file location in the webconfig, what...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.