Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
Autumn, 28 Nov 2026 - @742.81
Forum Activity: Three Stars Random | Recent Posts | Guild Recents
News: :cry: Are u having fun? Guild Events: November 200 words RPG jam
Super News: ++ MelonJam 2026 ~ 1st Dec to 1st Jan! ++
+  MelonLand Forum
|-+  Da Web Revival
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  How to get flexbox items to scale with resolution


« previous next »
Pages: [1] Print Embed
Author Topic: How to get flexbox items to scale with resolution  (Read 10 times)
KrazyKoen
Jr. Member ⚓︎
**
View Profile WWWArt


Honk Honk :o)
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: @KrazyKoen
OS: Arch Linux

Guild Memberships:
Artifacts:
Visited on Melon's 10th Anniversary!NutcrackerJoined 2025!
« on: Today at @729 » Toggle Font Embed

I'm making this page with a scrolling line of houses contained in a flexbox and I'm struggling to keep the size and position consistent across resolutions. I'm a little rusty so I might be forgetting something obvious.

Relevant code:
Code
/*flexbox*/
      .Houses {
        display:flex;
        margin:0;
        flex-direction:right;
        bottom:16vh;
        position:absolute;
        flex:1 1 0;
        overflow:visible;
        transition:2s;
        left:0;
      }
/*flex item*/
      .House
      {
        min-width:21.5vw;
        max-width:21.5vw;
        min-height:41.6vh;
        max-height:41.6vh;
        border-style:solid;
        border-width:0;
        border-color:black;
        margin:1.5%;
      }

Logged

Dark forces loom over us...
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Guide | Rules | Whos a Mod? | 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 Melon
Land
Forum Art Hub Chat Webring Explore Random Recent Tenement Arcade Want to Login or Join ? Web Craft Guide Graphic Catalogue Wiki Help I'm Lost! Link Land Newsletters Image Stream Minecraft: Online
Zap!
Passport Sites tamaNOTchi Asatte Add your site?
Aero Archive Onio Cafe 32 Bit Cafe Status Cafe