Elements within the parent div container are not displaying correctly

Need some assistance with styling in this situation. I have a table set up within a parent div, but it's not displaying properly. When I move the table outside of the parent div, it works fine. Here is the code:

<div class="culture" style=" display: none;">
    <div style=" background-color: #373a36;">
         <h2 style=" color: #fff; text-align: center;">TARGETS</h2>
    </div>

    <div style=" width: 30%; background-color: #d6d2c4;">
        <h3 style=" text-align: center; padding-top: 10px;">BY 31DECEMBER 2016</h3>

             <div style=" padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: center;">
                  <p>Content goes here</p>
             </div>
     </div>

    <div style=" width: 30%; background-color: #f3f1ed; float: left;">
       <h3 style=" text-align: center; padding-top: 10px;">BY 31 DECEMBER 2017</h3>

           <div style=" padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: center;">
               <p>Content goes here</p>
           </div>
    </div>

   <div style=" width: 30%; background-color: #d6d2c4; float: left;">
        <h3 style=" text-align: center; padding-top: 10px;">FROM 2018 TO 2020</h3>

            <div style=" padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: center;">
                <p>Content goes here</p>
            </div>
    </div>

If you have any suggestions on how to fix this issue, please let me know!

Answer №1

The seventh line contains the attribute style=" display: none;".

This styling rule causes the div and its descendants to be hidden from view.

If you delete this attribute, the remaining content will become visible.

Check out the solution on this link.

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 you create an accordion menu that expands when a button is clicked?

Is there a way to make an accordion menu open when the 'More' button is clicked? I've tried, but it always starts in its expanded state and collapses when the button is clicked. What I really want is for the accordion to be closed initially ...

What is the best way to elegantly finish a live CSS animation when hovering?

Currently, I am working on a planet orbit code where I want to enhance the animation speed upon hover. The goal is for the animation to complete one final cycle at the new speed and then come to a stop. I have been successful in increasing the speed on hov ...

Prevent element displacement upon resizing the window in Bootstrap

My latest project involved creating a simple HTML code using HTML, CSS, and Bootstrap. I utilized col-md-4 and col-md-8 to divide a row. However, I noticed that the background image from col-md-8 gets shifted down when I resize the window. Below, I have p ...

What is preventing the 'p:nth-child(1)' from functioning properly in my HTML code?

Even though I used p:nth-child(1){color: white;} in my CSS style tag, it did not produce the expected result. body { background-color: #162b85; } button, p:nth-child(1) { color: white; } <p class="center">Register your account</p&g ...

What iOS Printing and HTML formatter should you use and what level of sophistication is best?

Currently, I have successfully created an iOS 5 application that sends a job to the print queue. The functionality works fine and utilizes the UIMarkupTextPrintFormatter to generate the document in HTML format. At this point, I am using a simple HTML str ...

Utilizing CSS to incorporate percentage points

Currently, I am facing a challenge in implementing a vertical line with percentage marks. It needs to be positioned relative to the percentage bar, just like how it appears in the screenshot below: https://i.stack.imgur.com/CNWUV.png I attempted a basic ...

-webkit-box has no shrinking effect

I'm attempting to design a dynamic layout using the -webkit-box property. While the box adjusts properly when the children grow, I've noticed that when the children are resized smaller, the box remains in an enlarged state, especially with multi ...

What is the best way to collapse additional submenus and perform a search within a menu?

Whenever a sub-menu is activated, only the current sub-menu should be open while the others remain closed. I need the search function to be enabled on the text box and display all items containing the specified value while also changing the color of <a ...

Creating a jQuery variable in version 1.9.1 results in an error, whereas in version 1.8.3 it does not succeed

Recently updated to version 1.9.1 and encountered some technical difficulties. Despite that, everything works fine except for one thing: var $newthumbs = $(' <div id=\"car-7\" class=\"thumbnail_car thumbnail span2&bso ...

Looking to utilize the <pre> tag without any external CSS styles defined in a separate stylesheet?

In my current project, I am using bootstreap v3.2. I am facing an issue where I need to display fetched content from the database on a page using the <pre></pre> tags. However, the problem is that the content is being displayed with the default ...

Add the class "form-group-row" to the "form-horizontal" element

Check out the code snippet here: http://www.bootply.com/h0E7YjPU4n. Is there a way to adjust spacing between input fields while keeping them the same height? Any tips on making input fields uniform in length? ...

React app experiencing an unexpected issue with horizontal scroll bar appearing unnecessarily

Currently, I am attempting to implement a carousel using react-bootstrap within my react application. The goal is to have a black background container where the carousel will reside, similar to this illustration Desired Container However, upon creating t ...

The issue with grunt-contrib-compass not functioning properly within npm

I recently installed npm and grunt, followed by installing grunt-contrib-compass. However, when I try to run grunt, I encounter the following error: Running “compass:dist” (compass) task Warning: not found: compass Use –force to continue. Aborted du ...

Experiencing issues with the Google Drive file selection API due to JavaScript

I am having trouble implementing a Google file picker in my Django Project. Every time I try to create an HTML page with an integrated Google file picker, I encounter a 500 "Something went wrong" error. https://i.sstatic.net/6JMh7.png This issue arises a ...

Select2 Dropdown Options Do Not Update Background Color

I am currently implementing the Select2 Input CSS/jQuery framework from to assist me in handling multi-select boxes. However, I am facing difficulty in changing the background color of the results when the select box is clicked. To provide a better under ...

What is the best method to modify the hover text color in a Bootstrap navbar?

Whenever the cursor hovers over the letters, I attempted to modify their color, but unfortunately, it didn't work as expected. nav a { text-decoration: none; } .logo { height: 3rem; } .navbar-nav .nav-item .nav-link.custom:hover { color: ...

Displaying dynamic content in JavaScript using Galleria module

Hello and thank you for taking the time to check out my question. I've encountered a little issue that I can't seem to solve by myself. I'm hoping someone could lend me a hand. On my website, there is a dynamic field filled with a code from ...

Smoothly scroll down to the bottom of the page with a jQuery button using the anchor

Recently, I've been working on setting up a navbar with buttons that smoothly scroll down to specific sections when clicked. However, as a beginner in jquery, I'm having some trouble figuring out how to make it work seamlessly. Can anyone guide ...

Is there a common method for generating complex identifiers to be used as the HTML element's id, class, or name attributes

Is there a recommended method for "encoding" complex identifiers such as {Source:"ARCH.1", Code: "456-789.456 A+", SubNumber:##2} to be used in HTML elements' id, class, and name attributes? I could come up with something myself, but perhaps there is ...

Maximizing Efficiency with Single Click Line Editing in the Newest Version of jqgrid

There seems to be an issue with single click inline row editing in the latest free jqgrid from github master. BeforeSelectRow, clicking on a row to start inline editing causes an exception: Uncaught TypeError: Cannot read property 'rows' of unde ...