mod_rewrite module allows to manipulate url using unlimited number of rules . Each rule consist of unlimited number of condition

  • Problems

    This line enable URL Rewriting . It must be enabled via the RewriteEngine directive! and if your .htaccess file is going to use rewrite rules, you should always include this line. Otherwise, you can’t be sure if its enabled or not. The string “on” is case insensitive.

Syntax

Do you want to swap background image of any element. It is process of moving background image.

STEP FOR CREATING SWAP BACKGROUND:

1)Set background image for selected element and position for it .
2)Set same background image for selected element in hover case  and set different position for it.

STEP ONE: Set background image for selected element and position for it .

#element{background-image:url(imagelink);background-position:10 10;height:100px;width:100px;}

STEP TWO: Set same background image for selected element in hover case  and set different position for it.

#element{background-image:url(imagelink);background-position:12 12;}

<html>
<head>
<style>
#pi{height:1000px;width:1200px;background-image:url(project1.png);background-position:10 10;}
#pi:hover{background-image:url(project1.png);background-position:14 14}
</style>
</head>
<body>
<p id="pi" >

</p>
</body>
</html>

No comments:

Post a Comment