Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic questions regarding classes and selectors #180

Open
franciscolourenco opened this issue Mar 4, 2014 · 1 comment
Open

Basic questions regarding classes and selectors #180

franciscolourenco opened this issue Mar 4, 2014 · 1 comment

Comments

@franciscolourenco
Copy link

The google group would probably be a more appropriate place to have this kind of discussion, but my membership is taking a while to approve.

In this simple example of buttons with icons, a few questions appeared, and the best option didn't seem clear. Please advise your preferred answer, and if necessary explain why.

The questions are the following and are explained here: https://dpaste.de/FF2D#L10,48,87

  1. .class.combination VS .longClasses VS child selector
  2. (*) selector VS extra .content class VS multiple selectors
  3. Child VS Descendant selectors

EDIT 1: For each question select an option, for example:
1C
2A
3B

EDIT 2: If you are wondering why the button text is wrapped in a span, the objective is to keep the icon and the text equally vertically-aligned: http://jsfiddle.net/5WCSz/11/
If you know a better way, please let know.

@ghost
Copy link

ghost commented Mar 4, 2014

In respect to the vertical alignment check out:
http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/

Depending on your level of browser support that might be an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant