The CSS Grid code functions perfectly in Firefox, yet encounters compatibility issues in Chrome

I am attempting to create a grid with one column and two rows, where the second row expands to fill all available space. This code works in Firefox 58 but fails in Chrome 63. Can anyone spot an error in the code?

<div id="app">
  <div id="app-hdr"></div>
  <div id="app-body"></div>
</div>

html, body, #app {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
#app {
    display: grid;
    grid-template-rows: 60px auto;   
    grid-template-columns: auto;     
    grid-template-areas: 
        "header"
        "content";
    background: #F00;
}
#app-hdr{
    grid-area: header;
    background: #AAA;
}
#app-body{
    grid-area: content;
    background: #666;
}

https://jsfiddle.net/wog9uhud/

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

Tips on adjusting dropdown menu placement as pixel size decreases

Is there a way to adjust the drop-down menu to be centered when the screen size is reduced? I'm having trouble accessing the drop-down menu because it's not in the middle. Please excuse any mistakes in my English and coding Here is the code: ...

Maximizing the number of divs arranged horizontally in HTML while utilizing the full line width

My website consists of several fixed-width div elements that are styled to flow inline using the display type inline-block. This layout creates empty space at the end of the line where subsequent div elements cannot be accommodated and have to wrap to the ...

Discrepancies in Span Element Behavior Between Firefox and Chrome

Seeking assistance with a tooltip feature that reveals extra information when a user hovers over a span. The issue arises when the span is split across two lines, causing the extra information to appear in different positions on Firefox and Chrome browsers ...

What could be causing the Quasar drawer to overlap the Quasar toolbar in a Vue application?

I am currently utilizing the quasar UI framework and have a main layout file that includes only a toolbar. This toolbar is meant to display across all pages in my application. <template> <q-layout view="hHh Lpr lff" style="backgro ...

Troubleshooting problem with BxSlider and collapsible elements in Bootstrap

I'm facing a challenge trying to integrate a bootstrap collapsible element into a bxslider slide without success. Does anyone have any suggestions on how to resolve this issue? Feel free to check out my sample code on the following link: ...

Strategies for limiting a table row in JavaScript or jQuery without utilizing the style tag or class attribute for that specific row

I am looking for a way to limit the display of records in a table. Currently, I can restrict the table rows using the style property, but this causes UI issues such as missing mouse-over effects for the entire row. I need to ensure that mouse-over functi ...

JavaScript bug: receiving an 'undefined' error when using getElementsByClassName

How can I retrieve the children of a specific div that belongs to the "vid_div selected" class? First, I select the correct div using this code: var vid_div = document.getElementsByClassName('vid_div selected'); However, when attempting to acces ...

The clear fix HTML code doesn't seem to be functioning properly in Google Chrome

Recently, I crafted this basic HTML: Within this code are 2 SPAN elements. I intended for one to sit beneath the other by clearing the float. The bbb element is styled with float:left. To handle the layout on the aaa element, I utilized Facebook's ...

Apply a gradient background color to the entire side menu

I recently completed a project using Ionic 3 with a side menu. I am now trying to implement a gradient background color for the entire side menu, but it's proving to be more challenging than expected. Any suggestions or ideas on how to achieve this? ...

I am looking to enable the selection of multiple buttons within a List group

I'm facing an issue with my code where the dropdown menu is not displaying dropdown items. I need help fixing this problem, it would be greatly appreciated. Additionally, I also want to enable multiple selection of buttons and change the color of each ...

the background image fails to appear in the div elements when using mobile jQuery

After setting a background image for a mobile page using mobile.jquery, I encountered an issue. When linking to the cdn version of the jquery css file: <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.css" /& ...

Encountering problems with Node Sass versions while trying to import custom scss files into app.js

I've encountered several articles on stack that didn't quite solve my issues. The problem arose when I tried to import a custom SCSS file into my React app.js to override bootstrap theme colors. Here are the style imports in my App.js: import &q ...

Conflicting banner element positioning due to scroll bar pages interference

Is there a way to prevent elements from moving when navigating to a page with a scroll bar? I've observed that my elements shift slightly when selecting a page with a scroll bar. See an example here. I am considering forcing a scroll bar to appear on ...

Having an issue with Bootstrap icons displaying as blank boxes across all browsers

It seems to be a similar issue to what's discussed here: Glyphicons rendering as empty box Despite my efforts to search for solutions online, I can't figure out what the problem is. It all began when I first started using bootstrap. I've e ...

What are the steps to adjust my table width without allowing horizontal scrolling?

1- I need help fixing the width of my table so that it stays within the screen. 2- Is there a way to display only the first 100 characters of table data and show the rest when clicked? Any assistance would be greatly appreciated. Here is a snippet from ...

Adjust the dimensions within the class in bootstrap

Objective: My goal is to adjust a CSS code to be 700 instead of 870, based on the second image. Challenge: Currently, the default value is set at 870 (as shown in picture 1), but I need to use CSS to change it to 700. I attempted to make this adjustm ...

Tips for organizing the contents of nested items in alignment

Here's a layout I've created, you can view it on CodePen. .parent { display: flex; justify-content: space-between; } .left { flex-grow: 1; flex-basis: 0; background-color: blue; } .right { background-color: red; flex-grow ...

Flexbox allows for a unique custom layout design for your gallery

I'm having some difficulty implementing a gallery layout using flexbox. https://i.sstatic.net/cGplk.png Currently, my code is displaying two small images along with the large one in the top row, and then placing the remaining two small images in the ...

Adaptable CSS column layout

I'm in the process of setting up a two-column layout. The main content column houses the blog card, while the secondary column I'm attempting to position at the top right corner. Check out this link for the blog card. This is the Bootstrap layo ...

Creating a tooltip for new list items: A step-by-step guide

I'm currently working on creating a tooltip using JQuery for incoming list items. Users will input text in a textfield, press enter, and those values will be displayed in a visible list on the website. I intend to have a tooltip associated with each i ...