PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Dec 02, 2020 11:34 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Sep 10, 2014 3:47 am 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4434
Location: United Kingdom
I have been given a CSS file, and need to go through it to strip out the classes not needed.
But it's all completely bunched up, with hardly any spaces and no 'returns'.

Is there a little tool that can go thru it in a second, and make it layout correctly?

So it isn't like this....

Syntax: [ Download ] [ Hide ]
 .logo-icon{float:left;width:50%}}.error-page-content .logo-icon img{display:block;max-width:100%;height:auto}.error-page-content p,.error-page-content span,.error-page-content a{font-weight:bold;font-size:16px;color:#ed1c24}.error-page-content a{text-decoration:underline}.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-user-select:none;-ms-touch-action:none;-ms-user-select:none;-moz-user-select:none}.noUi-base{display:none;visibility:hidden}.noUi-base:first-child.....

_________________
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.


Top
 Profile  
 
PostPosted: Wed Sep 10, 2014 7:05 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
It's minified. Most IDEs will be able to handle that for you, and I believe there's a Sublime Text plugin. Barring those, there's this online tool http://mrcoles.com/blog/css-unminify/

_________________


Top
 Profile  
 
PostPosted: Wed Sep 10, 2014 8:16 am 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4434
Location: United Kingdom
OH my goodness that is better.

Thanks a mill.

_________________
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group