Image Interaction with Multiple Hover Effects

Teaching the different components of a website requires a creative approach. I have created a large image using photoshop, with labeled boxes representing header, sidebar, content, footer, and more. By placing absolutely positioned divs with images inside, users can hover over specific parts of the image - like the logo - to reveal information about that particular element, displayed on top of the logo itself.

However, there seem to be compatibility issues with Internet Explorer, as the images fail to appear, and Safari on Macs displays them incorrectly. You can check out the feature here. Here are snippets from my code. Is there a more effective way to achieve this functionality or resolve the problems with IE and Safari?

HTML

<div class="look" id="look1"><img src="images/extensive_look/logo_info.jpg" width="326"   height="109" alt="Logo Information"></div>
<div class="look" id="look2"><img src="images/extensive_look/header_info.jpg" width="236" height="74" alt="Header Information"></div>
<img src="images/extensive_look/website_layout.jpg" width="1200" height="890"  alt="Website Layout">

CSS

.look:hover img{
visibility:visible; 
}
.look {
position: absolute;
left: 320px;
top: 328px;
}

#look1 {
top:211px;
left:53px;  
}

#look2 {
top: 205px;
left: 487px;
}

#look3 {
top: 282px;
left: 403px;

Answer №1

Something similar to this in addition to the comment:

<section>
<h2 align="center">In-Depth Analysis of a Website</h2><p style="width:800px;margin:0 auto;">Starting with step 1 out of the 7 steps, web design initiates with a thorough understanding of a website. Here is a sample website showcasing various elements. As you move through the content, ensure to hover over each element for detailed information. It is crucial to understand that although these elements are common in most websites, not all websites will include every single one.</p>
  <p style="width:800px;margin:0 auto;">&nbsp;</p>
</section>
<div class="content" style="position:relative;width:1200px;height:890px;background-image:url('images/extensive_look/website_layout.jpg');">
<div class="look" id="look1"><img src="images/extensive_look/logo_info.jpg" alt="Logo Information" height="109" width="326"></div> 

continue with other look features here. 
</div>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Determine the dynamic element's value based on checkbox selections

Need help with my HTML form. I'm trying to extract the value of the element with an id of type when clicking checkboxes. Despite having two elements with values ML and PH, it only returns 'PH' each time. Any insights on this behavior? ...

Expanding the Bootstrap 5 accordion causes it to extend beyond the designated width

My initial expectation was for the accordion component to expand to match its parent's width. However, upon expansion, it not only enlarges itself but also causes the parent element to compress significantly. What steps should be taken to achieve the ...

Is the presence of hidden list items leading to excessive white space?

I have a menu that appears when hovering over a list item. Here is an example: <li> <ul class="topmenu"> <li class="submenu"> <a class="otherIT" href="#" title="Common IT Tasks"><img src="./images/ittasks.png" alt= ...

The hamburger menu is only functional for a single link

I've been developing a hamburger menu for my website, and it seems to be working fine until I click on a link. Once I navigate to a new page, the menu stops responding. To fix this issue, I attempted to use window.location.reload, which worked in Chro ...

How can a JSON string be assigned to a variable for use in a Google pie chart?

I am currently experiencing an issue with my web server. I am sending a JSON object as an argument via render_template to my website, where I intend to use this data to display a Google pie chart. The problem arises when I try to assign the Google pie cha ...

Creating a versatile PHP script capable of managing multiple forms

Each time I develop a website for a client, I find myself in the same cycle of writing form HTML and then creating a PHP script to manage the data. Dealing with lengthy forms or multiple forms can make the process messy. Before diving into crafting a dyna ...

fullcalendar adjusting color while being moved

Currently, I have implemented a fullcalendar feature that displays entries for multiple users with different colored calendars. However, there seems to be an issue when dragging an entry to another date - the color reverts back to default. Below is an exa ...

Attempting to vertically center text within a percentage div

I'm trying to create a button that is centered on the screen with text aligned vertically within the button. I want to achieve this using CSS only and restrict the usage of percentages only. Here's what I have so far: Check out my code snippet h ...

Using AngularJS to incorporate ng-include with ng-click functionality

I am trying to figure out a way to insert HTML that is specifically optimized for the controller into an alert div. Unfortunately, I have been unsuccessful so far... <script type="text/ng-include" id="login.html"> <form data-select="exepti ...

What could be the reason that my Bootstrap dropdown menu is not appearing on my website

I am currently utilizing Angular in my project. I have incorporated bootstrap and jQuery via NPM install, and specified them as dependencies in angular.json. The navbar on my site contains a dropdown menu. When I hover over the dropdown menu, it should di ...

Ways to modify the color of cells in a table generated from JSON

In developing an HTML table based on JSON data, I have created a university semester map that displays student information including their ID, year, term, and required courses for graduation. While the table is successfully created, I aim to customize the ...

Aligning a hyperlink with an image on an HTML page

I'm attempting to centrally position an image within a link: <a href="URL"> <img class="my_class" src="SRC" /> </a> The CSS code I have been using is as follows: .my_class { position:relative; display: block; margin-left: ...

Using JavaScript to extract information from an array object and display it within an HTML table

Within my project, I am dealing with an object that contains valuable data. Users have the capability to select an option, triggering a list of results to be displayed as links. Upon clicking on a link, I aim to showcase detailed information about the co ...

Tips for retrieving only the ID using the onchange event in a select dropdown in Angular 2

I am working with Angular 8 and I have a select box with an onchange function that retrieves an ID. However, when I check the console, the ID is displayed in the format 2:2 instead of just 2. Can someone please assist me with this issue? <select ...

Excess padding in Internet Explorer 7 when a table is nested within a div tag

I have exhausted all potential solutions found on the internet and still cannot seem to solve this issue. Here is an example page that highlights the problem: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/l ...

JQuery button refusing to trigger点击

I've searched high and low on various coding forums but still can't find a solution. My HTML code is as follows: <input type="button" value="Sign Up Here" id="buttonClick"> and I have a script at the top that looks like this: < ...

Failure of event watcher on dynamically updated content

Any help would be greatly appreciated! :) I am currently using JavaScript to dynamically add fields to a document, but I have noticed that the event listener only works on predefined fields. For instance, in the code snippet below, the 'lozfield&apo ...

Navigating to a webpage using the href attribute in JavaScript

Due to specific design constraints, I am unable to wrap elements with an Anchor tag. However, I can implement a click event on those elements. How can I navigate to the link correctly? The code snippet from before: <a href="Page1.html"> <but ...

Shorten Text - React Native

I currently have a React Native application with a FlatList component. The logic I initially implemented was to display an Expand/Collapse arrow whenever the content at the 100th position in the list is not empty. However, I now realize that this approach ...

Ways to create a self-contained video viewer

Is it possible to create a self-contained video player similar to jwplayer or the YouTube video player using just HTML, CSS, and JavaScript? I know that I can build a video player by utilizing the video tag along with some custom javascript and css, but ho ...