In this article you will learn how to create imagemap tooltips with CSSCSS ( Cascading style sheets ) means “multi-level format templates” in German. CSS is a formatting language for HTML, SVG and XML documents. CSS is used to separate the content of a website from the design! There is more information here . and jQueryjQuery is a fast, small and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation and Ajax much easier with an easy-to-use API that works in a variety of browsers. With a combination of versatility and extensibility, jQuery has changed the way millions of people write JavaScript. source mehr erfahren.
Understanding image maps
An image map is an HTML element that makes it possible to click on different areas of an image, which leads to different destinations or triggers different actions. <div id="image-map"> <img width="611" height="438" src="your-image.jpg" alt="Our Locations"> <div class="pin" data-xpos="255" data-ypos="65"> <h2>Chelsea Place</h2> <ul> <li><strong>123 Street Address</strong></li> <li>City, ST, 12345</li> <li><strong>(555) 555-5555</strong></li> <li><a href="#" target="_blank">Website</a></li> <li>Coming in Spring 2015</li> </ul> </div> </div>
Styling with CSS
Let’s start by creating a basic CSSCSS ( Cascading style sheets ) means “multi-level format templates” in German. CSS is a formatting language for HTML, SVG and XML documents. CSS is used to separate the content of a website from the design! There is more information here . style for the tooltip. We want the tooltip to be displayed when users move the mouse over an image map area. /* Web Font */ * { font-family: 'Titillium Web', sans-serif; }
/* Relative positioning*/ #image-map { position: relative; margin: 150px auto 20px auto; }
/* Hide the original tooltip content */ .pin { display: none; }
/* Begin styling the tooltips and pins */ .tooltip-up, .tooltip-down { position: absolute; width: 25px; height: 25px; background-color: #000; border-radius: 50%;}
.tooltip ul { margin: 0; padding: 0; list-style: none; }
jQuery for tooltip interaction
$(document).ready(function(){
// Set the width and height of the image card so that they match the image size $(‘#image-map’).css({‘width’:$(‘#image-map img’).width(), ‘height’:$(‘#image-map img’).height() })
//Tooltip direction
var tooltipDirection;
for (i=0; i<$(“.pin”).length; i++) { // Set the direction type of the tooltip – up or down
It calculates the tooltip position based on the mouse coordinates.
As experts at Olbricht IT, we are proud to have optimized service-erp.de for mobile use. Our goal was to create a seamless, user-friendly experience for all mobile device users. Here’s a quick look at how we achieved this, with particular reference to our work with the Divi ThemeDivi is a WordPress theme and has great features. With this theme you hardly need any additional plugins in WordPress! Official website of Divi and WordPressWordPress does more than 38.8% of all websites on the internet. Yes – more than one in four websites you visit is likely powered by WordPress. • WordPress.org , often as self-hosted WordPress is the free open source WordPress software that you can install on your own web host to create a 100% custom website.• WordPress.com is a for-profit, paid….
Responsive design with Divi ThemeDivi is a WordPress theme and has great features. With this theme you hardly need any additional plugins in WordPress! Official website of Divi: We used the Divi ThemeDivi is a WordPress theme and has great features. With this theme you hardly need any additional plugins in WordPress! Official website of Divi to create a responsive and flexible design for service-erp.de. DiviDivi is a WordPress theme and has great features. With this theme you hardly need any additional plugins in WordPress! Official website of Divi is known for its ease of use and flexibility, which has allowed us to create a design that automatically adapts to different screen sizes and devices. With DiviDivi is a WordPress theme and has great features. With this theme you hardly need any additional plugins in WordPress! Official website of Divi, we have been able to ensure that every aspect of the website, from navigation to content, is optimally displayed on mobile devices.
WordPressWordPress does more than 38.8% of all websites on the internet. Yes – more than one in four websites you visit is likely powered by WordPress. • WordPress.org , often as self-hosted WordPress is the free open source WordPress software that you can install on your own web host to create a 100% custom website.• WordPress.com is a for-profit, paid… – A solid foundation:WordPressWordPress does more than 38.8% of all websites on the internet. Yes – more than one in four websites you visit is likely powered by WordPress. • WordPress.org , often as self-hosted WordPress is the free open source WordPress software that you can install on your own web host to create a 100% custom website.• WordPress.com is a for-profit, paid… is the backbone of service-erp.de. As the world’s leading content management system, WordPressWordPress does more than 38.8% of all websites on the internet. Yes – more than one in four websites you visit is likely powered by WordPress. • WordPress.org , often as self-hosted WordPress is the free open source WordPress software that you can install on your own web host to create a 100% custom website.• WordPress.com is a for-profit, paid… offers a robust and flexible platform for websites of any size. The combination of WordPressWordPress does more than 38.8% of all websites on the internet. Yes – more than one in four websites you visit is likely powered by WordPress. • WordPress.org , often as self-hosted WordPress is the free open source WordPress software that you can install on your own web host to create a 100% custom website.• WordPress.com is a for-profit, paid… and DiviDivi is a WordPress theme and has great features. With this theme you hardly need any additional plugins in WordPress! Official website of Divi enabled us to develop a powerful, scalable and user-friendly mobile website.
Optimization for speed: Mobile users expect fast loading times, and that’s exactly what we kept in mind. We have used state-of-the-art techniques to minimize loading times and guarantee a fast browsing experience.
At Olbricht IT, we understand the importance of a strong mobile presence. With our expertise in WordPressWordPress does more than 38.8% of all websites on the internet. Yes – more than one in four websites you visit is likely powered by WordPress. • WordPress.org , often as self-hosted WordPress is the free open source WordPress software that you can install on your own web host to create a 100% custom website.• WordPress.com is a for-profit, paid… and DiviDivi is a WordPress theme and has great features. With this theme you hardly need any additional plugins in WordPress! Official website of Divi, combined with our focus on user experience and speed, we have turned service-erp.de into a mobile website that not only looks good, but also works great.
Leave a Reply