Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 48005

Remove unused class attributes

$
0
0
[Remove Unused CSS Rules] has a checkbox option to remove unused class attributes in the HTML.

However, it always cleans up the CSS stylesheets to remove unused class rules also.

Is there any way to just remove unused class attributes in the HTML? (RegEx, another check box options, .....?)

I try to keep my 'standard' stylesheet consistent so even though rules are not used in a given book, I'd like to keep them.

I ePubMerged a group of short stories and there was a lot of variety in how the same type of text was styles. For example, my 'standard' CSS has <p> for 99% of the cases, but it seems like each short story had it's own.

Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	N/A
Size:	88.9 KB
ID:	145815  

Viewing all articles
Browse latest Browse all 48005

Latest Images

Trending Articles



Latest Images