Grow your CSS skills. Land your dream job.

Aligment problem?

  • # July 3, 2009 at 8:26 am

    I`m using a twitter jquery plugin to get the latest tweets inside a div and i want to add " follow us on twitter " under the tweet but i can`t do this

    Code:
    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">




    latest tweets


    follow us on twitter


    this is a screenshot [img]http://img19.imageshack.us/img19/3889/37200970030am.png[/img]

    this is my code but i don`t know why ? when the plugin gets the tweets the anchor tag appears above it instead of under it ? so how can i solve this ?

    Rob
    # July 3, 2009 at 8:47 am

    the jQuery is probably appending it to the div #tweet, that means it appears after all the content in there already. See if there is a way to make it prepend.

    Have a look at these two links and you will see what I mean :)

    http://docs.jquery.com/Manipulation/append

    http://docs.jquery.com/Manipulation/prepend

    # July 3, 2009 at 10:20 am

    thanks but i`m not very good with Javascripts or jquery i had troubles to make those small scripts work :D so i have managed to solve the problem by CSS by addind 2 extra divs one which holds the anchor tag and one to hold the 2 2 divs (tweets) & (the div conatcins the anchor tag) and with positioning i managed to make exactly how i wanted :)

    i have another question if u can help me with it will be great i want to use Cufon too and i have linked the it in the header and the font.js file too but how can i add the Cufon.replace in the script tag in the header with the other 2 scripts ??

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".