View Single Post
Old 03-24-2013, 07:31 PM   #12
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Well...first off. <span class="sgc-7"> won't do anything because sgc-7 is only defined for h2 according to your css.

When I find useless spans surrounding every paragraph - and it happens more often than you would think - I just use a search and replace to delete them. in this case I would use:

search: <p><span class="sgc-7">(.*?)</span></p>
replace: <p>\1</p>

use regex and apply it to all html files

That will get rid of the span issue, but it doesn't address the error you said you were having about it automatically adding all that stuff in there in the first place.

As ducks mentioned, you are using inline styles. Personally I would prefer putting all the stuff you have between <style> </style> into a css file and then linking your document to that css file.

I also would clean all the extra sgc-# items off of the css styles...they aren't really necessary - or clean - but you would need to use F/R to clean the document before you delete them. Again, ducks mentioned that they probably come from you editing in the book view. I would recommend minimizing the amount of editing you do in book view...code view is much better and you can see exactly what is going on as you work.
Turtle91 is offline   Reply With Quote