4 replies [Last post]
kohme
kohme's picture
Offline
newbie
Last seen: 3 years 6 weeks ago
Timezone: GMT-5
Joined: 2011-09-08
Posts: 3
Points: 5

I need to vertically center align my images. The image sizes are not consistent in size, the max height is 320px, but there is no min height.

I am looking to align the six thumbnails on this page:

http://www.toolmarket.com/catalog-air-conditioning_39.aspx

I do not have access to the HTML, only the CSS.

kohme
kohme's picture
Offline
newbie
Last seen: 3 years 6 weeks ago
Timezone: GMT-5
Joined: 2011-09-08
Posts: 3
Points: 5

I should add that is works

I should add that is works fine in Firefox but not IE.

vikramrandhawa
vikramrandhawa's picture
Offline
newbie
Chandigarh
Last seen: 3 years 2 weeks ago
Chandigarh
Timezone: GMT+5.5
Joined: 2011-09-28
Posts: 6
Points: 6

Just Use the Valign Property

Just Use the Valign Property of the tag..
Like If we have Image Then use the following code.

<image src="abc.jpeg" alt="Image" valign="center"/>
Images will display at the center.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 weeks 1 day ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2037
Points: 2259

vikramrandhawa wrote: Just

vikramrandhawa wrote:

Just Use the Valign Property of the tag..
Like If we have Image Then use the following code.

<image src="abc.jpeg" alt="Image" valign="center"/>
Images will display at the center.

It seems that you've been giving really bad advice. Just considering this thread; first, there is no &ltimage> tag, next there is no "center" definition for the valign attribute.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 weeks 1 day ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2037
Points: 2259

kohme wrote:I need to

kohme wrote:

I need to vertically center align my images. The image sizes are not consistent in size, the max height is 320px, but there is no min height.

I am looking to align the six thumbnails on this page:

http://www.toolmarket.com/catalog-air-conditioning_39.aspx

I do not have access to the HTML, only the CSS.

I cannot view the page.

Quote:

Unsupported Browser Detected

We have detected that you are using Opera 9.80. For the best browsing experience, please update to one of this site's supported browsers:

Why turn me away? Besides I'm using Opera 11.51. Personally, I'd do away with the browser sniffer.

Edit - Hmm. Looks like I can get in now. Weird, man. Weird. Tongue

I think I'd do away with the height on the boxes. You'll see why if you increase the text size.