• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:02
CEST 22:02
KST 05:02
  • 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
[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18
Community News
Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris34Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195
StarCraft 2
General
BoxeR's Wings Episode 2 - Fan Translation Greatest Players of All Time: 2025 Update #1: Maru - Greatest Players of All Time A Eulogy for the Six Pool Geoff 'iNcontroL' Robinson has passed away
Tourneys
Maestros of The Game—$20k event w/ live finals in Paris $5,100+ SEL Season 2 Championship (SC: Evo) $5,000 WardiTV Summer Championship 2025 Esports World Cup 2025 Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
External Content
Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below
Brood War
General
Post ASL20 Ro24 discussion. No Rain in ASL20? BGH Auto Balance -> http://bghmmr.eu/ How do I speak directly to Coinbase?1-(888)-419-97 Recent recommended BW games
Tourneys
[ASL20] Ro24 Group E Small VOD Thread 2.0 [Megathread] Daily Proleagues [ASL20] Ro24 Group F
Strategy
Muta micro map competition Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread General RTS Discussion Thread Nintendo Switch Thread Dawn of War IV 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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine The year 2050 European Politico-economics QA Mega-thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s) Gtx660 graphics card replacement
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
How Culture and Conflict Imp…
TrAiDoS
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
INDEPENDIENTE LA CTM
XenOsky
[Girl blog} My fema…
artosisisthebest
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1036 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
Next event in 3h 58m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 430
UpATreeSC 191
IndyStarCraft 189
ProTech95
JuggernautJason73
BRAT_OK 40
StarCraft: Brood War
Calm 3242
ggaemo 250
BeSt 159
EffOrt 102
Dewaltoss 66
Mind 35
Aegong 27
scan(afreeca) 23
Sacsri 11
Bale 9
[ Show more ]
HiyA 7
Dota 2
capcasts179
Counter-Strike
Stewie2K689
Foxcn655
taco 149
Heroes of the Storm
Liquid`Hasu440
Other Games
FrodaN7762
Grubby1806
C9.Mang0150
Trikslyr60
Mew2King52
MindelVK9
Organizations
StarCraft 2
angryscii 24
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 24 non-featured ]
StarCraft 2
• StrangeGG 20
• LUISG 18
• davetesta10
• Reevou 7
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• Kozan
• IndyKCrew
StarCraft: Brood War
• blackmanpl 72
• 80smullet 23
• FirePhoenix3
• iopq 2
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 1281
League of Legends
• Doublelift1731
• TFBlade1082
Counter-Strike
• imaqtpie976
Other Games
• WagamamaTV415
• Shiphtur171
Upcoming Events
Replay Cast
3h 58m
LiuLi Cup
14h 58m
MaxPax vs TriGGeR
ByuN vs herO
Cure vs Rogue
Classic vs HeRoMaRinE
Cosmonarchy
19h 58m
OyAji vs Sziky
Sziky vs WolFix
WolFix vs OyAji
Big Brain Bouts
19h 58m
Iba vs GgMaChine
TriGGeR vs Bunny
Reynor vs Classic
Serral vs Clem
BSL Team Wars
22h 58m
Team Hawk vs Team Dewalt
BSL Team Wars
22h 58m
Team Hawk vs Team Bonyth
SC Evo League
1d 15h
TaeJa vs Cure
Rogue vs threepoint
ByuN vs Creator
MaNa vs Classic
Maestros of the Game
1d 19h
ShoWTimE vs Cham
GuMiho vs Ryung
Zoun vs Spirit
Rogue vs MaNa
[BSL 2025] Weekly
1d 21h
SC Evo League
2 days
[ Show More ]
Maestros of the Game
2 days
SHIN vs Creator
Astrea vs Lambo
Bunny vs SKillous
HeRoMaRinE vs TriGGeR
BSL Team Wars
2 days
Team Bonyth vs Team Sziky
BSL Team Wars
2 days
Team Dewalt vs Team Sziky
Monday Night Weeklies
3 days
Replay Cast
4 days
Sparkling Tuna Cup
4 days
Replay Cast
6 days
The PondCast
6 days
RSL Revival
6 days
Maru vs SHIN
MaNa vs MaxPax
Liquipedia Results

Completed

CSL Season 18: Qualifier 1
uThermal 2v2 Main Event
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
Acropolis #4 - TS1
CSL Season 18: Qualifier 2
SEL Season 2 Championship
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
Maestros of the Game
EC S1
Sisters' Call Cup
Skyesports Masters 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open 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.