SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 10th, 2003, 01:40 AM
DrWorm's Avatar
DrWorm DrWorm is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2002
Location: Queensland, Australia
Posts: 545 DrWorm User rank is Sergeant (500 - 2000 Reputation Level)DrWorm User rank is Sergeant (500 - 2000 Reputation Level)DrWorm User rank is Sergeant (500 - 2000 Reputation Level)DrWorm User rank is Sergeant (500 - 2000 Reputation Level)DrWorm User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 1 h 36 m 46 sec
Reputation Power: 14
CSS Vertical Alignment

I have this code on a page...

<div id="nav-level1">
<img src="images/image.gif" width="84" height="24" border="0" />
<span class="level1"> <a href="#">Home</a> | <a href="#">About Us</a> | <a href="#">Research</a>
| <a href="#">Industry</a> | <a href="#">Media</a> | <a href="#">Education</a>
| <a href="#">Enquiries</a></span>
</div>

Through CSS, the div has been given a height of 24. The span has had it's font size set to xx-small. Both the IMG and SPAN object are set to float left.

My problem is that I want the contents of SPAN to sit along the bottom edge of the DIV instead of along the top. I've tried vertical-align baseline for the DIV and SPAN but it had no effect.

Any ideas what the correct way to do this is?
__________________
Ooh, they have the Internet on computers now!

Reply With Quote
  #2  
Old June 10th, 2003, 06:46 PM
adios adios is offline
Senior Citizen
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019 adios User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
vertical-align is for text alignment within one line, not within a block-level element. Here's a popular workaround, until W3C get this one standardized:

http://www.wpdfd.com/editorial/wpd0103.htm#toptip

Reply With Quote
  #3  
Old June 10th, 2003, 07:25 PM
DrWorm's Avatar
DrWorm DrWorm is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2002
Location: Queensland, Australia
Posts: 545 DrWorm User rank is Sergeant (500 - 2000 Reputation Level)DrWorm User rank is Sergeant (500 - 2000 Reputation Level)DrWorm User rank is Sergeant (500 - 2000 Reputation Level)DrWorm User rank is Sergeant (500 - 2000 Reputation Level)DrWorm User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 1 h 36 m 46 sec
Reputation Power: 14
Thanks for the link Adios. It gave me some new ideas but none successfully produced what I needed.

I've decided that's it's possible to DIV the page up differently to produce the effect I want rather than trying to vertically align an element.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS Vertical Alignment


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway