372 Wiki 372 Wiki

  • Home
  • Forums
  • Categories
    • Billing
    • Bookkeeping
    • Copyright & Legal
    • Clients
    • Designer Guides
    • Developer Guides
    • Getting Started
    • Troubleshooting
    • Workplace
Home / Developer Guide / CSS Styling Guidelines

CSS Styling Guidelines

10 views 1 min , 17 sec read 0

CSS Styling Guidelines

  1. All colour “hex values” are to be the exact values used in the design. Avoid using the “eyedropper” tool in Illustrator or Photoshop as it is not always accurate. Instead, double click the “fill” swatch box in Illustrator or Photoshop and copy the exact value from the hex field. Make sure to have the “Web Safe Colours” unticked and the correct colour selected before copying the value.
  2. Avoid having two types of “hover” styles on links or buttons. For example, the background colour of a button can change colour on hover, but does not need an underline as well. Another example is on links. A link does not need to change colour when it shows an underline on hover. In WCAG compliant sites, a link can show an underline and disappears on hover. Also in WCAG, a button background colour can change in colour on hover.
  3. Use both “margin/padding top OR bottom” and “line-height” when listing items. If only a “line-height” is used, the gap between two lines of text will be the same as the gap between list items. This makes it uneasy to identify the beginning of a list item.
  4. If an element OR container appears vertically aligned centre in the design, make sure that it is vertically aligned centre in code as well.
  5. Write as little CSS as possible. Avoid using too many “classes”. A good practice is to create a parent container and assign a CSS name to the container. Then use plain html tags to mark the elements inside the container.

 

Optimising Websites

  1. Optimising for smartphones rule of thumb. Unless a design shows different, style the sides of a parent container to be 10 pixels away from the sides of the screen in both portrait and landscape orientation. For titles, headings and paragraph text, a 20-pixel distance from the edge is preferred for easier reading. This practice help make good use of screen real estate.
  2. Remove the “Pinch & Zoom” function on smartphones. When a website is properly optimised for viewing on smartphones, then there is no need for this function. An exception can be for gallery images or maps where it is functionally beneficial.
  3. For touch devices, buttons and links should have a minimum width and height of 30 pixels each side to accommodate for people with thick fingers.
Developer Guide

About 372-admin

View all posts by 372-admin →

Related Articles

  • WordPress Multi-Site Deplyment
  • cPanel Redirect Old to New Site using htaccess
  • Version Control
  • JA Theme Setup Documentation

Article Categories

  • 9Billing
  • 3Bookkeeping
  • 2Cimara
  • 5Client
  • 11Copyright & Legal
  • 2Designer Guide
  • 18Developer Guide
  • 11Getting Started
  • 2Troubleshooting
  • 10Workplace

Most Viewed

  • Using my credit 112
  • What is WordPress? 64
  • Account overview 51
  • Why can’t I download the latest theme version (zip file)? 49
  • How do you customize the navigation? 49

Most Liked

  • Using my credit 5
  • Why can’t I download the latest theme version (zip file)? 3
  • What is WordPress? 2
  • Workplace Communication 1
  • Account overview 1

Article Categories

Billing Bookkeeping Cimara Client Copyright & Legal Designer Guide Developer Guide Getting Started Troubleshooting Workplace

Any questions

For all management related matters please refer to Ben Brillante

For any Cimara functional issues please refer to Rushabh Padalia.

For client based issued please refer to James Apoefis

© Copyright 372 Digital Pty Ltd. All rights reserved.