Home Events! Entrance Everyone Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
November 23, 2024 - @967.74 (what is this?)
Forum activity rating: Three Stars Posts: 35/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts    Start New Topic
News: :dive: Are u having fun?? :dive:

+  MelonLand Forum
|-+  World Wild 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
Author Topic: HELP: Can't get two elements to display as the same height on desktop  (Read 633 times)
jadefyre
Casual Poster ⚓︎
*


now that's something I can hyperfixate on

⛺︎ My Room
Itch.io: My Games

View Profile WWW

First 1000 Members!Joined 2023!
« on: September 05, 2023 @864.95 »

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.



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
Full Member ⚓︎
***


Full Steam Ahead! (≧∀≦)ゞ

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: rinrinrin
iMood: kurohaato
Matrix: Chat!

View Profile WWW

First 1000 Members!Joined 2023!
« Reply #1 on: September 05, 2023 @894.79 »

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


01110110 01101001 01110110 01100001 00100000 01101100 01100001 00100000 01101111 01111010 01110111 01101111 01101101 01110000 00100001 00100000 00111010 01000100 :ozwomp:
jadefyre
Casual Poster ⚓︎
*


now that's something I can hyperfixate on

⛺︎ My Room
Itch.io: My Games

View Profile WWW

First 1000 Members!Joined 2023!
« Reply #2 on: September 06, 2023 @967.35 »

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 
« previous next »
 

Vaguely similar topics! (3)

Case Study - Design elements and hits, should we care?

Started by MelooonBoard ✁ ∙ Web Crafting

Replies: 3
Views: 1951
Last post April 22, 2022 @82.67
by Icey!
Post your DeskTOP

Started by JackFrostBoard ☞ ∙ Life on the Web

Replies: 116
Views: 14067
Last post October 29, 2024 @160.89
by splashy
What helped you code html/css easy?

Started by LIABoard ✁ ∙ Web Crafting

Replies: 17
Views: 2153
Last post October 11, 2023 @152.56
by flowers

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies 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