January 29, 200917 yr I'm a bit of an obsessive compulsive when it comes to tidy uniform code; being this person I went on a journey through the blogs on the subject, I finally came up with this stylesheet; http://www.aaronbrand.co.uk/draft/aaronbra...signs/style.css for the sake of it I made a simple html page to work from too (this uses the above stylesheet) I suggest you view the source: http://www.aaronbrand.co.uk/draft/aaronbrand/otherdesigns/ I find working from this saves me a lot of time. I also included some of the common DIVs and attributes you find in your everyday stylesheet. There isn't a great deal to explain 1ST is your primary content 2nd is secondary (I indented all secondary content to illustrate). For larger stylesheet I sometimes add a table of contents to the top and use this to find classes. I have also put the longest strings at the top with the smallest at the bottom, but this isn't the best way of doing things some attributes are better next to each other (e.g Height & Width), I just find it easier on the eyes . I have used this on a few projects and it saves me heaps of time, I know its not going to suite every website but the organisation should suite any site. I thought I'd share it, some of you may find it of some use.
January 30, 200917 yr Nice idea but on newer websites I've been making I've been keeping the CSS down to a minimum in order to reduce load times. I know it's only a few lines of text but every little helps. Also this is my first venture out of general chat in a long, long time!
Create an account or sign in to comment