align

API Methods

setTextAlignment

Attribute Names

data-text-alignment

Elements
    Properties
      Sizes
        SVG
        <img data-src="align.svg" class="iconic iconic-sm" alt="align">
        <img data-src="align.svg" class="iconic iconic-md" alt="align">
        <img data-src="align.svg" class="iconic iconic-lg" alt="align">
        
        Default Icon Font
        <span class="iconic iconic-sm" data-glyph="align-left" title="align left" aria-hidden="true"></span>
        <span class="iconic iconic-md" data-glyph="align-left" title="align left" aria-hidden="true"></span>
        <span class="iconic iconic-lg" data-glyph="align-left" title="align left" aria-hidden="true"></span>
        
        Bootstrap Icon Font
        <span class="iconic iconic-align-left iconic-sm" title="align left" aria-hidden="true"></span>
        <span class="iconic iconic-align-left iconic-md" title="align left" aria-hidden="true"></span>
        <span class="iconic iconic-align-left iconic-lg" title="align left" aria-hidden="true"></span>
        
        Foundation Icon Font
        <span class="fi-align-left iconic-sm" title="align left" aria-hidden="true"></span>
        <span class="fi-align-left iconic-md" title="align left" aria-hidden="true"></span>
        <span class="fi-align-left iconic-lg" title="align left" aria-hidden="true"></span>
        
        CSS

        Semantic SVG

        data-text-alignment

        Sets text alignment

        • left

          <img data-text-alignment="left" data-src="align.svg" class="iconic" alt="align" />
          
        • center

          <img data-text-alignment="center" data-src="align.svg" class="iconic" alt="align" />
          
        • right

          <img data-text-alignment="right" data-src="align.svg" class="iconic" alt="align" />
          
        Method name

        Options/Examples

        setTextAlignment(textAlignment)

        left
        center
        right

        Icon Font

        Iconic may be all about SVG, but it also comes with a killer font. For the full skinny, read our icon font and Bootstrap/Foundation guides.

        <!-- Default -->
        <span class="iconic" data-glyph="align-left" title="align left" aria-hidden="true"></span>
        <!-- Bootstrap -->
        <span class="iconic iconic-align-left" title="align left" aria-hidden="true"></span>
        <!-- Foundation -->
        <span class="fi-align-left" title="align left" aria-hidden="true"></span>
        
        • align-left

        • align-right

        • align-center

        was copied for yah