Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS - Move text up

    Hey guys i have some text that fits in 1 line BUT sometimes it becomes 2 lines and of course the div expands down but i want it to expand upwards....how do i hack that via css ?

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,628
    Thanks
    6
    Thanked 1,002 Times in 975 Posts
    Position that div absolutely with bottom as reference position inside another relative positioned element.

  • #3
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i got it like so....

    Code:
    font-size: 15px;
    	font-weight: bold;
    	margin-left: 15px;
    	position: absolute;
    	bottom: auto;
    but it aint working

  • #4
    New Coder
    Join Date
    Aug 2011
    Location
    OH, USA
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Shouldn't it be:

    Code:
    font-size: 15px;
    font-weight: bold;
    margin-left: 15px;
    position: absolute;
    bottom: 0px;


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •