Seating arrangement featuring wing-like extensions - back in business

Yesterday I had inquired about a solution for creating wing-like structures for a plane (for a seatmap). The question and its corresponding "solution" can be accessed here: Building a seatmap with kind of wings for the plane

We received a solution, but now a new issue has arisen: when the content is small enough that the cabin does not need to scroll, everything works fine. However, once there are enough seat rows to require scrolling, the wings must move along with the seats. They cannot remain static, as it is crucial for passengers to know if their seat will be positioned over a wing of the aircraft.

To view the demonstration, visit: http://jsfiddle.net/SchweizerSchoggi/0Lu4vspq/26/

<div id="seatmap">
    <div id="plane">

        <table class="rows">
            <tr><th>E</th></tr>
            <tr><th>D</th></tr>
            <tr><th></th></tr>
            <tr><th>C</th></tr>
            <tr><th>A</th></tr>
        </table>


        <div id="cabin">        
            <table>
            <tr class="wingRowTop">
                <td class="noSeatGalley"></td>
                <td class="noSeatGalley"></td>
                <td class="noSeatGalley"></td>
                <td class="noSeatGalley"></td>
                <td class="wingSeat"></td>
                <td class="wingSeat"></td>
                <td class="wingSeat"></td>
                <td class="wingSeat"></td>
                <td class="wingSeat"></td>
                <td class="noSeatGalley"></td>
                <td class="noSeatGalley"></td>
                <td class="noSeatGalley"></td>
                <td class="noSeatGalley"></td>
                <td class="noSeatGalley"></td>
                <td class="noSeatGalley"></td>
                <td class="noSeatGalley"></td>
                <td class="noSeatGalley"></td>
                <td class="noSeatGalley"></td>
                <td class="noSeatGalley"></td>
                <td class="noSeatGalley"></td>
                <td class="noSeatGalley"></td>
            </tr>
[...]

Thank you for any suggestions on how to make the wings more adaptable (scrollable)!! Please note that the dimensions of the plane are not fixed, so a plane may have varying numbers of rows.

Answer №1

It appears that creating the desired shape with your existing code may not be possible due to the hidden overflow on the parent element. You might need to consider completely redesigning it for better results.

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

What is the best way to choose specific attributes in CSS?

My website has three large CSS files, each containing many classes. Some of these classes have the same name but are defined in different files. For example: CSS1: ... .btn-primary { background: #000; } ... CSS2: ... .btn-primary { back ...

Having trouble getting the jquery tabify plugin to work properly

I've put in a lot of effort and double-checked everything, but for some reason this tabify function just won't work. I have gone through my code 100 times but still can't seem to pinpoint the error. Here is the code I am working with: <! ...

ng-repeat is not functioning properly despite the presence of data

Currently, I am in the process of building a basic Website using the MEAN stack, but I'm facing an issue with an ng-repeat that is failing to display any content. Oddly enough, when I attempt something similar in another project, it works perfectly fi ...

Navigate between pictures using hover in jQuery

I am working on creating a feature where images cycle through individually every 2 seconds, but switch to the right image when its associated link is hovered. So far, I have managed to make the images show up on hover, but I am struggling with getting them ...

Selenium's xpath feature is designed to target only the elements that are currently visible

When using Selenium xpath, it only matches visible elements on the HTML page. Even though there are many other elements present but not visible, the xpath will only return those that are currently visible. This is in contrast to checking the xpath in the ...

Ways to establish communication between an iframe and its parent website

I have a website embedded in an iframe that is not on the same domain. Both websites belong to me, and I would like to establish communication between the iframe and the parent site. Is this achievable? ...

Unusual conduct exhibited by jQuery's css() function for setting the width

My goal is to retrieve the width of the initial .imagen element and apply it to the img within .imagen. HTML: <div class="imagen"> <div class="normal"> <img> </div> <div class="hover"> <img> ...

Achieving consistent image column heights that decrease evenly

I am trying to create a grid-like layout where each column in a row has the same height and contains an image while maintaining its proportions. Currently, I am using the flex-grow property to adjust the ratio of the images. Although this works, it often ...

Does the placeholder property exist in versions of IE8 or lower?

Although the real html5 placeholder feature may not work in IE10 and below, would the actual tag property still be accessible? To implement my custom placeholders, I utilize the script below: if(core.isInput(el)) { el.initValue = str; el.txtColor ...

What steps should be taken to empty a table before adding new rows to it?

After conducting thorough research, I am still unable to find a solution to my issue. I have a table that I am populating using JQuery and while it populates properly, I cannot seem to clear it before populating it again. Below is the HTML code: $("#sea ...

Is there a way to determine if a container is overflowing at the top?

Currently, I am using Puppeteer to scrape Slack. My goal is to confirm whether I have scrolled to the very top of the channel feed. The issue arises because the channel feed does not actually scroll, making it impossible for me to utilize the method outli ...

display select items from a webpage

Despite researching many topics, I am still unable to get this to work. My goal is to hide certain elements on my webpage when the user tries to print it. I am currently using Bootstrap 5, which includes the following CSS: @media print{.d-print-none{disp ...

Adjustable height for Material UI tab components

I encountered an issue that I initially thought was related to the general configuration of my app and the height I assigned to my page wrapping classes. However, after creating a simple out-of-the-box material UI tab example, it became clear that this beh ...

What is the best way to center text vertically in a <div> using CSS?

This is my first attempt at creating a chrome extension, and I am currently working on centering text. Right now, I am using text-align: centre; to align the text horizontally, but I am struggling to figure out how to align it vertically. As a result, my t ...

The method I used to position a triangle at the bottom border of a parent element with relative

https://i.stack.imgur.com/RZjJ9.png I am trying to achieve a centered triangle within a border, but I am facing a challenge due to the parent component being relative. When I remove the relative positioning, I struggle to position the triangle in the cent ...

What is the best way to implement a slide-down animation on a stateless component in React JS using either ReactCSStransitionGroup or ReactTransition

I am looking to create an animation for a stateless component that starts off with display:none, and then becomes visible when the parent component's state changes. I want it to slide down like a dropdown menu effect. I am new to animations and have b ...

Tips for avoiding anti-aliasing of bitmap font on Internet Explorer and Firefox

I am currently experiencing issues with font smoothing when using a basic bitmap font for icons. While the font appears crisp in Chrome, it appears blurry in IE and FF. Do you have any recommendations on how to resolve this problem? You can view a screen ...

What could be the reason my span is not altering color as I scroll?

Important HTML Knowledge <section class="home" id="home"> <div class="max-width"> <div class="home-content"> <div class="text-1">Hey t ...

"Selecting elements using the nth-of-type CSS selector alongside other

Dealing with a grid layout that includes spacers between certain items, I attempted to use the :nth-of-type selector in CSS to style only the first column of items and not apply those styles to the right side. However, it seems that the CSS gets confused w ...

Retrieving the first five rows from a table with data entries

My task involves working with a table named mytbl, which contains 100 rows. I need to extract only the first five rows when a user clicks on "Show Top Five." Although I attempted the following code, the alert message returned 'empty': var $upda ...