Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Add Custom Float Class? Reply To: Add Custom Float Class?

#148642

Just did this is this correct my first go.

if($('#column-left').length > 0 && $('#column-right').length > 0){
        $('#column-left').addClass('col-lg-2');
        $('#column-left').addClass('pull-left');
        $('#column-right').addClass('col-lg-2');
        $('#column-right').addClass('pull-right');
        $('#content').addClass('col-lg-6');
    }