How to get these two divs side-by-side?

Since div’s by default are block elements – meaning they will occupy full available width, try using – display:inline-block; The div is now rendered inline i.e. does not disrupt flow of elements, but will still be treated as a block element. I find this technique easier than wrestling with floats. See this tutorial for more … Read more

CSS3 Transition – Fade out effect

Here is another way to do the same. fadeIn effect .visible { visibility: visible; opacity: 1; transition: opacity 2s linear; } fadeOut effect .hidden { visibility: hidden; opacity: 0; transition: visibility 0s 2s, opacity 2s linear; } UPDATE 1: I found more up-to-date tutorial CSS3 Transition: fadeIn and fadeOut like effects to hide show elements … Read more

What do commas and spaces in multiple classes mean in CSS?

.container_12 .grid_6, .container_16 .grid_8 { width: 460px; } That says “make all .grid_6’s within .container_12’s and all .grid_8’s within .container_16’s 460 pixels wide.” So both of the following will render the same: <div class=”container_12″> <div class=”grid_6″>460px Wide</div> </div> <div class=”container_16″> <div class=”grid_8″>460px Wide</div> </div> As for the commas, it’s applying one rule to multiple classes, … Read more

How to transition CSS display + opacity properties

Based on Michaels answer this is the actual CSS code to use .parent:hover .child { display: block; -webkit-animation: fadeInFromNone 0.5s ease-out; -moz-animation: fadeInFromNone 0.5s ease-out; -o-animation: fadeInFromNone 0.5s ease-out; animation: fadeInFromNone 0.5s ease-out; } @-webkit-keyframes fadeInFromNone { 0% { display: none; opacity: 0; } 1% { display: block; opacity: 0; } 100% { display: block; … Read more

Bootstrap 3: pull-right for col-lg only

You could put “element 2” in a smaller column (ie: col-2) and then use push on larger screens only: <div class=”row”> <div class=”col-lg-6 col-xs-6″>elements 1</div> <div class=”col-lg-6 col-xs-6″> <div class=”row”> <div class=”col-lg-2 col-lg-push-10 col-md-2 col-md-push-0 col-sm-2 col-sm-push-0 col-xs-2 col-xs-push-0″> <div class=”pull-right”>elements 2</div> </div> </div> </div> </div> Demo: http://bootply.com/88095 Another option is to override the float … Read more

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