Skip to content

Instantly share code, notes, and snippets.

@bernatfortet
Last active October 10, 2015 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bernatfortet/3758601 to your computer and use it in GitHub Desktop.
Save bernatfortet/3758601 to your computer and use it in GitHub Desktop.
HCSS Styling
=== HCSS Code Styling ===
1. Inline Styles ------------------------------------------------------------------
.content{ width:100px; height:100px; display:block; position:relative; left:-5px; top:-5px; float:none; margin:0; padding:20px; background:transparent url("../images/bkg.jpg") no-repeat center center; color:#000; ....}
Order --> Widht - Height / Display / Position / left, right, top, bottom / float / margins / paddings / background / color / text types / CSS3 features (text-shadow/ border radius / box-shadow) / opacity / overflow / z-index
basically is:
1 - dimensions/structural/positioning - background and font style - the rest
2. CSS Identation -----------------------------------------------------------------
.content{}
.content .block{}
.content .block h1{}
.content .block p{}
.content .block .div-name{}
.footer{}
.footer p{}
.footer a{}
.footer a:hover{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment