Web Analytics Made Easy -
StatCounter css optimization - CodingForum

Announcement

Collapse
No announcement yet.

css optimization

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • css optimization

    Hi all, I was wondering if these can be structured better for performance? Thanks!

    .invCellAvlBooked
    {
    background-color:#dc143c;
    font-family:Arial Narrow;
    font-size:8pt;
    text-align:center;
    cursor:default;
    }

    .invCellNone
    {
    background-color:#cccccc;
    font-family:Arial Narrow;
    font-size:8pt;
    text-align:center;
    cursor:default;
    }

  • #2
    .invCellNone, .invCellAvlBooked {
    background: #dc143c;
    font: 8pt "Arial Narrow";
    text-align: center;
    cursor: default;
    }

    .invCellNone {
    background:#ccc;
    }
    markaylward.co.uk

    Comment


    • #3
      Does that actually make it more efficient? It simply reduces the number of statements in the stylesheet, but the matching efficiency is still the same. From what I know, it's the selectors that matter when talking about CSS efficiency.

      In which case, check out:
      http://developer.mozilla.org/en/docs..._Efficient_CSS

      Comment

      Working...
      X