Home > cssedit

cssedit

Cssedit is a project mainly written in ..., it's free.

Edit and save CSS in your browser of choice

CSSEdit

CSSEdit's goal is to make it so that you can edit CSS in any modern browser, view the changes live, and save them to your server.

Almost all the code is written in JavaScript therefore the code needed to save changes is very simple and would be easy to implement in other languages. Currently only PHP is supported. When I have time, more languages will be added.

Backing up your CSS is highly recommended.

Support

Browsers

  • Firefox
  • Safari
  • Chrome
  • Opera
  • Internet Explorer 9 (Partial)

Server Side Languages

  • PHP
  • More to come...

Shortcuts

  • CTRL+S: Save
  • Insert: Insert property after current property
  • Up Arrow: Increment numeric value
  • Down Arrow: Decrement numeric value
  • Shift+Up Arrow: Increment numeric value by 10
  • Shift+Down Arrow: Decrement numeric value by 10
  • CTRL+W (in pop-up): Move CSSEdit back to window
  • CTRL+Click (on color): Bring up color picker

Setup

  1. Place CSSEdit on your server.
  2. Go to /cssedit/drivers/cssedit.php
  3. Set url to the correct path in js/main.js
  4. Create a new bookmark with the location set to the code below
  5. Change the url variable to match your setup
  6. Repeat steps 4 and 5 for every browser you want to use CSSEdit with
javascript:(function(){var url='http://localhost/cssedit/',body=document.body,iframe=document.createElement('iframe');iframe.setAttribute('src',localStorage.getItem('cssedit_path')+'?empty');iframe.onload=function(){var head=iframe.contentDocument.head;var scripts=['js/jquery-1.5.2.js','js/jquery-ui-1.8.11.custom.min.js','js/jquery.tmpl.js','js/colorpicker.js','js/main.js','js/properties.js'],styles=['css/master.css','css/theme/jquery-ui-1.8.11.custom.css','css/colorpicker.css'];for(i in styles){var style=iframe.contentDocument.createElement('link');style.setAttribute('type','text/css');style.setAttribute('rel','stylesheet');style.setAttribute('href',url+styles[i]);head.appendChild(style)};var x=0;var addScript=function(){if(typeof scripts[x]==='undefined'){iframe.contentWindow.cssedit.init();return false};var script=iframe.contentDocument.createElement('script');script.setAttribute('type','text/javascript');script.setAttribute('src',url+scripts[x]);x++;script.onload=addScript;head.appendChild(script)};addScript()};body.appendChild(iframe);})()
Previous:Arduino