CodeHQ

Posts Tagged ‘Display’

|

@Supports CSS function

Friday, February 22nd, 2019

In this example .article-grid will be block unless the browser has support for display: grid, at which case, the styles within the @supports block will kick in and override the previous display declaration.

.article-grid {
    display: block;
}

@supports (display: grid) {
    .article-grid {
        display: grid;
    }
}

Tags: , , , , ,
Posted in CSS | No Comments »

Display search term | WordPress

Friday, April 29th, 2016

<?php _e( 'Search Results Found For', 'locale' ); ?>: "<?php the_search_query(); ?>"

Tags: , , , , ,
Posted in PHP, WordPress | No Comments »