How to get rid of blank lines in my css code?
Something happened to my css code and I have a ton of blank lines between code. I don’t know how to easily get rid of it. Does anyone know a easy way?
Something happened to my css code and I have a ton of blank lines between code. I don’t know how to easily get rid of it. Does anyone know a easy way?
Open CSS in a CSS editor and copy the blank link and use the Find/Replace tool.
Free HTML Editors, Web Editors, and WYSIWYG Web Editors and Site Builders:
http://www.thefreecountry.com/webmaster/htmleditors.shtml#htmleditors
HTML Editor Reviews – http://www.wdvl.com/Reviews/HTML/
Free Online Editor Tool: http://htmledit.squarefree.com/
Free Flash Website Builder (Online): http://www.wix.com/
PageBreeze (Free visual (WYSIWYG) and HTML tag/source modes): http://www.pagebreeze.com/
Mac users might want to download BBedit Lite, a more powerful, and free mac text editor: http://www.barebones.com/products/bbedit_lite.html
Ron
check to see if your IDE has some sort of a "clean up/format/make pretty" option somewhere that will clean up your code…unless you are using notepad..then good ol’ highlight and delete
open the file in a text editor like notepad++ and use the find and replace function to replace the blank line with nothing.
I would highlight then copy/paste the blank line (select from just after the last character on the previous line, down to the blank line, that will capture the line break) into the find/replace form and leave the replace field blank. It works in notepad++ and a few other text editors I have tried. Not sure if it works in regular notepad.
I usually usw Word for that. It keeps text files as text, and the Replace function recognizes blank lines (they’re double manual line breaks – change them to single ones.)