• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 00:52
CET 06:52
KST 14:52
  • 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
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
ComeBackTV's documentary on Byun's Career !9Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win4Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15
StarCraft 2
General
Micro Lags When Playing SC2? ComeBackTV's documentary on Byun's Career ! When will we find out if there are more tournament Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win RSL Revival - 2025 Season Finals Preview
Tourneys
$100 Prize Pool - Winter Warp Gate Masters Showdow $5,000+ WardiTV 2025 Championship Winter Warp Gate Amateur Showdown #1 Sparkling Tuna Cup - Weekly Open Tournament RSL Offline Finals Info - Dec 13 and 14!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress
Brood War
General
Klaucher discontinued / in-game color settings Anyone remember me from 2000s Bnet EAST server? BGH Auto Balance -> http://bghmmr.eu/ How Rain Became ProGamer in Just 3 Months FlaSh on: Biggest Problem With SnOw's Playstyle
Tourneys
[BSL21] LB QuarterFinals - Sunday 21:00 CET Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL21] WB SEMIFINALS - Saturday 21:00 CET
Strategy
Simple Questions, Simple Answers Game Theory for Starcraft Current Meta Fighting Spirit mining rates
Other Games
General Games
Stormgate/Frost Giant Megathread General RTS Discussion Thread Nintendo Switch Thread Mechabellum PC Games Sales Thread
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 Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI YouTube Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
TL+ Announced Where to ask questions and add stream?
Blogs
The (Hidden) Drug Problem in…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1899 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
Ladder Legends
19:00
WWG Amateur Showdown
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft625
RuFF_SC2 217
Nina 102
StarCraft: Brood War
Larva 575
Shuttle 478
Leta 273
Mong 18
Noble 15
Sea 0
Dota 2
NeuroSwarm64
LuMiX1
League of Legends
JimRising 638
Heroes of the Storm
Khaldor144
Other Games
summit1g9877
Mew2King120
ViBE54
Models2
Organizations
Other Games
gamesdonequick835
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• Berry_CruncH207
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Other Games
• Scarra1628
Upcoming Events
Sparkling Tuna Cup
4h 8m
Ladder Legends
11h 8m
BSL 21
14h 8m
StRyKeR vs TBD
Bonyth vs TBD
Replay Cast
1d 3h
Wardi Open
1d 6h
Monday Night Weeklies
1d 11h
WardiTV Invitational
3 days
Replay Cast
4 days
WardiTV Invitational
4 days
ByuN vs Solar
Clem vs Classic
Cure vs herO
Reynor vs MaxPax
Replay Cast
5 days
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Offline Finals
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 1
WardiTV 2025
META Madness #9
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

CSL Season 19: Qualifier 2
CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
Nations Cup 2026
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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.