Anikasingh (Talk | contribs) |
Anikasingh (Talk | contribs) |
||
Line 2: | Line 2: | ||
<html> | <html> | ||
+ | <body> | ||
+ | <br> | ||
+ | </br> | ||
+ | <h1>Our Team</h1> | ||
+ | |||
+ | <div class="banner-image"> | ||
+ | <img class="img" src="https://c1.staticflickr.com/4/3094/2562106102_0c96e6cfd3_b.jpg"> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | |||
− | |||
<style> | <style> | ||
− | . | + | .container { |
− | + | position: relative; | |
− | + | width: 30%; | |
+ | |||
+ | } | ||
− | |||
− | |||
− | + | .image { | |
− | + | display: block; | |
− | + | width: 100%; | |
− | + | height: auto; | |
+ | } | ||
+ | |||
+ | .overlay { | ||
+ | position: absolute; | ||
+ | top: 0; | ||
+ | bottom: 0; | ||
+ | left: 0; | ||
+ | right: 0; | ||
+ | height: 100%; | ||
+ | width: 100%; | ||
+ | opacity: 0; | ||
+ | transition: .5s ease; | ||
+ | background-color: #7D5E7F; | ||
+ | } | ||
+ | |||
+ | .container:hover .overlay { | ||
+ | opacity: 1; | ||
+ | } | ||
+ | |||
+ | .text { | ||
+ | color: white; | ||
+ | font-size: 20px; | ||
+ | position: absolute; | ||
+ | top: 25%; | ||
+ | left: 25%; | ||
+ | transform: translate(-25%, -25%); | ||
+ | -ms-transform: translate(-25%, -25%); | ||
} | } | ||
</style> | </style> | ||
</head> | </head> | ||
+ | |||
<body> | <body> | ||
− | <br> | + | <br> |
</br> | </br> | ||
− | + | <div class="container"> | |
− | + | <img src="http://azuarondesign.com/images/happy-stick-figure-cliparts-10.jpg" alt="Avatar" class="image"> | |
− | + | <div class="overlay"> | |
− | + | <div class="text">This is Bob, he is an expert on stuff and likes to do other stuff in his free time</div> | |
</div> | </div> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | </body> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 02:54, 2 October 2017
Our Team
![Avatar](http://azuarondesign.com/images/happy-stick-figure-cliparts-10.jpg)