I'm aiming for my #OthersMain to be bursting with visible content, but I just can't seem to make it happen

How can I change the overflow property from hidden to visible in OthersMain?

body, html {
height: 100%;
width: 100%;
margin: 0px;
padding: 0px;
overflow: hidden;
}
* {
box-sizing: border-box;
}

/* Home.html */

#LeftMainSection {
background-color:#FFA500;
width: 180px;
height: 100%;
display: inline-block;
float: left;
margin-left: -180px;
animation: LeftMove 1s;
animation-fill-mode: forwards;
    border-right:10px solid black;
}
#LeftMainSection a {
padding-top: 9px;
text-align: center;
text-decoration: none;
color: black;
background-color:rgba(153, 99, 0, .6);
width: 180px;
height: auto;
    padding:10px;
display: block;
    border-bottom:10px solid black;
    border-right:10px solid black;
}


@keyframes LeftMove {
0% {
margin-left: -180px;
}
100% {
margin-left: 0;
}
}
#BorderBottomBlack {
border-bottom: 10px solid black;
}
#BorderTopBlack {
border-top: 10px solid black;
}
#RandomInfo {
text-align: center;
}
#HomeMain, #OthersMain{
        text-align:center;
overflow: visible;
text-indent: 40px;
color: white;
height: 100%;
background-color:#664200;
margin-right: 245px;
margin-left: -180px;
animation: LeftMove 1s;
animation-fill-mode: forwards;
}

#OthersMain{
 font-size:.8em;
    overflow:visible !important;
}
#TopHR, #BottomHR{
    border:solid black;
 height:10px;
    background-color:black;
}
#HomeMain p{
    font-size:1.3em;
    text-align:center;
padding: 10px;

}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="/Candidate/CSSFiles/styles.css">
</head>

<body>
    <div id="LeftMainSection">
        <a id="BorderTopBlack" href="Index.html">Video</a>
        <a id="" href="Home.html">Home</a>
        <a id="" href="Bio.html">Bio</a>
        <a id="" href="Shop.html">Shop</a>
        <a id="" href="Campaign.html">About The Campaign</a>
        <a id="Others" href="Others.html">About The Other Candidates</a>
        <a id="" href="citations.html">Citations</a>
        <a id="BorderBottomBlack" href="Contact.html">Contact</a>
        <div id="RandomInfo">
            <h3>Random Info</h3> 
        </div>
    </div>
    <main id="OthersMain">
        <div id="HomeMainDivTop">
            <h2>About The Other Canidates</h2>
        </div>
        
        <div>

            <h1>Burton (Gus) Guster</h1>
            <hr id="">
            <h2 id="AboutPG">About "Gus"</h2>
            <p>Crime</p>
            <p></p>
            ...        

        </body>
</html>

I am struggling to make the #OthersMain overflow property as visible by using !important in my CSS but it's not working. Any suggestions on how to fix this issue?

Answer №1

To ensure proper functionality, include either overflow: scroll or auto, rather than using visible. The use of !important is unnecessary in this case.

body, html {
height: 100%;
width: 100%;
margin: 0px;
padding: 0px;
overflow: hidden;
}
* {
box-sizing: border-box;
}

/* Home.html */

#LeftMainSection {
background-color:#FFA500;
width: 180px;
height: 100%;
display: inline-block;
float: left;
margin-left: -180px;
animation: LeftMove 1s;
animation-fill-mode: forwards;
border-right:10px solid black;
}
#LeftMainSection a {
padding-top: 9px;
text-align: center;
text-decoration: none;
color: black;
background-color:rgba(153, 99, 0, .6);
width: 180px;
height: auto;
padding:10px;
display: block;
border-bottom:10px solid black;
border-right:10px solid black;
}


@keyframes LeftMove {
0% {
margin-left: -180px;
}
100% {
margin-left: 0;
}
}
#BorderBottomBlack {
border-bottom: 10px solid black;
}
#BorderTopBlack {
border-top: 10px solid black;
}
#RandomInfo {
text-align: center;
}
#HomeMain, #OthersMain{
        text-align:center;
overflow: auto;
text-indent: 40px;
color: white;
height: 100%;
background-color:#664200;
margin-right: 245px;
margin-left: -180px;
animation: LeftMove 1s;
animation-fill-mode: forwards;
}

#OthersMain{
 font-size:.8em;
    overflow:auto;
}
#TopHR, #BottomHR{
    border:solid black;
 height:10px;
    background-color:black;
}
#HomeMain p{
    font-size:1.3em;
    text-align:center;
padding: 10px;
}
#AboutPG{
    font-size:1.3em;
 text-align:left;
    padding: 10px;
}
#Flip {
 transform:rotateY(180deg);
}
#RightMainSection {
border-top: 10px solid black;
position: absolute;
right: 0;
top: 0;
background-color:#FFA500;
width: 250px;
height: 100%;
display: inline-block;
float: right;
}
#News1, #News2, #News3, #News4 {
background-color:#C27D00;
border-left:10px solid black;
border-bottom:10px solid black;
height: 140px;
width: 250px;

}
#itm1, #itm2, #itm3, #itm4{
    text-align:center;
 width:100%;
    height:121px;
    background-color:black;
    margin:0;
    padding:0;
}
#ShopLink1, #ShopLink2, #ShopLink3, #ShopLink4{
    text-align:center;
    color:white;
    display:inline-block;
    background-color:black;
}
#News4{
 height:150px;   
}
#News2 h1, #News3 h1, #News4 h1 {
    margin:0;
    padding:0;
 font-size:.89em;
}

#News2, #News3, #News4 {
    font-size:1.1em;
 text-align:center;
}
#myProgress {
width: 100%;
background-color: #000;
}
#myBar {
font-size: 10pt;
width: 40%;
height: 30px;
background-color: #4CAF50;
text-align: center;
line-height: 30px;
color: white;
}
#Percent, #pollsP {
text-align: center;
margin: 0;
padding: 0;
}
button {
position: absolute;
width: 100%;
top: 112px;
}

#tezt{
 width:50%;
    height:10px;
}
#HomeMainDivTop {
border-top: 10px solid black;
width: 100%;
height: 90px;
background-color:#C27D00;
border-bottom:10px solid black;
text-align: center;
}
#Flip{
    margin-left:10px;
}
#LeftMain, #RightMain{
 height:100%;
    width:100%;
}

#CatImg2{
      margin-right:10px;  
}
/* index.html */


#Indexh1{
    text-align:center;
 width:auto;
    height:50px;
}
#IndexA {
    display:inline-block;
 width:100%;
    height:100px;
    text-decoration:none;
    color:gray;
}
video {
    background-color:black;
    margin:0;
    padding:0;
    width:100%;
    height:100%;
}


#ClickToHome{
    z-index:99;
    background:rgba(50, 50, 50, .5);
 width:100%;
    height:100px;
    position:absolute;
    top:0;
}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="/Candidate/CSSFiles/styles.css">
</head>

<body>
    <div id="LeftMainSection">
        <a id="BorderTopBlack" href="Index.html">Video</a>
        <a id="" href="Home.html">Home</a>
        <a id="" href="Bio.html">Bio</a>
        <a id="" href="Shop.html">Shop</a>
        <a id="" href="Campaign.html">About The Campaign</a>
        <a id="Others" href="Others.html">About The Other Candidates</a>
        <a id="" href="citations.html">Citations</a>
        <a id="BorderBottomBlack" href="Contact.html">Contact</a>
        <div id="RandomInfo">
            <h3>Random Info</h3> 
        </div>
    </div>
    <main id="OthersMain">
        <div id="HomeMainDivTop">
            <h2>About The Other Canidates</h2>
        </div>
        
        <div>

            <h1>Burton (Gus) Guster</h1>
            <hr id="">
            <h2 id="AboutPG">About "Gus"</h2>
            <p>Crime</p>
            <p></p>
            <p>Economy</p>
            <p></p>
            <p>Education</p>
            <p></p>
        
        </div>
        <div>
            <hr id="TopHR">
            <h1>Rickey</h1>
            <hr>
            <h2 id="AboutPG">About "Rickey"</h2>
            <p>Crime</p>
            <p></p>
            <p>Economy</p>
            <p></p>
            <p>Education</p>
            <p></p>
        
        </div>
        <div>
            <hr id="TopHR">
            <h1>Rick Grimes</h1>
            <hr>
            <h2 id="AboutPG">About "Rick Grimes"</h2>
            <p>Crime</p>
            <p></p>
            <p>Economy</p>
            <p></p>
            <p>Education</p>
            <p>sdasdasd ad asd ih uh uhu ih uihu hui hui hui hui hu ihsdasdasd ad asd ih uh...</p>
        </div>
    </main>
    
    <div id="RightMainSection">
        <div id="News2"><h1>Campaign News</h1>This just in Burton Guster, Ricky, and Rick Grimes are found to be lying in the campaign just to get ahead in the polls that Puss In Boots swept away from them.</div>
        
        <div id="News3"><h1>World News</h1>Today in America Donald Trump is talking about visiting kim jong-un with Puss in Boots by his side.</div>
        
        <div id="News4"><h1>Local News</h1>Tomorrow Puss In Boots is planning to meet with local schools to find out what kids like most about school. And what teachers want to see changed for the children's education.</div>
    </div>
</body>
</html>

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

Is it possible to display a div when hovering over it and have it remain visible until

How can I make the div ".socialIconsShow" fade in when hovering over ".socialIcons", and then fade out when hovering over ".socialIconsShow"? Is there a way to keep the icons visible even after leaving ".socialIcons"? <div class="socialNetworks"> ...

expanding menu options in a dynamic design

My webpage features a logo alongside a menu: Here's the HTML code: <div id="logomenuwrapper"> <div id="logo"><img src="img/logo_light.jpg"/></div> <div id="menu"> <ul> <li><a href="#">About ...

Incorporating a teaser of a webpage into an <a> tag linking directly to the page

I am looking to enhance the <a> tag on my HTML page by including a URL link that directs users to another page, while also displaying a preview of that page. Similar to how Facebook automatically generates a preview when you post a link, I want to ...

Sharing data between different JavaScript files using Knockout.js

I am working with two JavaScript files named FileA.js and FileB.js. Within FileA.js, there is a function called Reports.CompanySearch.InitGrid: function InitGrid(viewModel, emptyInit) { var columns = [ { name: 'CompanyName', ...

The layout is disrupted due to an input field with a label in Semantic UI

My goal is to create an input field with a right-aligned label in Semantic UI. The documentation provides an example of a cornered label that functions correctly, but when attempting to use a regular label, the layout of the input field gets disrupted. To ...

Using Python and Selenium to upload files without utilizing an 'input' HTML element

Struggling to upload a file for Python Selenium? The send_keys method seems to be causing an issue as it returns a 'Message: element not interactable' error. This is likely because the upload button lacks an 'input' in its html code, pr ...

Adjusting Window Size Causes White Space to Appear Above Div

I currently have two inline-block div in my post page that showcase my latest book reviews. Typically, these sections align perfectly and occupy the same amount of space on the screen. However, for certain window sizes, one of the inline-block elements end ...

When a hover effect occurs beyond the button's boundaries

Currently, my code is producing a black bar element that appears both above and below my link. The bottom bar is always there, while the top bar only appears when the link is hovered over. Although my code is functional, the hover effect seems to trigger ...

When you hover over the text, the color will shift

I have created two boxes that are blue with white text and change to a different color scheme when hovered over. However, I am experiencing an issue where the text color reverts back to the original color when hovering below the text area of the box. Here ...

Space around the flex container

I am facing an issue with a flex display that splits the screen into two sections: one for login information and the other for a background picture. When setting up the flex layout, I notice unwanted margins on both sides (highlighted as orange bars in the ...

Using Node.JS, Sequelize, and Moment.JS to format dates

Seeking help on formatting a date loaded from Sequelize in my database. I'm working on a blog and need to display the creation date of an article. Here's my route: app.get("/", (req,res) =>{ Article.findAll({ order:[ [ ...

Transform your CSS3 rotateY into PHP Imagick::distortImage

I'm trying to rotate an image by rotateY(-54deg) on the front-end, and now I need to achieve the same rotation in PHP using Imagick::distortImage. $image->distortImage(Imagick::DISTORTION_PERSPECTIVE, $controlPoints, true); Is there a straightfor ...

Sleek design featuring a header, footer, Left Menu, Content, and RightMenu implemented on Bootstrap 4-5

Can you help me create a minimal layout using Bootstrap 4-5 with a header, footer, LeftMenu, Content, and RightMenu? The combined width of LeftMenu, Content, and RightMenu should be similar to the main block on the current site (htmlforum.io). This means ...

Addressing the spacing and alignment issues within the progress bar

I need some help with my Angular app. I am currently working on creating a progress bar, but I am facing some issues with the alignment of the bars. Here is the code snippet that I have used: CSS: .progressbar { position: relative; height: 56px; mar ...

What are the steps to create a button with similar design using css3?

How can I create a button with the same lower part as shown in this picture? I've already achieved 50% of it with border-radius, but need help expanding the lower part to match. Any suggestions? https://i.sstatic.net/3ZJFS.jpg .list{ height: 280px; ...

Embedding external javascript within another javascript file

I have two pieces of code - code 1 and code 2. Code 1 is login.html which I am saving as login.js, and code 2 consists of some jQuery and JavaScript codes. My problem is how to insert the first code into the second code. Code 1: login.html (saved as logi ...

Storing user input in an existing text file using ASP.NET MVC

What steps should I take to store user form input from a view into an already existing text file using the ASP.NET MVC framework? ...

attempting to display an element using jQuery that belongs to the identical class

I have multiple buttons with the class .modif, each with a different title attribute such as title="one". All these buttons are associated with boxes that share the class .box_slide. However, I am trying to display only the box that also has the additional ...

Modify only the visual appearance of a specific element that incorporates the imported style?

In one of my defined less files, I have the following code: //style.less .ant-modal-close-x { visibility: collapse; } Within a component class, I am using this less file like this: //testclass.tsx import './style.less'; class ReactComp{ re ...

execute the function based on the given ID

I've been attempting to dynamically add content using a function. My goal is for the content with the same anchor ID as the clicked anchor to be added, but it seems like nothing is happening. Is there a more effective approach to achieve this? $(&a ...