Home › Forums › CSS › Extra indent when viewing source code in browser › Re: Extra indent when viewing source code in browser
January 8, 2013 at 3:55 pm
#120316
Participant
You may be seeing tabs and not spaces. Most text editors have a setting to show tabs as X-number of spaces. For instance, let’s say your text editor is set to show a tab as 2 spaces while a browser source viewer would render a tab as 4 spaces.This is where the inconsistency would arise. Also, most text editors have a setting to automatically convert tabs to spaces on save, which would eliminate the inconsistency (if that’s what’s actually causing it).
As I haven’t seen your site, this is just speculation.