Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to create stylish table with CSS :nth-child() Selector with easy-way?

create table with CSS :nth-child() Selector <html> <head> <style> .container{  margin:auto;  width:80%; } .main-row{  width:20%;  float:left;  background-color:#0AA52D;  text-align:center;  padding:10px 0px; color:white; } .col-2{  width:20%;  float:left;  text-align:center;  padding:10px 0px;  border-bottom:1px solid #f1f1f1; } .row{  width:100%;

Read More »

How to use WP_Query with have_posts()?

How to use WP_Query with have_posts()? global $wp_query; $original_query = $wp_query; $wp_query = null; $wp_query = new WP_Query( $args ); if ( have_posts() ) : while ( have_posts() ) :

Read More »

How to align center div in div in html ?

How to align center div in div in html ? <html> <head> <style> .outer{ width: 100%; height: 100vh; background:red; } .container{ width: 35%; height: 60vh; background:blue; position: absolute; top:0; bottom:

Read More »

How to pass variable id through href in php

<table class=”table table-hover”> <thead> <tr> <th>Subject</th> <th>Add Topic</th> </tr> </thead> <tbody> <tr> <?php foreach($subjects as $sub):?> <td><?php echo $sub->subject;?></td> <td><a href=’approve.php?id=”.$sub->id.”‘ role=”button” class=”btn”>Add Topic</a></td> </tr> <?php endforeach;?> </tbody></table>

Read More »

How to get warning when exit browser without saving?

Get warning when exit browser without saving <script> jQuery(document).ready(function($){ $(window).unbind(‘beforeunload’); $(“input[type=’submit’]”).click(function(){      $(window).unbind(‘beforeunload’); }); $(“input”).on(“change paste keyup”, function() {   $(window).bind(‘beforeunload’, function(){ return ‘Are you sure you want to

Read More »