Q:
make div fit the size of its parent and make its parent fill the whole screen
I have two divs, and I want the left div to fit the size of its parent (the right div), and the parent to fill the entire screen. Currently, I am using overflow: hidden on the right div, and overflow-y: scroll on the parent, which both work, but it doesn't work as I want.
#parent {
background-color: green;
overflow: hidden;
width: 100%;
}
#right {
background-color: blue;
height: 150px;
overflow-y: scroll;
A:
Set the height of #right to 100%, and remove the width: 100% declaration from the #right selector.
height: 100%;
FIDDLE
Trump’s fascist win won’t bring down the power of the left but it can force the left to reinvent itself
If you’re a self-professed socialist, one who opposes all manifestations of capitalism and markets and believes that state power is the only tool for building a more just society, then you have to answer a basic question: ‘What is the point of socialism?’ There are plenty of people who believe that Marxism was a useful theory to help the working class understand how society worked and what its potential might be. But that’s not where the battle is now. The battle is over whether there is anything left to fight for. The more radical the left is in its thinking and its approach, the harder it’s going to find it.
The election of Donald Trump as the 45th President of the United States of America came as a tremendous shock to the political world. The victory of the billionaire heiress and former Apprentice contestant, who
Related links:
Comments