21 replies [Last post]
jake3030
Offline
newbie
Last seen: 16 years 15 weeks ago
Joined: 2006-02-05
Posts: 6
Points: 0

Hello all,

I am ready to throw my site to the wolves Tongue

http://www.cleanmycss.com. There are only 2 pages.

Thanks

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 7 years 31 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

SiteCheck: www.cleanmycss.com

When you roll over links they change to white which makes them unreadable on the white background (and not much better in the green sidebar).
The dark blue link in the footer is almost unreadable too until you roll over it.
The link to your home page from your header has a full stop in it.
You've got a couple of validation errors.
And when I tested your cleaner, I got stuff like this:

body {
}


f
}


c
}


t
}


s
}


s
}


s
}


s
}


s
}


s
}


s
}

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 13 years 16 weeks ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

SiteCheck: www.cleanmycss.com

thats a lot cleaner

This is my big chance . . . yep, I blew it . . .

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 9 hours 52 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

SiteCheck: www.cleanmycss.com

Hi jake3030,
It's a great idea.
Can I suggest you use something valid as the example instead of scrollbar ie proprietary properties.

Might also be worth having the option to switch between things like:
{background-image:url(image.jpg);
background-repeat:no-repeat;
background-color:red;
background-position: top left;}

and:
{background:url(image.jpg) no-repeat red top left;}

HellsBells
HellsBells's picture
Offline
Leader
Bedford, UK
Last seen: 14 years 3 weeks ago
Bedford, UK
Joined: 2004-04-07
Posts: 851
Points: 0

SiteCheck: www.cleanmycss.com

I like my CSS all on one line... Crying

My strategy is so simple an idiot could have devised it!

"Also, your CSS (no offence) makes me want to gouge my eyes out with a rusty spoon" - TPH

briski
briski's picture
Offline
Elder
London
Last seen: 9 years 49 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

SiteCheck: www.cleanmycss.com

HellsBells wrote:
I like my CSS all on one line... Crying

Really? How odd Wink

And, the CSS cleany thing ruined my css by removing eveything and changing my class names oddly Crying

As a petty side point - what is this "W3C - CSS2" button I see at the bottom?

Surely it's just CSS? There is nothing more annoying than a boss type comming up and asking is we've moved on to CSS2 yet or are we still using 1 - this sort of buttonage will surely just propogate this kind of question?

Anonymous
Anonymous's picture
Guru

SiteCheck: www.cleanmycss.com

n8gz4ez wrote:
thats a lot cleaner
Yeah, like your haircut. Laughing out loud

Lorraine
Lorraine's picture
Offline
Elder
UK
Last seen: 15 years 39 weeks ago
UK
Timezone: GMT+1
Joined: 2005-01-04
Posts: 1001
Points: 0

SiteCheck: www.cleanmycss.com

briski wrote:
HellsBells wrote:
I like my CSS all on one line... Crying

Really? How odd Wink

Ah well, count me among the oddities (as if you didn't already do that). Straight line stuff sure does infuriate the casual rip-off merchants out there. Had one actually complain that he couldn't use my code Tongue
Here's a cleany thingy that's rather fun for straight line stuff and all sorts. Wink

HellsBells
HellsBells's picture
Offline
Leader
Bedford, UK
Last seen: 14 years 3 weeks ago
Bedford, UK
Joined: 2004-04-07
Posts: 851
Points: 0

SiteCheck: www.cleanmycss.com

You know I didn't mean ALL of my CSS on a single line don't you ?

I mean this:

#text {border:1px solid white;padding:0;text-align:left ;margin:0;line-height: 165%;}

rather than this:

#text 
{
border:1px solid white;
padding:0;
text-align:left;
margin:0;
line-height: 165%;
}

My strategy is so simple an idiot could have devised it!

"Also, your CSS (no offence) makes me want to gouge my eyes out with a rusty spoon" - TPH

Lorraine
Lorraine's picture
Offline
Elder
UK
Last seen: 15 years 39 weeks ago
UK
Timezone: GMT+1
Joined: 2005-01-04
Posts: 1001
Points: 0

SiteCheck: www.cleanmycss.com

Yeah but, ah but, no but.
After test coding in a readable form, of course, then converting to one line for the live version really gets them going. There was a thread here a while ago where someone was trying to find or highlight a particular word in an almost fully straight-lined CSS file. Got into a proper knicker-twisting episode, I can tell you Shock

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 19 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

SiteCheck: www.cleanmycss.com

You could also just hold down the return key for five minutes before pasting in your one line that really helps to confuse people, I remember thinking I was staring at a blank file before realising the twerp had started coding on line 787 :?

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

HellsBells
HellsBells's picture
Offline
Leader
Bedford, UK
Last seen: 14 years 3 weeks ago
Bedford, UK
Joined: 2004-04-07
Posts: 851
Points: 0

SiteCheck: www.cleanmycss.com

It's just not funny messing with the mind of the elderly Wink

My strategy is so simple an idiot could have devised it!

"Also, your CSS (no offence) makes me want to gouge my eyes out with a rusty spoon" - TPH

Lorraine
Lorraine's picture
Offline
Elder
UK
Last seen: 15 years 39 weeks ago
UK
Timezone: GMT+1
Joined: 2005-01-04
Posts: 1001
Points: 0

SiteCheck: www.cleanmycss.com

Hugo
I didn't think of that... thanks Tongue

jake3030
Offline
newbie
Last seen: 16 years 15 weeks ago
Joined: 2006-02-05
Posts: 6
Points: 0

SiteCheck: www.cleanmycss.com

Tony wrote:
Hi jake3030,
It's a great idea.
Can I suggest you use something valid as the example instead of scrollbar ie proprietary properties.

i copied that from someone's site just as an example.

Tony wrote:

Might also be worth having the option to switch between things like:
{background-image:url(image.jpg);
background-repeat:no-repeat;
background-color:red;
background-position: top left;}

and:
{background:url(image.jpg) no-repeat red top left;}

hmm, that would be a good idea, basically making it an optimizer.

I saw a post that someone had some problems with the cleaner. If you can, please send me the CSS files you were playing with.

The cleaner is in the first iteration only (v.0001 Smile )

Mike Cherim
Mike Cherim's picture
Offline
Enthusiast
Nottingham NH
Last seen: 15 years 14 weeks ago
Nottingham NH
Joined: 2005-08-26
Posts: 126
Points: 0

SiteCheck: www.cleanmycss.com

I'm afraid it didn't produce very good results for me. It produced something similiar to what Tyssen posted. Sad

Regarding inline CSS: If I have a selector or element with just one or two definitions I tend to put them on one line. More that that I break it up and present it vertically.

It's a cool idea. Hopefully you get the script working.

Mike

jake3030
Offline
newbie
Last seen: 16 years 15 weeks ago
Joined: 2006-02-05
Posts: 6
Points: 0

SiteCheck: www.cleanmycss.com

Mike Cherim wrote:
I'm afraid it didn't produce very good results for me. It produced something similiar to what Tyssen posted. Sad

Regarding inline CSS: If I have a selector or element with just one or two definitions I tend to put them on one line. More that that I break it up and present it vertically.

It's a cool idea. Hopefully you get the script working.

Mike

ok

4th time's a charm. I rewrote the engine and i am pretty sure it works this time.

please email me if you find any problems.

--jake

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 7 years 31 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

SiteCheck: www.cleanmycss.com

Still getting the same stuff:

w
}


h
}


p
}


t
}


v
}


c
}


f
}

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

jake3030
Offline
newbie
Last seen: 16 years 15 weeks ago
Joined: 2006-02-05
Posts: 6
Points: 0

SiteCheck: www.cleanmycss.com

Tyssen wrote:
Still getting the same stuff:

w
}


h
}


p
}


t
}


v
}


c
}


f
}

DOH!!!

forgot to link the new engine on the page.

Try it now.

--jake

briski
briski's picture
Offline
Elder
London
Last seen: 9 years 49 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

SiteCheck: www.cleanmycss.com

Much better Laughing out loud

One thing, on the home page in FF the sample cleaned HTML

html {
	scrollbar-face-color: #99b; 
	scrollbar-arrow-color: #fff; 
	scrollbar-highlight-color: #fff; 
	scrollbar-shadow-color: #99c; 
	scrollbar-3dlight-color: #000; 
} 

Is really small compared with the other text, which actually makes it quite hard to read.

jake3030
Offline
newbie
Last seen: 16 years 15 weeks ago
Joined: 2006-02-05
Posts: 6
Points: 0

SiteCheck: www.cleanmycss.com

briski wrote:
Much better Laughing out loud

One thing, on the home page in FF the sample cleaned HTML

html {
	scrollbar-face-color: #99b; 
	scrollbar-arrow-color: #fff; 
	scrollbar-highlight-color: #fff; 
	scrollbar-shadow-color: #99c; 
	scrollbar-3dlight-color: #000; 
} 

Is really small compared with the other text, which actually makes it quite hard to read.

i noticed that also. I tried playing with the CSS. Maybe it's something else.

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 3 weeks 4 days ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

SiteCheck: www.cleanmycss.com

Working much better now Laughing out loud

Would there be any chance of creating an "optimise" option, so it converts your CSS to shorthand?

Verschwindende wrote:
  • CSS doesn't make pies

jake3030
Offline
newbie
Last seen: 16 years 15 weeks ago
Joined: 2006-02-05
Posts: 6
Points: 0

SiteCheck: www.cleanmycss.com

thepineapplehead wrote:
Working much better now Laughing out loud

Would there be any chance of creating an "optimise" option, so it converts your CSS to shorthand?

yes, that will be the next step.

Prolly get around to that this weekend.