# Styling sheets
### General styling
If you want to change the general styling of your sheet (not cell or range specific), you can use the `->setStyle()` method or any of the other setters which can be found inside the export documentation.
    // Font family
    $sheet->setFontFamily('Comic Sans MS');
    // Set font with ->setStyle()`
    $sheet->setStyle(array(
        'font' => array(
            'name'      =>  'Calibri',
            'size'      =>  12,
            'bold'      =>  true
        )
    ));
### Styling with PHPExcel methods
It's possible to style the sheets and specific cells with help of PHPExcel methods. This package includes a lot of shortcuts (see export documentation), but also always the use of the native methods.
    // Set background color for a specific cell
    $sheet->getStyle('A1')->applyFromArray(array(
        'fill' => array(
            'type'  => PHPExcel_Style_Fill::FILL_SOLID,
            'color' => array('rgb' => 'FF0000')
        )
    ));
### Using HTML tags
Most of the HTML tags are supported.
    
        
        
Big title | Bold cell | Bold cell | Italic cell | > Inside the `view.php` config you can change how these tags will be interpreted by Excel by default.
### Using HTML attributes
Some of the basic styling can be done with HTML attributes. | Big title | Bold cell | Bold cell | Italic cell | Cell with width of 100 | Cell with height of 100### Styling through inline-styles
It's possible to use inline styles inside your view files. Most of the general styles are supported. | Cell> Inside the reference guide you can find a list of supported styles.
### Styling through external CSS file
Styling can be done through an external CSS file.
External css file:
    #cell {
        background-color: #000000;
        color: #ffffff;
    }
    .cell {
        background-color: #000000;
        color: #ffffff;
    }
    tr td {
        background-color: #ffffff;
    }
    tr > td {
        border-bottom: 1px solid #000000;
    }
Table:
    
        {{ HTML::style('css/table.css') }} | Cell | Cell> Inside the reference guide you can find a list of supported styles.
> It's advised to include `` into the view to fix problems with UTF-8 encoding. |