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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

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
Trades: 0
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               |
 -------------------------
__________________

Please login or register to view this content. Registration is FREE
- Ramblings of an amatuer web designer.

Please login or register to view this content. Registration is FREE
- An online community for the positively childfree.
wazzupflow is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
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: 385
Name: Jamie Lewis
Location: UK
Trades: 0
Code:
position:relative;
bottom:20px;
Should work.

Jamie
__________________

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


Please login or register to view this content. Registration is FREE
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 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.89161 seconds with 12 queries