Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
a Summer day - @319.59
Activity rating: Four Stars Posts & Arts: 70/1k.beats ~ Boop! The forum will close in 681.beats! Random | Recent Posts | Guild Recents
News: :skull: Websites are like whispers in the night  :skull: Guild Events: There are no events!

+  MelonLand Forum
|-+  Life & The Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  HELP: Can't get two elements to display as the same height on desktop


« previous next »
Pages: [1] Print Embed
Author Topic: HELP: Can't get two elements to display as the same height on desktop  (Read 1430 times)
jadefyre
Casual Poster ⚓︎
*
View Profile WWW


now that's something I can hyperfixate on
⛺︎ My Room
Itch.io: My Games

Guild Memberships:
Artifacts:
First 1000 Members!Joined 2023!
« on: an Autumn night » Embed

Hi there! I've been working on making a simple but cute little display of internet neighbours with badges and the like, but I am running into an issue where I can't get the 'main' element and the 'aside' element to display as the same height like they're supposed to.

To keep the post/thread as tidy as I can, I'll just note that all the CSS for the page is right inside the page source; I didn't want to link it to my main /style.css as it's totally different from the rest of my site.

Any help or insights would be very appreciated! Let me know if there is more detail I need to provide and I'll be happy to tell you what I can.


This is the page in question.

https://i.ibb.co/5hpLWLS/Screenshot-2023-09-05-123700.png

The relevant code bits (I THINK. I could be missing something that's making it all whacky) are as follows:

CSS:
Code
      #container { 
        position: absolute;
        max-width: 50%;
        padding-bottom: 50px;
        margin-bottom:100px;
        margin-left: 200px;        
      }

#header {
        width: 100%;
        height: 100px;
      }

#flex {
        display: flex;
      }
      
      .page {
        height: 350px; 
        border: dashed;
        border-width: 5px; 
        border-color: white; 
        text-align: left;
      }
          
      main {
        padding: 50px 10px 10px 100px;
        border-top-left-radius: 30px;
        border-bottom-left-radius: 30px;
        order: 1; 
        width: 70%;
        overflow:hidden;
        align-self: flex-end;
      }

aside {
        border-top-right-radius: 30px;
        border-bottom-right-radius: 30px;
        border-left: none !important;
        overflow: hidden;
        width: 30%;
        order: 2;
        padding: none;
        align-self: flex-end;
      }
      
      #sidebox { 
        max-height: 100%;
        display: flex;
        flex-wrap: wrap;
        vertical-align: middle;
        text-align: left;
        padding: 5%;
        margin: 40% 0 20px 0;
        overflow: auto; 
        scrollbar-color: #FF7B74 #FFA6D5;
        
      }
        
      #sidebox p:last-child {
        align-self: flex-end;
        margin-top: 30%;
      }


HTML:
Code
<div id="container">
<div id="header">
</div><!-- id="header" -->
<div id="flex">
<main class="page">          
<h2>websites</h2>
<div class="display-box">[[web badges go here]]</div>
</main>
<aside class="page">
<div id="sidebox"><p><sup>A collection of neocities sites and other internet neighbours</sup></p><p align="center"><a href="/index.html">« return home</a></p></div>
</aside>
</div> <!-- flex -->


Logged

kurohaato
Sr. Member ⚓︎
****
View Profile WWW


Full Steam Ahead! (≧∀≦)ゞ
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: rinrinrin
iMood: kurohaato
Matrix: Chat!

Guild Memberships:
Artifacts:
BobYellow FishThe World's Cutest Predator BurbyFirst 1000 Members!Joined 2023!
« Reply #1 on: an Autumn night » Embed

Found your problem! You need more padding. Add this to your aside css:

Code
padding-top: 60px;

it should look like this all together:

Code
aside{
border-top-right-radius: 30px;
border-bottom-right-radius: 30px;
border-left: none !important;
overflow: hidden;
width: 30%;
order: 2;
padding: none;
align-self: flex-end;
padding-top: 60px;
}

Logged

It ain't much but it's honest work
jadefyre
Casual Poster ⚓︎
*
View Profile WWW


now that's something I can hyperfixate on
⛺︎ My Room
Itch.io: My Games

Guild Memberships:
Artifacts:
First 1000 Members!Joined 2023!
« Reply #2 on: an Autumn night » Embed

Found your problem! You need more padding.

Ahhh that did it, thank you so much! There's always one little thing that makes it all work out. (Last week, I spent a day and a half figuring out why my art website layout was all broken and it was just one little line of code  :drat: )

You're the best  :cheesy:  :happy:  :transport:

Logged

Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi
@000 MelonLand Zap! Want to Login or Join ? Forum Art Hub Chat Webring Editor Recent Edits Tenement Arcade Web Guides Graphics Catalogue Wiki Newsletters Image Stream
Melon's Sites TamaNotchi Textures PixelSea GifyPet MoMG Ozwomp Online Loom Videos Leaky Webring Melonking
Tools Melon Software ArtHub Embed Maker ML Passports
Outlinks Frutiger Aero Forum Onio Club m15o's Web Services 32Bit Cafe iMood Webrings Internet Phone Book HTML Energy Declarations Hackers & Designers
Minecraft: Online
Join: craft.melonking.net