July 22, 200917 yr Was just wondering how people kept there code clean so they can edit and find things quicker and generally make it less stressful. Do you use loads comments, spaces, indentation etc etc. For my html I like to keep all divs indented, plenty of line spaces and comments when closing one. Also recently I add comments to seperate header, footer, content section with something like this <!-- *****// header //***** --> For my CSS I keep everything on one linem for example #body {width:990px; height:800px; background-color: #FFF} etc rather than having it on multiple lines Interested to see how people keep their own clean
July 22, 200917 yr Author Could a mod also move this into the 'Website Design and Layout' section as I put this in here by accident
July 22, 200917 yr Could a mod also move this into the 'Website Design and Layout' section as I put this in here by accident It's in the right forum, it's not a Design and layout issue I tend to keep CSS on one line the same as you, and also use heading comments to split blocks of styles.
July 22, 200917 yr in my html i use indents for the content, use <!-- --> at end of divs in my css i use multiple lines as its easier to find what i want
July 22, 200917 yr css Multi line in complete alphabetical order, floats, margins positions etc go in layout.css. Colors fonts backgrounds in content.css! Xhtml is just standard stuff.... Indentation, plenty of white space, Comment where neccessary. PHP similar however I write everything OOP
Create an account or sign in to comment