Today morning, i face one error in wordpress after updating one plugin. which is “Briefly unavailable for Scheduled maintenance. Check back in a minute“. The same error occurred few weeks back but i didn’t pay attention there and resolved automatically next morning. But this time it was necessary to resolve, as i had important work to do.
There is very simple tweek, to resolve this error,
Go to Cpanel or any ftp client and open file “wp-settings.php“.
you will find below line :
// Check if we're in maintenance mode.
wp_maintenance();
Simply comment that line :
// Check if we're in maintenance mode.
// wp_maintenance();
Yesterday my friend come across a javascript error “expected identifier, string or number” in internet explorer (IE). The same code was running great in Mozilla and chrome. here the snap of code causing an error:
In this article, i will emphasize on the way of vertically align the text in DIV tag of HTML.
First note i want to share is that, DIV tag is not for the purpose to contain the texts. It is utilized mainly for the placing controls and components.
Below is two methods which will work on all browsers to vertically align the text in DIV tag.
Steps for Method 1:
Specify the parent container as position:relative or position:absolute.
Specify a fixed height on the child container.
Set position:absolute and top:50% on the child container to move the top down to the middle of the parent.
Set margin-top:-yy where yy is half the height of the child container to offset the item up.
Many designers resist using header tags (H1, H2, etc.) on their Web pages because the spacing around the tags can break a tight page layout.
Create attractive headers in HTML using CSS
Heading tags (H1 through to H6) are given more weight by search engines than regular body copy. So they should be used wisely to reinforce the page’s overall keyword theme……By SEO
I have used header tags and applied some css effects, it easy to write with 10-12 line of css and html Output will look like image shown.
First we need to add a div tag to our html page to put header on it.
h1 {
background: red; /*Background color to header*/
background: -moz-linear-gradient(top, red, FFFFFF);
/*from to colors, I have used simple name it can be replaced by color codes*/
background: -webkit-gradient(linear, left top, left bottom, from(red), to(white));
padding: 10px 20px;
margin-left: -20px;
margin-top: 0;
position: relative;
width: 70%;
/*from droping box shadow at the bottom of header*/
-moz-box-shadow: 1px 1px 3px #292929;
-webkit-box-shadow: 1px 1px 3px #292929;
box-shadow: 1px 1px 3px #292929;
color: #454545;
text-shadow: 0 1px 0 white;
}
We are using the advantage of jquery of adding and removing the CSS class. we cannot left blank to CSS class, as it may remove the existing other class from the tag.
$(document).ready(function(){
This line causes the execution of jquery after complete loading of page.