Explanation
The container
component provides a fixed-width container with a max-width of 1140 pixels in the default configuration. The class
attribute ui
is used to define the Semantic UI component and the class
attribute segment
adds a light-grey background to the container. The header and paragraph are default HTML tags, which can be styled using the Semantic UI class attribute.
Use
The container
component is used to center the content of a web page and provide a consistent layout for web pages across different devices and screen sizes. It's a useful element to create responsive, mobile-friendly websites.
Important Points
- The
container
component has a max-width of 1140 pixels in the default configuration.
- The
class
attribute ui
is used to define the Semantic UI component and the class
attribute segment
adds a light-grey background to the container.
Summary
In this tutorial, we explored the container
component of Semantic UI, its syntax, example, output, explanation, use, and important points. We learned that container
is an essential element of the Semantic UI framework that provides a fixed-width container to center and wrap the content of a web page. It's a useful element to create responsive, mobile-friendly websites.