CSS color names + alpha transparency

You can achieve the result you want this way: #mytext{ color: red; opacity: 0.5; } Note that opacity will affect the whole element, not just the text, so for example, if the #mytext element had a background color, that would also receive the opacity value of 0.5 However, I agree with Dai, using color names … Read more

ClearFix vs Overflow [duplicate]

The only time you should bother using the “clearfix” method that inserts invisible content to clear is if you need an element to be visible when it overflows the element you’re applying it to, otherwise triggering hasLayout + overflow is golden. Note that in IE7 overflow hidden triggers hasLayout. Not sure about IE8. #wrapper { … Read more

How do I stop Visual Studio from automatically adding the end-of-comment characters when I start a new comment in a CSS file

I’m afraid there isn’t an option to change this in Visual Studio, at least not one I can see. I’ve had the same issue sometimes, and generally use three ways around it: Select the lines to comment out and use the keyboard shortcut: CTRL+K, C Cut the closing */ and paste it at the end … Read more

Webkit CSS Reset?

While these styles are applied by Webkit, they are over-ruled by margin: 0; padding: 0; located in the CSS resets. You don’t have to worry about them. Note: Although Chrome (Version 27.0.1453.116 m) Developer Tools does not display the user agent styles with strikethrough, the computed styles do reflect that explicit margin and padding values … Read more

Stopping a CSS animation but letting its current iteration finish

Stop the animation upon receiving an animationiteration event. Something like this (using jQuery): CSS @-webkit-keyframes rotate { to { -webkit-transform: rotate(360deg); } } .rotate { width: 100px; height: 100px; background: red; } .rotate.anim { -webkit-animation-name: rotate; -webkit-animation-duration: 5s; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; } HTML <div class=”rotate anim”>TEST</div> <input id=”stop” type=”submit” value=”stop it” /> JS (JQuery) … Read more

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