Skip to main content
Commercial Photography

A Guide for CSS Style Sheet

Every CSS author has his preferred way of writing code. For example, a few peoples, prefer to write each property and selector on a separate line, while other would everything on one single line instead of separate line. Some writer/authors never add a semicolon to the last property on a selector (because it isn’t necessary); others prefer to remove the space between the colon and the value of a property. The list goes on. These are just a few examples of how divergent CSS authoring can be from person to person, look into any CSS discussion forum and you will find endless ongoing debates on each of these topics, and many more. You will also probably come to the conclusion that no one is fully right or wrong, there are valid arguments on each side of the fence. However, when dealing with large-scale style sheets, or style sheets that are to be applied to large-scale websites where performance and robustness are the most important factors/aspects, personal preferences usually have to be set aside to give way to a more flexible, logical/coherent way of writing the code. 
A-Guide-for-CSS-Style-Sheet
You may also like this article: CSS Stylish Table
This approach will not be the most effective at the start (a newly hired developer will have to adapt to the conventions used in the organization, so he won’t be able to immediately start coding without becoming familiar with them), but it will make it easier for staff to edit and update style sheets created by other developers without having to take the time to understand (sometimes the correct word would be “decipher”) and become familiar with someone else’s CSS writing style. Having a set of conventions in place will also make it easier for authors to know which path to take. Even though there is always a degree of subjectivity when creating CSS solutions, if a CSS style guide is in place, many of the doubts will become non-existent since there are “rules” to be followed. It also becomes easier to detect errors, typos, and mistakes. This chapter focuses on the most important points where CSS authoring can be made more consistent and efficient. You will learn the following:
  • Why you should have a CSS style guide in place
  • Effective ways of formatting CSS
  • How to use CSS comments in a useful way
  • Best practices on ID and class naming
  • Namespacing
You may also like this article: CSS Blurry Text
If you are producing a CSS style guide (as we recommend) that will be known and used by all the members of the team, it can and should include a reference to how CSS is formatted. This will make reading style sheets created by others easier and it will remove part of the subjectivity that is common among CSS authors when creating or editing the files. It should also indicate how comments should be made and encourage the use of them.
bbc-css-style-sheet
You may also like this article: Wordpress Site Architecture

Creating and implementing a CSS style guide will remove some of the inconsistency that is often related to coding CSS, where different developers have different coding styles that can sometimes be extremely difficult for other people to read and understand. This slows down the development process and promotes errors, redundancy, and code bloat. A style guide is an instrumental tool to avoid this, allowing for code re-usability and efficiency through consistency, for a streamlined team environment for developing high-traffic sites. Companies such as the BBC or Drupal have CSS style guides in place that are publicly available and act as good references for anyone who is creating one.
drupal-css-style-sheet
You may also like this article: CSS Subscription Gadget

Comments

Popular posts from this blog

Sultan 2016 Hindi 480P-720P NR-DvdRip 500MB 700MB 1.5GB

Sultan 2016 Hindi 480P-720P NR-DvdRip 500MB 700MB 1.5GB IMDB Ratings: 8.3/10 Genre(s): Drama, History, Thriller Release Date: 6.July.2016 Director: Pranav Singh, Jitendra Tiwari Star Cast: Salman Khan, Marko Zaror, Anushka Sharma Language: Hindi
Story: Sultan is a story of Sultan Ali Khan – a local wrestling champion with the world at his feet as he dreams of representing India at the Olympics. It’s a story of Aarfa – a feisty young girl from the same small town as Sultan with her own set of dreams. When the 2 local wrestling legends lock horns, romance blossoms and their dreams and aspirations become intertwined and aligned. However, the path to glory is a rocky one and one must fall several times before one stands victorious – More often than not, this journey can take a lifetime. Sultan is a classic underdog tale about a wrestlers journey, looking for a comeback by defeating all odds staked up against him. But when he has nothing to lose and everything to gain in this fight for his life m…

Savdhaan India Ep1591 19 Apr 2016 Lust Leads To Crime

Savdhaan India Ep1591 19 Apr 2016Lust Leads To Crime
Telecast Date: 19.Apr.2016 Running Time: 00:41:51 Language: Hindi
Story:
Read more »

Win a double pass to see DON'T BREATHE

Win a double pass to see DON'T BREATHE
To celebrate the release of the US Number 1 Box Office smash, Don't Breathe, I've got double passes to see the film!

About Don't Breathe


A group of friends break into the house of a wealthy blind man, thinking they'll get away with the perfect heist. They're wrong.
Directed by: Fede Alvarez
Written by: Fede Alvarez & Rodo Sayagues Produced by: Sam Raimi, Rob Tapert, Fede Alvarez
Executive Producers: Nathan Kahane, Joe Drake, Erin Westerman, J.R. Young, Mathew Hart
Cast: Jane Levy, Dylan Minnette, Daniel Zovatto and Stephen Lang

Don't Breathe hits cinemas September 22nd

To enter simply email to this address: darrensworldofentertainment@gmail.com - simply CLICK HEREdarrensworldofentertainment@gmail.comand in the subject line put BREATHE 

Please include your name and address and good luck! NB Competition closes 22 September- editor's decision final!