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
    Jul 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need help for floating text

    Hi I'm rookie in coding with HTML so I need some help from you guys. I need to make floating text for my webpage from right to left and I don't know what i'm doing wrong, couse text is just not moving. Here are some my code.

    <div id="scroller_container">
    <div class="pointer" style="display: block-inline; width: 545px; height: 16px; clear: right"><div style="float: left; white-space: nowrap; padding: 0px 545px;">
    TESTTTTTTTTTTTTTTTTTTTTTT</div></div>
    </div><!-- /scroller_container-->


    <div class="clear"></div>
    </div>

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,950
    Thanks
    9
    Thanked 724 Times in 718 Posts
    There's nothing in what you've pasted that would move the text...

    You could try this with the marquee tag, or (better) use javascript to animate the text.

    Incidentally, block-inline in your css should be inline-block.
    Use the W3C HTML Validator and CSS Validator to check your code and Firebug to see what css is applied to an element
    Read Steve Krug's book Don't Make Me Think - essential reading on web usability
    I don't recommend much, but I do recommend Clook for UK web hosting

  • #3
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If I use this <marquee>This text will scroll from right to left</marquee>, how can I change the position in website of this float?

  • #4
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,950
    Thanks
    9
    Thanked 724 Times in 718 Posts
    It's not very clear exactly what you mean - do you mean how do you position it on the page? Can't answer that without seeing your full html and css, or better, a link to your page.
    Use the W3C HTML Validator and CSS Validator to check your code and Firebug to see what css is applied to an element
    Read Steve Krug's book Don't Make Me Think - essential reading on web usability
    I don't recommend much, but I do recommend Clook for UK web hosting


  •  

    Posting Permissions

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