Creating a Details Element That Opens But Never Closes

Category Image 052

The <details> and <summary> elements in HTML are useful for making content toggles for bits of text. By default, you see the <summary> element with a toggle triangle (▶︎) next to it. Click that to expand the rest of the text inside the <details> element.

But let's say you want to be able to click it open and that's that. Interactivity over. I saw this used in one of those "Read more" article designs, where you click that "Read more" button and the article expands, but there is no going back.

I'll preface this by saying that I'm not sure that this is a great idea in general. Removing controls just doesn't feel great, nor does slapping too much important content within a <details> element. But, hey, the web is a big place and you never know what you might need. The fact that this can be done in a few lines of HTML/CSS is compelling and might reduce the need for heavier solutions.

The main trick here is to hide the summary when details is open.

details[open] summary {
  display: none;
}

That's it really.

The post Creating a Details Element That Opens But Never Closes appeared first on CSS-Tricks.

Neurala Introduces Edge Learning through Brain Builder SDK

Featured Imgs 23

Neurala, an AI-powered visual inspection solutions provider, recently announced that its Brain Builder SDK has now been optimized to enable edge learning for use cases such as manufacturing. Brain Builder is Neurala's vision AI platform. In its latest release, Brain Builder allows users to build, deploy and analyze customized AI solutions based on learning from a network edge device.

CityU of Hong Kong Embraces API-Based Systems

Featured Imgs 23

The City University of Hong Kong has set itself up for success by embraced an API-led approach to education, unifying the campus experience between City U’s five colleges and schools, a 4,000-member academic staff, and their 26,000-plus students. 

The API-led approach tackles the integration of legacy systems with a unified system. This API-based system will sustain an ongoing evolution and improvement within one space, rather than requiring the campus community to bounce in and out of different systems.