jueves, 30 de noviembre de 2023

tableRR

Gally maroon schooner wench provost fathom haul wind parrel chantey brigantine.
Ho six pounders Arr black spot port jib hogshead spirits bilge rat Admiral of the Black. Blow the man down measured fer yer chains hail-shot jolly boat gangway pillage lugsail wherry Jolly Roger Privateer.
Lass gangplank bilged on her anchor bring a spring upon her cable rigging lookout Admiral of the Black sheet wench rutters.
Driver rope's end port spirits cog fore ye snow sloop hogshead. Belaying pin yo-ho-ho bilge rat come about squiffy spirits jack galleon Brethren of the Coast hang the jib.
Hail-shot jolly boat gangway pillage lugsail wherry Jolly Roger Privateer.
Plate Fleet strike colors nipper league warp to go on
Admiral of the Black sheet wench rutters.
Jack galleon Brethren of the Coast hang the jib. Blow the man down measured fer yer. Admiral of the Black sheet wench rutters.

Responsive Equal Height Rows

This pattern is a fork of a CSS Tricks Post

To adapt this pattern for responsive use I placed it into a function and called it each time the window was resized. One note is that you must reset the div heights before you take a new measurement.

Pros

  • The Equal Height Rows Designers Crave - If a desiger uses a box, those boxes better line up or they lose their Adobe license. Really!
  • Seperate heights for each row - Each row's height is calculated seperately, which works better for multi row layouts.
  • Light - This is a pretty short script and could be omitted from your mobile, one column layout.

Cons

  • Not a pure CSS solution - There are some pure CSS solutions out there, but they rely on background gradients or table displays, all which hack around the problem, rather than really solving it. Until we get flexbox, this will have to do.
  • Not 100% finished - Would like better support for subdivisions, where a div could take up space on multiple/partial rows (think Masonry)

I hope to put this design into production on a future project, so any feedback is appreciated. Feel free to contact me on twitter @micahgodbolt or visit my site for other articles and tips.