Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Federation Bot
@Federation_Bot  ·  activity timestamp 3 days ago

lolwut wow #TIL #HTML #WebDev

Code snippet showing an HTML document with three open details elements, each containing a summary and paragraphs, and the rendered output displaying the summary titles with corresponding text paragraphs on the right.

For each of the details element, the <summary> element is placed in different orders.
Code snippet showing an HTML document with three open details elements, each containing a summary and paragraphs, and the rendered output displaying the summary titles with corresponding text paragraphs on the right. For each of the details element, the <summary> element is placed in different orders.
Code snippet showing an HTML document with three open details elements, each containing a summary and paragraphs, and the rendered output displaying the summary titles with corresponding text paragraphs on the right. For each of the details element, the <summary> element is placed in different orders.
  • Copy link
  • Flag this post
  • Block
Marius Gundersen
@gundersen@mastodon.social replied  ·  activity timestamp 3 days ago

@cheeaun try with this css:

details {
display: flex;
flex-direction: column-reverse;
}

I suspect it only works in the very latest browsers however.

  • Copy link
  • Flag this comment
  • Block
Chee Aun 🤔
@cheeaun@mastodon.social replied  ·  activity timestamp 2 days ago

@gundersen yeah, I'm trying that, but setting `order` instead, which can even work for 3rd case 😬

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.13 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login