FeedBurner FeedCount

Showing posts with label layout. Show all posts
Showing posts with label layout. Show all posts

Wednesday, December 18, 2013

How to rotate an image by rui santos



How to rotate an image by rui santos




1st do a simple html file with image;

<html>
    <head>
        <title>Rotate my Image</title>
        <link rel="stylesheet" type="text/css" href="rotate_style.css" />
    </head>
  
    <body>
        <img src="5.png" alt="myImage">
    </body>
</html>

Then: do the rotate_style.css

 img{
-webkit-transition-duration: 0.8s;
-moz-transition-duration: 0.8s;
transition-duration: 0.8s;

height: 450px;
width: 450px;

-webkit-transition-property: transform;
-moz-transition-property: transform;
transition-property: transform;
}
img:hover{
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
height: 900px;
width: 900px;
}

After this code. run index.html in your browser and hover the image. ENJOY! ^_^




rui santos

Monday, October 28, 2013

HOW TO CREATE MY OWN LAYOUT IN HTML

<html>
<head>
<title>My Menu Deisgn</title>
<style>
a
{
border-top: 1px solid orange;
border-bottom: 1px solid gold;
border-right: 1px solid orange;
border-top-right-radius: 10px;
background-color: gold;
padding-left: 10px;
padding-right: 10px;
text-decoration: none;
color: black;
}
#tbl_bg
{
background-color: rgba(0,0,0,0.0);
}
#blk{
background-color: black;
}
#gl{
background-color: orange;
}
</style>
</head>
<body>

<table align='center' width='700' height='150' border='1' id="blk">
<tr>
<td>

</td>
</tr>
</table>

<table align='center' width='700' id="gl" border="1">
<tr>
<td>
<a href="#">Home</a>
<a href="#">Gallery</a>
<a href="#">About Us</a>
<a href="#">Contact Us</a>
</td>
</tr>
</table>

<table align='center' width='700' height='500' border='1' id="gl">
<tr>
<td>

</td>
</tr>
</table>

<table align='center' width='700' height='100' border='1' id="blk">
<tr>
<td>

</td>
</tr>
</table>

</body>
</html>