Disabling browser print options (headers, footers, margins) from page?

I have seen this question asked in a couple of different ways on SO and several other websites, but most of them are either too specific or out-of-date. I’m hoping someone can provide a definitive answer here without pandering to speculation. Is there a way, either with CSS or javascript, to change the default printer … Read more

Difference between SRC and HREF

The SRC and HREF attributes are used to include some external entities like an image, a CSS file, a HTML file, any other web page or a JavaScript file. Is there a clear differentiation between SRC and HREF? Where or when to use SRC or HREF? I think they can’t be used interchangeably. I’m giving … Read more

To echo or not to echo?

Searching the code for related posts I found two almost identical code snippets, the only difference being that one uses echo: echo ‘<li><a href=”‘ . get_permalink() . ‘” title=”‘ . the_title_attribute() . ‘”>’ . the_title() . ‘</a></li>’; and the other does not: <li> <a href=”https://wordpress.stackexchange.com/questions/202833/<?php the_permalink() ?>” title=”<?php the_title_attribute() ?>”> <h4><?php the_title() ?></h4></a> </li> Personally, … Read more

horizontal scrollbar on top and bottom of table

I’ve a very large table on my page. So I decided to put a horizontal scrollbar on the bottom of the table. But I would like this scrollbar to be also on top on the table. What I have in the template is this: <div style=”overflow:auto; width:100%; height:130%”> <table id=”data” style=”width:100%”>…</table> </div> Is this possible … Read more