Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style type="text/css">
- .caption {position:relative; width:200px;}
- .caption:after{
- content:attr(alt);
- display:block;
- background:red;
- color:white;
- width:100%;
- text-align:center;
- }
- </style>
- <p class="caption" alt="Hello this is the alt"><img width="200" id="hello" src="/content/images/687474703a2f2f6769746875622e73332e616d617a6f6e6177732e636f6d2f626c6f672f7265642d706f6c6f2e6a7067.jpeg"></p>
Add Comment
Please, Sign In to add comment