I'm making a standard hierarchy (or tree) control in which any node with children will have a button to hide/show subnodes. So I'd like to have some way to associate the button with the div that it...
I wouldn't mind putting the CSS chunks in separate files - that's conceptually clean enough for me. But having numerous small CSS files dynamically loaded brings a performance issue I want to avoid.
I want to change styles with JavaScript, but I would prefer that the styles be written in CSS in a style sheet for organization reasons. I know I can invoke an alternate stylesheet with JS:
Well I searched for "Don't use CSS Classes" like you suggested and at the top of the list was this: http://coding.smashingmagazine.com/2012/06/19/classes-where-were-going-we-dont-need-classes/
...
You might disable JS in your browser and look at some big name sites and see how they handle it. For instance google.com looks rather unfinished with JS disabled, but it still works.
It will be a while before you get the skills to make money with web dev but take the course and see how you like it. Maybe you become a pro, maybe not, but the journey is the reward.
I'm assuming you're preprocessing this on the server side, in which case the input doesn't need to be valid HTML, the output does. The input does need to have well specified language/syntax and the...
Weird stuff. I don't know what it is, but if you google those strange string literals in that code ("dthklpa8nbzg5itfux") they're found is the site jsunpack.leek.org.
I don't know. You'd need to ask someone that really understands the syntax of the various HTML dialects, someone that has written an HTML parser or two.
With some sort of brackets (or block delimiters), it's easier to specify the syntax of how the various languages on the page are intertwined. You need to specify the syntax of the page in order to...
I think the easiest way to do this is a have a separate style sheet for each font size, and provide a way (links or buttons) to switch to the style sheet with the appropriate size fonts.