/    Sign up×
Community /Pin to ProfileBookmark

CSS delivered in one string – how to format

Hi all,
Our development team at work delivered this huge CSS file to us in one long string (so it isn’t formatted nicely at all).
Is there a trick in dreamweaver or another program that will format a CSS file? Meaning, make it so everything is neatly organized?

So for example, the CSS delivered looks like:

[CODE].checkbox-button span.checkbox {left: 25px;position: absolute;top: 23px;background-position: 0 0;height: 20px;width: 20px;}.checkbox-button span.checkbox.selected{background-position: -20px 0;top: 21px;}[/CODE]

But I want it to look like this:

[CODE].checkbox-button span.checkbox {
[INDENT]left: 25px;[/INDENT]
[INDENT]position: absolute;[/INDENT]
[INDENT]top: 23px;[/INDENT]
[INDENT]background-position: 0 0;[/INDENT]
[INDENT]height: 20px;[/INDENT]
[INDENT]width: 20px;[/INDENT]
}
.checkbox-button span.checkbox.selected{
[INDENT]background-position: -20px 0;[/INDENT]
[INDENT]top: 21px;[/INDENT]
}[/CODE]

Any help would be great, thanks!

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@iBeZiMay 23.2013 — There are loads of tools online that'll do this for you, such as http://procssor.com/
Copy linkTweet thisAlerts:
@daysableauthorMay 24.2013 — This worked perfectly. Thanks so much.
×

Success!

Help @daysable spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...