Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Extra indent when viewing source code in browser Re: Extra indent when viewing source code in browser

#120316
TreeRoot
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.