[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


why cant i simply define a list of compression methods (things like reducing gap sizing, changing element text to shorter versions, collapsing elements, even hiding elements entirely, etc.) and then tell the parent container if there is any strain then apply these compression methods in priority order.
Stain is simply defined as "if any child elements text would produce breaking at this size, or if any child elements would overlap".

THERE. I just fixed responsive css and it took me literally 5 minutes to think of and its INFNITELY better than this media query bullshit we currently have where you have to guesstimate at which sizes things are going to overlap which is entirely fucking impossible because you dont always know the text content of elements which dictate their size.
>>
Modern HTML/CSS/JS is the result of years of adding one bullshit thing after another to standards that were already defined and working.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.