CSS selectors ul li a {…} vs ul > li > a {…}

“>” is the child selector “” is the descendant selector The difference is that a descendant can be a child of the element, or a child of a child of the element or a child of a child of a child ad inifinitum. A child element is simply one that is directly contained within the parent element: for … Read more

CSS 3 slide-in from left transition

You can use CSS3 transitions or maybe CSS3 animations to slide in an element. For browser support: http://caniuse.com/ I made two quick examples just to show you how I mean. CSS transition (on hover) Demo One Relevant Code In this case, Im just transitioning the position from left: -100px; to 0; with a 1s. duration. It’s also possible to move … Read more

jQuery toggle CSS?

For jQuery versions lower than 1.9 (see https://api.jquery.com/toggle-event): Using classes in this case would be better than setting the css directly though, look at the addClass and removeClass methods alecwh mentioned.

Hide text using css

This is one way: Here is another way to hide the text while avoiding the huge 9999 pixel box that the browser will create:

Why adding version number to CSS file path?

From HTML5 ★ Boilerplate Docs: What is ?v=1″ ‘?v=1’ is the JavaScript/CSS Version Control with Cachebusting Why do you need to cache JavaScript CSS? Web page designs are getting richer and richer, which means more scripts and stylesheets in the page. A first-time visitor to your page may have to make several HTTP requests, but by … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)