"Creating a visually appealing layout by seamlessly combining images and lists using Bootstrap 3

I currently have an image with an unordered list that links to various parts of the image using imagemapster. When a list item is clicked, relevant information displays on the right side without any issue.

However, I am facing a challenge where the list is appearing at the bottom of the image instead of the expected position. I am utilizing Bootstrap for this project.

<div class="img_beef row col-lg-5 col-md-4 col-sm-4">
      <img class="beef_img img-responsive" id="beef_cut" src="images/beef.png" width="138px" height="357px" usemap="#imageMap" >
          <div class="cut_list col-lg-5 col-md-4 col-sm-4">
              <p>List of cuts</p>
              <ol>
                <li><a item="chuck_li" href="">Chuck , Hump</a></li>
                (rest of the list items)
              </ol>
        </div>
    </div>

Even after applying col-lg-5 to the cut_list div, the issue persists.

.img_beef {
border-right:solid thin #dbdbdb;
margin-right: 70px;
z-index:1000;
}

.img_beef img {
}


.hidden-phone >.img_beef> border-right {
    display:none;
}

.cut_list {
    float:right;
}

.cut_list p {
}

.img_beef ol {
    text-decoration:none;
    color:#777777;
    font-size:10px;
}

.img_beef a {
    text-decoration:none;
    color:#777777;
}

.img_beef a:hover {
    text-decoration:none;
    color:#777777;
}

If additional information is required, please feel free to ask. Any assistance or guidance would be greatly appreciated in resolving this issue.

Answer №1

It appears that the issue lies in the absence of a row for your nested columns. In addition, when utilizing nested columns, it is advisable to place both the list and the image inside a column.

Check out the Bootply for reference: http://www.bootply.com/bQZHDnNFgc

This is the HTML code snippet:

<div class="row">
  <div class="img_beef col-lg-5 col-sm-4">
    <div class="row">
      <div class="col-lg-7 col-sm-8">
        <img class="beef_img img-responsive" id="beef_cut" src="images/beef.png" usemap="#imageMap" >
      </div>
      <div class="col-lg-5 col-sm-4">
        <p>List of cuts</p>
        <ol>
          <li><a item="chuck_li" href="">Chuck , Hump</a></li>
          <li><a item="neck_li" href="">Neck</a></li>
          <li><a item="shin_li" href="">Shin</a></li>
          <li><a item="bolo_li" href="">Bolo</a></li>
          <li><a item="brisket_li" href="">Brisket</a></li>
          <li><a item="brisket01_li" href="">Brisket</a></li>
          <li><a item="flat_rib_li" href="">Flat Rib</a></li>
          <li><a item="prime_rib_li" href="">Prime Rib</a></li>
          <li><a item="short_rib_li" href="">Short Ribs</a></li>
          <li><a item="sirloin_li" href="">Sirloin</a></li>
          <li><a item="thin_flank_li" href="">Thin Flank</a></li>
          <li><a item="fillet_li" href="">Fillet</a></li>
          <li><a item="striploin_li" href="">Striploin</a></li>
          <li><a item="rump_li" href="">Rump</a></li>
          <li><a item="thick_flank_li" href="">Thick Flank</a></li>
          <li><a item="rump_li" href="">Rump</a></li>
          <li><a item="silver_li" href="">Silverside , Topside</a></li>
          <li><a item="shin_li" href="">Shin</a></li>
        </ol>
      </div>
    </div>
  </div>
</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

How can I show the localStorage value in an HTML5 template using Angular2?

I have two keys stored in localStorage and I want to display one of them on my template. I'm having trouble accessing these values. I even created an interface specifically for storing the value of the currentUser key from localStorage. How should I g ...

Achieving the grid-column property as you navigate deeper into the tree

Currently, I am in the process of integrating a CSS design that utilizes grid and grid-column into my Angular application. The design itself is quite effective, structured similar to this: .grid { display: grid; grid-template-columns: repeat(3, 1 ...

Is it advisable to restrict ajax requests?

Is using ajax requests more resource-intensive than a traditional page load? Consider a basic menu with standard links where clicking a link takes you to a new page. By using ajax, I can avoid this default behavior and instead fetch the linked page' ...

"Selecting an element through Drag/Drop will result in the element being

INQUIRY I've encountered an issue with a draggable element ($("#draggable")) that interacts with a checkbox ($('#checkable')). When the $('#draggable') is dragged onto a box ($('#droppable')), it checks $(&apos ...

How to send parameters to Bootstrap modal using a hyperlink

I need help confirming the deletion of a datatable row using a Bootstrap modal dialog. When a user clicks on the delete link, I want a modal to appear asking for confirmation. Here is my code: <c:forEach items="${equipes}" var="equ"> ...

Retrieve the parent element of the selected tag within an iframe

I have an embed iframe that displays an HTML page. Now I am trying to retrieve the class of the parent item that was clicked. <iframe src="//example.com" id="frame" ></iframe> This is the CSS styling for the iframe: #frame{ width:380px; he ...

What is the best way to showcase a PDF file on a webpage with multiple thumbnails using JavaScript or jQuery?

I recently undertook a project at work that involved displaying multiple PDF thumbnails/images on a webpage. These files were dynamically loaded from a directory on my system. Each thumbnail corresponded to a PDF file stored in a different directory. My g ...

Attempting to identify the currently active slide within a basic slider

I have created a simple full-page slider using a list and keeping the second list item within the viewport. I am now trying to add an "active" class to the current slide, which is always the second one. I attempted to target it using nth-child(2) but haven ...

Ways to turn off JavaScript when reaching a certain breakpoint, similar to a media query

I am facing an issue with my <header> and <nav> blocks which are impacted by JavaScript. Is there a way to create a JavaScript solution similar to a media query that would deactivate this JavaScript code if the window width is less than or equa ...

Delaying CSS Keyframe animations

I'm having trouble getting the color squares in my table to appear one by one. I want each color to show up, then disappear, followed by the next color appearing and disappearing, creating a light sequence effect. Any advice or assistance would be gre ...

Raphael JS Path Animation: Wiping Away

I have successfully created a line animation using RaphaelJS, which can be viewed on this jsfiddle link - http://jsfiddle.net/7n040zdu/. My next challenge is to create an erasing animation that follows the initial one. This erasing animation should mimic t ...

What types of events can be used to trigger the start of HTML5 audio playback in mobile Chrome?

When it comes to mobile browsers, Audio elements require user action before play can start. The click event usually satisfies this requirement, but touchstart doesn't seem to be an acceptable initiating event in Chrome on Android or iOS. (Refer below ...

Restoring the style on <a> renders it ineffective

Recently, I encountered an issue where the functionality of the <a> tag is lost when using this CSS code: a {all:unset;}. Does anyone have any suggestions on how to address this problem without completely avoiding the use of that particular code sn ...

When working with Angular Universal, I encountered an issue where localStorage is not defined. This has caused a problem in a function that

I have a function in my application that requires an object as one of its parameters: const checkValues = { promoId: ..., ... unsaved: !JSON.parse(localStorage.getItem('unsaved')) ? [] : JSON.parse(localStorage.getItem('unsaved') ...

I continue encountering the Server Error message: "Error: The default export on page "/products/all" is not a React Component."

I have been trying to create a page to display all the products listed in my server.json file (shown below). { "products": [ { "slug": "live-by-the-sun-love-by-the-moon", "title": "Live by the sun, love by the moon.", "price" ...

Whenever I adjust the layout of the navigation bar, the edges end up getting clipped

I'm having trouble with the border shape of my navbar. When I try to make it a rounded pill shape, the edges get cut off instead of being properly displayed. https://i.stack.imgur.com/sUN2Y.png Below is the HTML template: <template> <div cl ...

Pass along computed style data to the parent component in Vue.js

I am relatively new to VueJS and currently in the process of exploring its features. One specific issue I am facing on my website involves a TopBar component that includes both the logo and the menu. <template> <div id="topBar"> <div ...

Active Menu Design in CSS

Is there a way to efficiently incorporate an active class into the CSS code for my menu? .vertical-nav{ width:200px; height:auto; list-style:none; float:left; margin-right:40px; } .vertical-nav li{ width:200px; height:25px; ...

How can I stop the page from refreshing when clicking on an empty link?

On my webpage, there is a button to download files. However, in some cases, the files do not exist and the download links are blank. This causes the page to reload when the user clicks the link. It would be helpful if I could prevent the page from reloadin ...

activate the design mode for iframes

I am having an issue with enabling design mode for an iframe using JavaScript. When creating the iframe inline, I can successfully turn on design mode by using the following code: iframe.contentDocument.designMode = "on"; However, if I load the iframe us ...