I think at this point I just need a permanent thread like "why does nothing remain where I tell it to be?!" 'cause it's the same old story
Anywho, wanted to update my Tumblr theme, found a nice template but it was all messed up on my screen resolution, so I re-did the positioning the same way I programmed divs on my websites (through the display:inline-block stuff)
Except only two out of three divs remain where they should be when changing screen resolution, and the third one, despite seemingly having all the same css qualities, is jumping all over the page and I give up. The fact that it's not my code initially only makes it more confusing.
Help.
The page is here, the css is right in the source code 'cause tumblr. The one that gives me trouble is "sidebar2". I just want it to be stuck in a fixed position like the other two (optimization be damned for now) T_T
the relevant css fragments separately (hopefully it gets pasted okay):
Spoiler
#wrapper{
width: 1000px;
position: absolute;
display: block;
}
#sidebar{
display: inline-block;
padding:-10px;
width:300px;
float:left;
position: relative;
left: 5px;
top: 60px;
text-align:center;
height:610px;
{block:ifnotleftsidebarbgcover}
background-repeat:repeat;
{/block:ifnotleftsidebarbgcover}
{block:ifleftsidebarbgcover}
background-size: cover;
{/block:ifleftsidebarbgcover}
background-color:{color:left sidebar};
background-image: url('{image:left sidebar bg img}');
border:{text:container border size}px {select:container border} {color:container border};
}
#sidebar2{
display: inline-block;
width:300px;
padding:-10px;
float:right;
clear:both;
position: relative;
left:50px;
top:60px;
text-align:center;
height:610px;
{block:ifnotrightsidebarbgcover}
background-repeat:repeat;
{/block:ifnotrightsidebarbgcover}
{block:ifrightsidebarbgcover}
background-size: cover;
{/block:ifrightsidebarbgcover}
background-color:{color:right sidebar};
background-image: url('{image:right sidebar bg img}');
border:{text:container border size}px {select:container border} {color:container border};
}
#sidebar3{
width:282.5px;
padding:-10px;
text-align:center;
height:275px;
{block:ifnotsideboxesbgcover}
background-repeat:repeat;
{/block:ifnotsideboxesbgcover}
{block:ifsideboxesbgcover}
background-size: cover;
{/block:ifsideboxesbgcover}
background-color:{color:side boxes};
background-image: url('{image:side boxes bg img}');
border:{text:side boxes border size}px {select:side boxes border} {color:side boxes border};
}
#sidebar4{
width:282.5px;
padding:-10px;
text-align:center;
height:275px;
{block:ifnotsideboxesbgcover}
background-repeat:repeat;
{/block:ifnotsideboxesbgcover}
{block:ifsideboxesbgcover}
background-size: cover;
{/block:ifsideboxesbgcover}
background-color:{color:side boxes};
background-image: url('{image:side boxes bg img}');
border:{text:side boxes border size}px {select:side boxes border} {color:side boxes border};
}
#content{
display: inline-block;
background:{color:container};
background-image: url('{image:container bg img}');
{block:ifcontainerbgcover}
background-size: cover;
background-repeat: no-repeat;
{/block:ifcontainerbgcover}
border:{text:container border size}px {select:container border} {color:container border};
width:528.5px;
position: relative;
top: 60px;
left: 350px;
padding:5px;
height:600px;
overflow-y:scroll;
}
https://pastebin . com/bURHptBa <--- and here's the original code just in case, if checking what exactly I re-made helps