- Web Design Forum
- → Viewing Profile: Posts: Skateside
Community Stats
- Group Privileged
- Active Posts 532
- Profile Views 13,049
- Member Title Privileged
- Age 28 years old
- Birthday August 20, 1984
-
Gender
Male
-
Location
Bedford
Users Experience
-
Experience
Advanced
-
Area of Expertise
Coder
Contact Information
User Tools
Posts I've Made
In Topic: Next step to building apps with JS
24 April 2013 - 11:20 AM
I guess looking into things like RequireJS, read up on the works of Nicholas Zakas and the people he mentions and unit test everything.
In Topic: Need some JavaScript definitions
18 April 2013 - 12:42 PM
In Topic: Using :after isn't working
11 April 2013 - 08:52 PM
Have you tried putting position: relative; on #masthead nav?
I'll try reading your post fully first ...
Your problem is your clear fix, .container:after, .row:after, this has visibility:hidden on it, causing the :after on #masthead nav to be invisible. Try creating another element around your nav and putting the container class on that.
In Topic: Abusing the !important Rule...
27 March 2013 - 12:06 PM
In Topic: Noob alert! - selecting a certain <a> tag in a list
15 March 2013 - 12:09 PM
Just to provide a difference of opinion here, I almost never use IDs any more (even for JavaScript). I prefer using classes because it makes the CSS more modular and easier to work with owing to the smaller specificity. Having read up on SMACSS, I live the idea of sub-classing my modules and that's much harder with IDs.I don't necessarily agree with that statement.
Classes should be used to style elements that you may have several of on a page such as a small container with the same border/background/dimensions etc.
IDs should be used to style elements that are unique to the page and are not repeated elsewhere.
These are their semantic uses.
But if you follow the semantics correctly then you'll often not need to use IDs anyway such as using <nav> instead of <div id="nav">. I mainly use IDs for elements with Javascript functionality and I only use classed for elements that will be repeated with same styles. CSS Specificity isn't an issue if your code is clean and you work down through each nest.
I'm not saying that IDs are bad things, just that there are those of us out there who chose not to use them.
- Web Design Forum
- → Viewing Profile: Posts: Skateside
- Privacy Policy





Find content