• Facebook
  • Mail

Viv Web Solutions

  • Home
  • Portfolio
  • Services + Sectors
  • About
    • Our Vision
    • Our Process
    • Leadership
    • Endorsements
  • Contact

Download the CSS-to-Inline Converter

You are here: Home » Tools » Download the CSS-to-Inline Converter

Thanks for your interest in the full CSS-to-Inline Converter script!

 

Download

Usage

The file is a stand-alone PHP class. The following instructions, as well as additional usage tips, can be found in the beginning of the class file itself.

Include this class in your script

require('include_path/CSStoInline.class.php');

You may pass the HTML and the CSS data into the class as variables holding string values…

$converted = new CSStoInline($html_string,$css_string,'path/to/output_file.html');

Or as external files somewhere on your machine…

$converted = new CSStoInline('path/to/email.html','path/to/email_stylesheet.css','path/to/output_file.html');

The converted HTML string will be saved at the file path you specified as the third argument when you instantiated the CSStoInline object.

Alternatively, the inline HTML string output can be found in the object property ‘output’. For instance:

print ( $converted->output );

Or, put the data in a new converted file:

file_put_contents ( 'path/to/converted_email.html',$converted->output );

Questions and Feedback

Have suggestions for improvement? Problems using the script? Feel free to contact us any time.

  • CSS-to-Inline Converter for HTML Emails
  • Download the CSS-to-Inline Converter
  • Get My Converted Google Paper Form
  • Get my CSS-to-Inline Conversion
  • Google Paper Forms
  • Google Paper Forms: Subscription

Sitemap

  • Home
  • Portfolio
  • Services + Sectors
  • About
    • Our Vision
    • Our Process
    • Leadership
    • Endorsements
  • Contact

From our Blog

  • paperwork: stack of files on messy desk, computer monitor in backgroundFour Reasons to Schedule an Office Clean-up Before the New YearDecember 7, 2017 - 9:20 pm
  • Five Tips for Giving TuesdayTwo Most Important Actions Non-Profits Should Take Post #GivingTuesdayDecember 1, 2017 - 3:58 pm
  • Delicious roasted whole chicken or turkey on plate with cutlery and sauce , harvest grilled vegetables on dark rustic background, top view, banner, frame. Thanksgiving Day foodSteps for #nonprofits to grow your followingNovember 20, 2017 - 11:12 pm

Our ears are burning!

“I have gotten many compliments on my improved webpage!"
-Cynthia Pasciuto, Esq.
True North Business Consulting

"Everyone has been saying the new web site is a 'home run!'"
-Emily Wood, Director of Communications
Campus Compact

more comments

Contact Us

Email:
quotes@vivwebsolutions.com

Phone (Toll-Free):
1-855-VIV-WEB1

Mailing Address:
240 Elm Street
2nd Floor
Somerville, MA 02144

Connect with us

Visit Us On TwitterVisit Us On FacebookVisit Us On Linkedin
© Copyright 2006-2025. Viv Web Solutions. All Rights Reserved.