Skip to content

undercloud/inlinecss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

inlinecss

Inline CSS Generator

##Install composer require undercloud/inlinecss

##Basic example

require 'vendor/autoload.php';

$css = new \Undercloud\InlineCss;

$css->color      = '#282828';
$css->lineHeight = 1.5;
$css->fontSize   = '36px';

echo '<h1 style="' . $css . '">Hello I\'m inline CSS</h1>';

or

echo '<style>' . $css('h1') . '</style>';

##Predefined properties

$css = new \Undercloud\InlineCss(
	array(
		'textAlign' => 'left',
		'display'   => 'inline-block',
		'position'  => 'relative'
	)
);

##Values For adding values use object assign

$css->color = '#282828';

or use function add

$css->add('color', '#282828');

About

Inline CSS Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages