• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 04:21
CET 10:21
KST 18:21
  • 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
Intel X Team Liquid Seoul event: Showmatches and Meet the Pros9[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting10[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3
Community News
Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win62025 RSL Offline Finals Dates + Ticket Sales!10BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION3Crank Gathers Season 2: SC II Pro Teams12Merivale 8 Open - LAN - Stellar Fest5
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win Weekly Cups (Oct 13-19): Clem Goes for Four DreamHack Open 2013 revealed Intel X Team Liquid Seoul event: Showmatches and Meet the Pros
Tourneys
SC4ALL $6,000 Open LAN in Philadelphia Crank Gathers Season 2: SC II Pro Teams Merivale 8 Open - LAN - Stellar Fest Kirktown Chat Brawl #9 $50 8:30PM EST 2025 RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace
Brood War
General
Ladder Map Matchup Stats Map pack for 3v3/4v4/FFA games BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ What's going on with b.net?
Tourneys
BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION [ASL20] Grand Finals Small VOD Thread 2.0 The Casual Games of the Week Thread
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
General RTS Discussion Thread Path of Exile Stormgate/Frost Giant Megathread Nintendo Switch Thread The Perfect Game
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
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
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Dating: How's your luck? US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Canadian Politics Mega-thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion! Korean Music Discussion Series you have seen recently...
Sports
MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion 2024 - 2026 Football Thread NBA General Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
The Big Reveal
Peanutsc
Challenge: Maths isn't all…
Hildegard
Career Paths and Skills for …
TrAiDoS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1689 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
09:00
Crank Gathers S2: Playoffs D3
CranKy Ducklings40
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 129
Nina 123
StarCraft: Brood War
Calm 8965
actioN 480
Larva 433
PianO 328
Rush 151
Killer 59
ToSsGirL 58
Liquid`Ret 57
sorry 51
soO 28
[ Show more ]
Sharp 22
Sacsri 19
NaDa 15
Terrorterran 10
Dota 2
XaKoH 707
League of Legends
JimRising 658
Reynor74
Counter-Strike
zeus200
Super Smash Bros
Mew2King139
amsayoshi35
Other Games
summit1g15143
ceh9391
NeuroSwarm49
Organizations
Other Games
gamesdonequick381
Counter-Strike
PGL193
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• LUISG 22
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 6
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1067
• Lourlo1042
Upcoming Events
Wardi Open
2h 39m
Monday Night Weeklies
7h 39m
Replay Cast
13h 39m
Sparkling Tuna Cup
1d
WardiTV Korean Royale
1d 2h
LAN Event
1d 5h
Replay Cast
1d 23h
WardiTV Korean Royale
2 days
LAN Event
2 days
OSC
2 days
[ Show More ]
The PondCast
3 days
LAN Event
3 days
Replay Cast
3 days
LAN Event
4 days
Korean StarCraft League
4 days
CranKy Ducklings
5 days
WardiTV Korean Royale
5 days
LAN Event
5 days
IPSL
5 days
dxtr13 vs OldBoy
Napoleon vs Doodle
Replay Cast
5 days
Sparkling Tuna Cup
6 days
WardiTV Korean Royale
6 days
LAN Event
6 days
IPSL
6 days
JDConan vs WIZARD
WolFix vs Cross
Replay Cast
6 days
Liquipedia Results

Completed

BSL 21 Points
SC4ALL: StarCraft II
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025

Upcoming

BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
Stellar Fest
META Madness #9
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
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 © 2025 TLnet. All Rights Reserved.