Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Vertical align and images
Old 01-11-2007, 03:21 PM Vertical align and images
Super Talker

Posts: 133
Name: Jess Weiss
Location: Massachusetts
Trades: 0
I'm trying to vertically align some images that are sitting in a row:

http://www.jessweiss.com/mab/cha.html

I'd like the images that are shorter, (ie: row 2 pic 2 and row 3 pic 3) to align vertically, rather than at the top (IE) or at the bottom (Firefox). I tried placing a vertical-align tag in img, but it only seemed to help in Firefox, not IE.

Any thoughts? TIA!
__________________
"If you worried about falling off the bike, you'd never get on it" - Lance Armstrong

"The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues." - Elizabeth Taylor
lynnema is offline
Reply With Quote
View Public Profile Visit lynnema's homepage!
 
 
Register now for full access!
Old 01-11-2007, 04:02 PM Re: Vertical align and images
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Vertical align only works with TEXT.

I also noticed you are not closing your <img> tags correctly, there is no </img> end tag.

You really need to put a proper DOCTYPE on your pages if you expect to have any luck getting CSS to work properly.

CSS - there is no such thing as float:top. That "vspacer" div is unnecessary, use padding and margins to space out your lists.

Your #pics ul .. needs only to be #pics.. it's already defining a ul. However, given that you are re-using #pics.. it MUST be a CLASS rather than an ID. ID's must be unique, you cannot re-use them within a document.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-11-2007, 04:15 PM Re: Vertical align and images
Banned

Posts: 905
Name: Travel Agent
Trades: 0
I agree with LadynRed about your present coding errors -- however, you can use this code to do what you're trying to accomplish ... this is strictly a "go-by" code, which you'll need to input your domain name and image names:

<style type="text/css">

img.baseline { vertical-align: baseline; }
img.sub { vertical-align: sub; }
img.super { vertical-align: super; }
img.top { vertical-align: top; }
img.texttop { vertical-align: text-top; }
img.middle { vertical-align: middle; }
img.bottom { vertical-align: bottom; }
img.textbottom { vertical-align: text-bottom; }
</style>

<title>Place Title Text Here</title></head>

<body><h1><p>Place Your Text Here</p></h1>

<b>vertical-align:baseline</b><img class="baseline" src="http://www.yoursite.com/images/image name.gif">
<b>vertical-align:sub</b><img class="sub" src="http://www.yoursite.com/images/image name.gif">
<b>vertical-align:super</b><img class="super" src="http://www.yoursite.com/images/image name.gif"><hr/>
<b>vertical-align:top</b><img class="top" src="http://www.yoursite.com/images/image name.gif">
<b>vertical-align:text-top</b><img class="texttop" src="http://www.yoursite.com/images/image name.gif">
<b>vertical-align:middle</b><img class="middle" src="http://www.yoursite.com/images/image name.gif"><hr/>
<b>vertical-align:bottom</b><img class="bottom" src="http://www.yoursite.com/images/image name.gif">
<b>vertical-align:textbottom</b><img class="textbottom" src="http://www.yoursite.com/images/image name.gif"></body></html>
travelagent is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Vertical align and images
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11584 seconds with 12 queries