Results 1 to 4 of 4

Thread: HTML code for float left ?

  1. #1
    SonnyCooL's Avatar
    SonnyCooL is offline HeeHa
    Join Date
    Jan 2010
    Location
    Melb/Malaysia
    Posts
    920
    Thanks
    250
    Thanked 92 Times in 78 Posts

    HTML code for float left ?

    Any one can teach me how to make my add to any button float to right (Home at left and add to any on right) ?

    below is my current code :
    PHP Code:
    <div class="nav">
            <ul>
                <li><a href="<?php bloginfo('url'); ?>">Home</a></li>
                <?php wp_list_pages('title_li'); ?>
                         <?php echo '<ul class="addtoany_list">'; if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>""html_wrap_close" => "</li>") ); if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>""html_wrap_close" => "</li>") ); echo '</ul>'?>
            </ul>
        
            <div style="clear:both;"></div>
        </div>
    thanks

  2. #2
    Charles's Avatar
    Charles is offline Senior Net Builder
    Join Date
    Dec 2008
    Location
    On the Bike
    Posts
    1,211
    Blog Entries
    5
    Thanks
    311
    Thanked 311 Times in 212 Posts
    What happens when you float the AddToAny button to the right? i.e.
    PHP Code:
    <div class="nav">
            <ul>
                <li><a href="<?php bloginfo('url'); ?>">Home</a></li>
                <?php wp_list_pages('title_li'); ?>
                         <div style="float:right;"><?php echo '<ul class="addtoany_list">'; if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>""html_wrap_close" => "</li>") ); if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>""html_wrap_close" => "</li>") ); echo '</ul>'?></div>
            </ul>
        
            <div style="clear:both;"></div>
        </div>

  3. Thanked by:

    bogart (8 February, 2011), SonnyCooL (2 December, 2010), Will.Spencer (19 February, 2011)

  4. #3
    SonnyCooL's Avatar
    SonnyCooL is offline HeeHa
    Join Date
    Jan 2010
    Location
    Melb/Malaysia
    Posts
    920
    Thanks
    250
    Thanked 92 Times in 78 Posts
    Thanks it work ...
    just wonder why previously doesn't work, no hard working enough

  5. #4
    keriii is offline Unknown Net Builder
    Join Date
    Apr 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I never try for floating a button ya but i know about text flow with marquee tag. i made button looks like floating with hide and show properties. i mainly work on .net so i have little knowledge about it. i learn so much with this code i will also try this from next time.

Similar Threads

  1. Only count the first backlink in the html code
    By tatetu in forum Promoting
    Replies: 11
    Last Post: 4 February, 2011, 20:44 PM
  2. how to do side float on wp ?
    By SonnyCooL in forum Blogging
    Replies: 4
    Last Post: 19 April, 2010, 08:52 AM
  3. html table code ....
    By SonnyCooL in forum Blogging
    Replies: 0
    Last Post: 2 March, 2010, 20:16 PM
  4. [Free] Win a copy of Left 4 Dead 2
    By texashiker in forum Contests
    Replies: 0
    Last Post: 29 September, 2009, 14:20 PM
  5. [WTS] Charm HTML PSD to HTML service
    By yangyang in forum Services
    Replies: 0
    Last Post: 10 December, 2008, 02:36 AM

Tags for this Thread

Bookmarks

Posting Permissions

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