Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

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 Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old February 10th, 2005, 10:23 PM
DorkRawk DorkRawk is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 173 DorkRawk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to DorkRawk
css vertical-align problems

I have been having issues with the vertical-align: bottom; tag. It's simply not working. So far I've only looked at the page in Firefox, but that shouldn't be an issue. I am trying to use it to put text at the bottom of a <div> Is there a better way of doing this or am I doing something wrong?

CSS
Code:
#head {
	background: url(./images/title.gif) 0 0 no-repeat;
	height: 100px;
	max-height: 100px;
	clear: both;
	font-weight: bold;
	color: #660000;	
	vertical-align: bottom;
	font-size: 30px;
	text-align: right;
}


html
Code:
<div id='head'>

Timeless Photography - By Kelly
</div>  <!-- for head -->

Reply With Quote
  #2  
Old February 11th, 2005, 03:15 PM
yatesy87 yatesy87 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: St. Helens, Merseyside, England
Posts: 34 yatesy87 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: css vertical-align problems

try

Code:
<div id="head">


Reply With Quote
  #3  
Old February 16th, 2005, 01:37 AM
rehfeld_dot_us rehfeld_dot_us is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 825 rehfeld_dot_us User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: css vertical-align problems

i think vertical-align is only for inline elements, like span for example.

even at that, im pretty sure its not what you want. its only an alignment for the line, not the whole container. think of it like like the <sup> or <sub> tags but just more controll.

if you want to align something at the bottom of a container, either use margin or padding.

if you dont know the height of the box, then use absolute positioning so you can just do

position: absolute;
bottom: 0px;

Reply With Quote
  #4  
Old February 24th, 2005, 04:25 AM
jam wil jam wil is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Canada, eh?
Posts: 364 jam wil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: css vertical-align problems

I always use it with tables and I've never had a problem. I put it on the <td> tag which I believe is a block level tag. I've never had a problem with it.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > css vertical-align problems


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 1 hosted by Hostway