Slashdot Mirror


User: Moo0

Moo0's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. More programmically approaches of CSS on Ask Håkon About CSS or...? · · Score: 3, Interesting

    if you have 2 elements, eg ol#a and span#b, you need to double your selectors:
    ol#a *:first-child a:hover + dd, span#b *:first-child a:hover + dd { ... }

    Why is there no 'grouping' of selectors such as:
    ol#a, span#b { *:first-child a:hover + dd { ... } }

    And of course, there are more possibilities to greatly improve the maintainability of CSS-files; being able to define variables, or inline-calculations (eg. border-width: @var - 0.5em;

    Have they not been included to keep CSS simple, or ... ?