• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 23:25
CET 05:25
KST 13:25
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Clem wins HomeStory Cup 284HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info3herO wins SC2 All-Star Invitational14SC2 All-Star Invitational: Tournament Preview5
Community News
Weekly Cups (Jan 26-Feb 1): herO, Clem, ByuN, Classic win2RSL Season 4 announced for March-April7Weekly Cups (Jan 19-25): Bunny, Trigger, MaxPax win3Weekly Cups (Jan 12-18): herO, MaxPax, Solar win0BSL Season 2025 - Full Overview and Conclusion8
StarCraft 2
General
Clem wins HomeStory Cup 28 HomeStory Cup 28 - Info & Preview Stellar Fest "01" Jersey Charity Auction StarCraft 2 Not at the Esports World Cup 2026 Weekly Cups (Jan 26-Feb 1): herO, Clem, ByuN, Classic win
Tourneys
$5,000 WardiTV Winter Championship 2026 HomeStory Cup 28 RSL Season 4 announced for March-April PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) StarCraft Evolution League (SC Evo Biweekly)
Strategy
Custom Maps
[A] Starcraft Sound Mod
External Content
Mutation # 511 Temple of Rebirth The PondCast: SC2 News & Results Mutation # 510 Safety Violation Mutation # 509 Doomsday Report
Brood War
General
[ASL21] Potential Map Candidates Can someone share very abbreviated BW cliffnotes? 2024 BoxeR's birthday message Liquipedia.net NEEDS editors for Brood War BSL Season 21 - Complete Results
Tourneys
Escore Tournament StarCraft Season 1 Small VOD Thread 2.0 KCM Race Survival 2026 Season 1 The Casual Games of the Week Thread
Strategy
Zealot bombing is no longer popular? Simple Questions, Simple Answers Current Meta Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Diablo 2 thread Battle Aces/David Kim RTS Megathread EVE Corporation Nintendo Switch Thread Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread The Games Industry And ATVI Russo-Ukrainian War Thread YouTube Thread Things Aren’t Peaceful in Palestine
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Quickbooks Payroll Service Official Guide Quickbooks Customer Service Official Guide
TL Community
The Automated Ban List
Blogs
Play, Watch, Drink: Esports …
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2202 users

need help with some website css problem

Blogs > BlueRoyaL
Post a Reply
BlueRoyaL
Profile Blog Joined February 2006
United States2493 Posts
February 09 2012 22:04 GMT
#1
hello

i am working on a website for something my boss is trying to start. I'm just working on all the front end stuff, like the actual website and ive run into a problem that i really have no idea how to fix.

i usually google everything but in this case, i wouldnt even know what or how to google it.

this is what it's supposed to look like:
http://shipyizi.com/v2/

and this is what it looks like right now:
http://shipyizi.com/

Okay, so here's the problem.
I'll illustrate with a picture first:
[image loading]

so the boxes labeled 1, 2, and 3 are all separate div ids, and they are all nested in another div id.

i set the main div id (the div containing these boxes) height as "auto"

now these 1,2,3 boxes need to have variable height, because their content is different. BUT what i need is for all 3 of them to automatically have the sameheight as the longest one.. if that makes sense.

anyone know a trick or something? would really appreciaate it


WHAT'S HAPPENIN
Anachromy
Profile Blog Joined September 2010
United States194 Posts
Last Edited: 2012-02-09 22:28:12
February 09 2012 22:22 GMT
#2
Try setting them to 100% as opposed to auto or setting a px value.
nath
Profile Blog Joined May 2010
United States1788 Posts
February 09 2012 22:48 GMT
#3
On February 10 2012 07:22 Anachromy wrote:
Try setting them to 100% as opposed to auto or setting a px value.

this

User was warned for this post
Founder of Flow Enterprises, LLC http://flow-enterprises.com/
Hidden_MotiveS
Profile Blog Joined February 2010
Canada2562 Posts
Last Edited: 2012-02-09 23:09:16
February 09 2012 22:55 GMT
#4
Do you use one a dem browser addons for debugging css?

Just tried it 100% doesn't work

See he has the css for the right content box inside the div header for the main body content of the page.
He wants everything to have the same height in the main body.

You can write like 648px instead in each box but I doubt that's the best way to approach the problem.

Too complicated for me. Perhaps a real web designer can help you
mmp
Profile Blog Joined April 2009
United States2130 Posts
Last Edited: 2012-02-09 23:01:30
February 09 2012 22:57 GMT
#5
Don't set an exact value. Use %.
I (λ (foo) (and (<3 foo) ( T_T foo) (RAGE foo) )) Starcraft
biomech
Profile Joined April 2010
Germany380 Posts
Last Edited: 2012-02-09 23:22:26
February 09 2012 23:08 GMT
#6
easiest fix i could think of is giving #mainContentHolder a "background: url(...) repeat-y;" with some kind of 1px height image.

height 100% with nested (child) elements only works if the parent also is set to height 100%. that screws things up at the "top of the stack". like, for the very first element 100% height is somewhat the full page. so the nested divs will extend further than expected.

[image loading]

[image loading]
mmp
Profile Blog Joined April 2009
United States2130 Posts
February 09 2012 23:18 GMT
#7
Your CSS does a lot of bad things that make it clumsy to debug. Don't use px for positioning when % are sufficient. Don't use absolute/fixed when it isn't necessary, it just makes things less flexible (& intuitive).
I (λ (foo) (and (<3 foo) ( T_T foo) (RAGE foo) )) Starcraft
BlueRoyaL
Profile Blog Joined February 2006
United States2493 Posts
February 09 2012 23:21 GMT
#8
On February 10 2012 08:08 biomech wrote:
easiest fix i could think of is giving #mainContentHolder a "background: url(...) repeat-y;" with some kind of 1px height image.

height 100% with nested (child) elements only works if the parent also is set to height 100%. that screws things up at the "top of the stack". like, for the very first element 100% height is somewhat the full page. so the nested divs will extend further than expected.


using a 1px height image would work if the middle section (box 2) were the tallest box in every page. but in the case that it ends up shorter than the other 2 (boxes 1 and 3), then box 2 would appear to have a different color at the bottom of it after its contents ends

thanks guys i really appreciate all your input! im testing a lot of different approaches to this using all the advice, hopefully some of them, or some combination thereof, works
WHAT'S HAPPENIN
HawaiianPig
Profile Blog Joined July 2008
Canada5155 Posts
February 09 2012 23:21 GMT
#9
Google owns yo
AdministratorNot actually Hawaiian.
BlueRoyaL
Profile Blog Joined February 2006
United States2493 Posts
February 09 2012 23:22 GMT
#10
On February 10 2012 08:18 mmp wrote:
Your CSS does a lot of bad things that make it clumsy to debug. Don't use px for positioning when % are sufficient. Don't use absolute/fixed when it isn't necessary, it just makes things less flexible (& intuitive).


Thanks for the tip! im really not that experienced in webdesign, i just try random codes and if it appears to me to turn out okay i just go with it.. not really sure how to optimize it i guess
WHAT'S HAPPENIN
biomech
Profile Joined April 2010
Germany380 Posts
Last Edited: 2012-02-09 23:29:15
February 09 2012 23:24 GMT
#11
On February 10 2012 08:21 BlueRoyaL wrote:
using a 1px height image would work if the middle section (box 2) were the tallest box in every page. but in the case that it ends up shorter than the other 2 (boxes 1 and 3), then box 2 would appear to have a different color at the bottom of it after its contents ends


nah. it fixes it fo sho! i promise

see, here 3 is the "tallest box".
[image loading]
BlueRoyaL
Profile Blog Joined February 2006
United States2493 Posts
February 10 2012 00:45 GMT
#12
biomech,

wow that's awesome. could you provide a little more detailed information on how you got that?
did you make a 1x1 pixel image with that green background and fill it in into only the main content holder div?

the link hawaiian pig is very nice too, but i like biomechs fix a little better - its simpler and faster
WHAT'S HAPPENIN
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
Rongyi Cup S3 - Playoffs Day 3
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 246
UpATreeSC 144
StarCraft: Brood War
Leta 271
Shuttle 107
Hyuk 68
GoRush 41
Noble 20
Icarus 13
Dota 2
monkeys_forever566
XaKoH 177
NeuroSwarm94
LuMiX1
League of Legends
JimRising 764
C9.Mang0449
Counter-Strike
Foxcn274
Super Smash Bros
hungrybox479
Mew2King150
Other Games
summit1g7830
ViBE65
Hui .58
Livibee46
Organizations
Other Games
gamesdonequick1728
BasetradeTV588
StarCraft: Brood War
lovetv 7
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Berry_CruncH217
• Hupsaiya 75
• davetesta33
• Kozan
• LaughNgamezSOOP
• AfreecaTV YouTube
• sooper7s
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• Pr0nogo 1
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Doublelift3975
• Scarra1737
• Lourlo566
• HappyZerGling88
Upcoming Events
Big Brain Bouts
12h 35m
goblin vs Kelazhur
TriGGeR vs Krystianer
Replay Cast
19h 35m
RongYI Cup
1d 6h
herO vs Maru
Replay Cast
1d 19h
uThermal 2v2 Circuit
2 days
Replay Cast
3 days
Wardi Open
3 days
Monday Night Weeklies
3 days
Sparkling Tuna Cup
4 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2026-02-04
HSC XXVIII
Underdog Cup #3

Ongoing

CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
Acropolis #4 - TS4
Escore Tournament S1: W7
Rongyi Cup S3
Nations Cup 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8

Upcoming

Escore Tournament S1: W8
Acropolis #4
IPSL Spring 2026
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
WardiTV Winter 2026
LiuLi Cup: 2025 Grand Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.