Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
Autumn, 23 Sep 2026 - @287.62
Forum Activity: Four Stars Random | Recent Posts | Guild Recents
News: :sleep: These are fast times on the World Wide Web~ Guild Events: weekly zine jam 13: hope

+  MelonLand Forum
|-+  Da Web Revival
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Best way to have a 2 column site?


« previous next »
Pages: [1] Print Embed
Author Topic: Best way to have a 2 column site?  (Read 4625 times)
Obspogon
Full Member ⚓︎
***
View Profile WWW


gamer
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: obspogon
Matrix: Chat!
XMPP: Chat!
iMood: Obspogon

Guild Memberships:
Artifacts:
First 1000 Members!OG! Joined 2021!
« on: Autumn, 21 Nov 2021 @798 » Toggle Font Embed

I want to have a homepage with 2 columns of unequal width but the same height.

Logged

----------------------
https://obspogon.neocities.org/
----------------------
https://card.exophase.com/2/0/272714.png?1737474560
Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
You're a Star!Flinstone VitaminWavy Shoulder-Length Hair with BangsBug!Top HatI got robbed by Dan Q on Melonland!
« Reply #1 on: Autumn, 21 Nov 2021 @813 » Toggle Font Embed

The new school way would be to use flex, although that's designed for sites that have dynamic width.
Which you can read about here: https://css-tricks.com/snippets/css/a-guide-to-flexbox/

If you wanna do it the old way you can make both columns float left, then set a fixed width for each (you can also do a % width for dynamic sizing)

Something like: Untested sample code to give an idea, may not directly work! This will create 2 columns that should always be 100% the height of the wrapper, so in theory as the wrapper expands, so will both columns.

Code

<div id="wrapper">
 <div id="col-a"></div>
 <div id="col-b"></div>
</div>

#wrapper {
 width: 700px;
 margin: 0px auto 0px auto;
}

#col-a, #col-b {
 float: left;
 height: 100%;
}

#col-a {
 width: 200px;
}

#col-b {
 width: 500px;
}


Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: black n cyan yappin kittayHave a chillpillMove it, football head!black n orange yappin kittayRed Tulip100 coins<3eyntivemds pet fishcurious fishPlankMaya's Magatama
Obspogon
Full Member ⚓︎
***
View Profile WWW


gamer
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: obspogon
Matrix: Chat!
XMPP: Chat!
iMood: Obspogon

Guild Memberships:
Artifacts:
First 1000 Members!OG! Joined 2021!
« Reply #2 on: Autumn, 21 Nov 2021 @967 » Toggle Font Embed

Used the flex method and it works now. Thanks.

Logged

----------------------
https://obspogon.neocities.org/
----------------------
https://card.exophase.com/2/0/272714.png?1737474560
fLaMEd
Jr. Member ⚓︎
**
View Profile WWW

⛺︎ My Room

Artifacts:
First 1000 Members!OG! Joined 2021!
« Reply #3 on: Winter, 13 Feb 2023 @209 » Toggle Font Embed

If you wanna do it the old way you can make both columns float left, then set a fixed width for each (you can also do a % width for dynamic sizing)

Scream/Lol, why would you want to do it the old way haha! 

Like going for a run with a weight vest :joy:

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 Melon
Land
Index Recent Edits Tenement Arcade Forum Art Hub Chat Webring Want to Login or Join ?
Link Land Web Craft Guide Graphic Catalogue Wiki Newsletters Image Stream Help Im Lost! Zap! Minecraft: Online
Passport Sites Asatte Add your site?
Melonking MelonLand Aero Archive Onio Cafe 32 Bit Cafe Status Cafe