PHP code example of adilab / css

1. Go to this page and download the library: Download adilab/css library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

adilab / css example snippets




use Adi\Css\Css;

$css = new Css('display: inline-block;margin-right: 10px;min-width: 150px;');
$css->set('width: 20px');
$css->set('color', '#ff0000')->set('background-color: #ccc');

echo "<div style='{$css}'>Hello world</div>";