• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 03:03
CEST 09:03
KST 16:03
  • 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
Code S Season 1 - RO8 Preview4[ASL21] Ro8 Preview Pt2: Progenitors8Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun13[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10
Community News
Maestros of The Game 2 announcement and schedule !7Weekly Cups (April 27-May 4): Clem takes triple0RSL Revival: Season 5 - Qualifiers and Main Event12Code S Season 1 (2026) - RO12 Results12026 GSL Season 1 Qualifiers25
StarCraft 2
General
Code S Season 1 - RO8 Preview Behind the Blue - Team Liquid History Book Weekly Cups (April 27-May 4): Clem takes triple Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Code S Season 1 (2026) - RO12 Results
Tourneys
Maestros of The Game 2 announcement and schedule ! GSL Code S Season 1 (2026) Sea Duckling Open (Global, Bronze-Diamond) RSL Revival: Season 5 - Qualifiers and Main Event Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players
External Content
Mutation # 524 Death and Taxes The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base
Brood War
General
Quality of life changes in BW that you will like ? RepMastered™: replay sharing and analyzer site Tulbo's ASL S21 Ro8 Post-Review Why there arent any 256x256 pro maps? Do we have a pimpest plays list?
Tourneys
Escore Tournament StarCraft Season 2 [ASL21] Ro8 Day 4 [Megathread] Daily Proleagues Small VOD Thread 2.0
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Stormgate/Frost Giant Megathread Daigo vs Menard Best of 10 Path of Exile Nintendo Switch Thread OutLive 25 (RTS Game)
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
The Letting Off Steam Thread US Politics Mega-thread European Politico-economics QA Mega-thread UK Politics Mega-thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
How EEG Data Can Predict Gam…
TrAiDoS
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1950 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 2h 57m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 153
StarCraft: Brood War
Calm 7536
Horang2 3467
ToSsGirL 100
PianO 77
actioN 72
Zeus 58
910 54
JulyZerg 39
yabsab 30
Shine 17
[ Show more ]
Mong 12
GoRush 11
Sacsri 9
ZergMaN 9
SilentControl 8
Shinee 8
Dota 2
NeuroSwarm228
League of Legends
JimRising 686
Counter-Strike
Stewie2K977
m0e_tv441
Super Smash Bros
hungrybox960
Other Games
summit1g6511
C9.Mang0475
monkeys_forever422
Organizations
Counter-Strike
PGL9212
Other Games
gamesdonequick2393
StarCraft: Brood War
lovetv 13
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 13 non-featured ]
StarCraft 2
• Sammyuel 33
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1187
• Stunt537
Upcoming Events
CranKy Ducklings
2h 57m
RSL Revival
2h 57m
SHIN vs Bunny
ByuN vs Shameless
WardiTV Invitational
3h 57m
Krystianer vs TriGGeR
Cure vs Rogue
SC Evo League
5h 57m
uThermal 2v2 Circuit
7h 57m
BSL
11h 57m
Artosis vs TerrOr
spx vs StRyKeR
Replay Cast
16h 57m
Sparkling Tuna Cup
1d 2h
RSL Revival
1d 2h
Cure vs Zoun
Clem vs Lambo
WardiTV Invitational
1d 3h
[ Show More ]
BSL
1d 11h
Dewalt vs DragOn
Aether vs Jimin
GSL
2 days
Afreeca Starleague
2 days
Soma vs Leta
Wardi Open
2 days
Monday Night Weeklies
2 days
OSC
2 days
CranKy Ducklings
3 days
Afreeca Starleague
3 days
Light vs Flash
Replay Cast
4 days
Replay Cast
4 days
The PondCast
5 days
Replay Cast
5 days
RSL Revival
6 days
Korean StarCraft League
6 days
Liquipedia Results

Completed

Escore Tournament S2: W6
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
Acropolis #4
KK 2v2 League Season 1
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
PGL Astana 2026
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2

Upcoming

BSL 22 Non-Korean Championship
YSL S3
Escore Tournament S2: W7
Escore Tournament S2: W8
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
BLAST Bounty Summer 2026: Closed Qualifier
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 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.