www.webdeveloper.com
Results 1 to 3 of 3

Thread: Clear a floated element

Hybrid View

  1. #1
    Join Date
    Sep 2013
    Posts
    22

    Clear a floated element

    How to select a floated element?

  2. #2
    Join Date
    Mar 2011
    Location
    The Pleiades
    Posts
    31
    Good afternoon,

    You can use:
    Code:
    element 
    {
           clear: left; //values can be either left, right or both - depending on the floated elements which you want to clear. 
    }
    Kind regards,

    LC.

  3. #3
    Join Date
    Sep 2013
    Posts
    221
    Set the cssFloat property:

    Object.style.cssFloat="left|right|none|inherit"
    Return the cssFloat property:

    Object.style.cssFloat

    and the below is to select elements based on their style:

    $('*').filter(function() {
    return $(this).css('float') == 'left';
    });

    Hope this helps.
    strad solutionswww.stradsolutions.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles