Image Markers

Developer
Size
3,194 Kb
Views
50,600

How do I make an image markers?

As long as you wrap your image in the '.avatar' class (which could be an anchor link or any other container element), these image markers are pretty flexible. Image size doesn't matter.. What is a image markers? How do you make a image markers? This script and codes were developed by Mike Fowler on 22 August 2022, Monday.

Image Markers Previews

Image Markers - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Image Markers</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .avatar { display: inline-block; position: relative;
}
.avatar img { box-shadow: 0 0 0 5px white, 0 3px 5px 4px rgba(0, 0, 0, 0.1);
}
.avatar::after { content: ''; position: absolute; top: 100%; left: 50%; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 12.6px solid white; margin-left: -7px; -webkit-filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.1));
}
.avatar_rect img { border-radius: 10px;
}
.avatar_round img { border-radius: 50%;
}
/* Presentation */
html, body { background: #ddd;
}
body { padding-top: 40px;
}
.container { width: 607px; margin: 0 auto; position: relative;
}
.avatar { position: absolute; top: 1000px;
}
.avatar:nth-child(1) { top: 58px; left: 44px;
}
.avatar:nth-child(2) { top: 0; left: 198px;
}
.avatar:nth-child(3) { left: 376px; top: 37px;
}
.avatar:nth-child(4) { left: 0; top: 215px;
}
.avatar:nth-child(5) { left: 180px; top: 150px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="container"> <div class="avatar avatar_rect"> <img src="http://placehold.it/74x102" alt="" /> </div> <div class="avatar avatar_round"> <img src="http://placehold.it/90x90" alt="" /> </div> <div class="avatar avatar_round"> <img src="http://placehold.it/140x140" alt="" /> </div> <div class="avatar avatar_round"> <img src="http://placehold.it/90x90" alt="" /> </div> <div class="avatar avatar_rect"> <img src="http://placehold.it/140x140" alt="" /> </div>
</div>
</body>
</html>

Image Markers - Script Codes CSS Codes

.avatar { display: inline-block; position: relative;
}
.avatar img { box-shadow: 0 0 0 5px white, 0 3px 5px 4px rgba(0, 0, 0, 0.1);
}
.avatar::after { content: ''; position: absolute; top: 100%; left: 50%; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 12.6px solid white; margin-left: -7px; -webkit-filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.1));
}
.avatar_rect img { border-radius: 10px;
}
.avatar_round img { border-radius: 50%;
}
/* Presentation */
html, body { background: #ddd;
}
body { padding-top: 40px;
}
.container { width: 607px; margin: 0 auto; position: relative;
}
.avatar { position: absolute; top: 1000px;
}
.avatar:nth-child(1) { top: 58px; left: 44px;
}
.avatar:nth-child(2) { top: 0; left: 198px;
}
.avatar:nth-child(3) { left: 376px; top: 37px;
}
.avatar:nth-child(4) { left: 0; top: 215px;
}
.avatar:nth-child(5) { left: 180px; top: 150px;
}
Image Markers - Script Codes
Image Markers - Script Codes
Home Page Home
Developer Mike Fowler
Username mikefowler
Uploaded August 22, 2022
Rating 3.5
Size 3,194 Kb
Views 50,600
Do you need developer help for Image Markers?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Mike Fowler (mikefowler) Script Codes
Create amazing love letters with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!