Reply
New line of text on same line, old lines move upward?
Old 08-05-2007, 09:46 AM New line of text on same line, old lines move upward?
Novice Talker

Posts: 7
I hope I can explain this question clearly enough.

I'm working on the main headline for my blog, and as such, it will be dynamic; some headlines will be maybe 1 line long (shorter headlines) and some will be two or even three lines long.

What I was looking to do, was to have the containing box with the headline in it, stay the same size (same height) no matter how many lines the headline takes up. So if the blog post headline is only one line long, I want it 20px off the bottom of the containing box, if it's two lines long, I also want the bottom line 20px off the bottom of the containing box. In other words, when the headline is one line long, it will be 20px off the bottom. If two lines long, the first line moves upward, and the second line is 20px off the bottom, and so on.

(crude graphical representation below)

Is this even possible?
If not, I have another solution, but it wouldn't be the most ideal.

Can I do it all with CSS?

Heres my crude graphical representation:



Code:
 -------------------------
|                         |
|                         |
|                         |
|                         |
|                         |
|                         |  < box 300px tall
|One line headline        |
 -------------------------

 -------------------------
|                         |
|                         |
|                         |
|                         |
|                         |
|This headline is 2       |  < box 300px tall
|lines long               |
 -------------------------


 -------------------------
|                         |
|                         |
|                         |
|                         |
|This really long         |  < box 300px tall
|headline is three        |
|lines long               |
 -------------------------
__________________
Christopher-Scott.org - Ramblings of an amatuer web designer.
ChildFreeChoice.com - An online community for the positively childfree.
wazzupflow is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 08-05-2007, 10:16 AM Re: New line of text on same line, old lines move upward?
JamieLewis's Avatar
Pretty Much a Big Deal...

Latest Blog Post:
Gooie
Posts: 386
Name: Jamie Lewis
Location: UK
Code:
position:relative;
bottom:20px;
Should work.

Jamie
JamieLewis is offline
Reply With Quote
View Public Profile Visit JamieLewis's homepage!
 
Reply     « Reply to New line of text on same line, old lines move upward?
 

Thread Tools

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
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.12210 seconds with 12 queries