I am creating a web application using semantic-ui
. I am trying to create a layout which has a sidebar and main content area. At first, I thought using grid would be the way to go, except that they cause a few problems:
<div class="four wide black column">
, but this causes the columns to overlap with other contentSo it seems that grid are not the best tool for creating page layouts, although they do provide functionality which makes them useful for page layouts (like defining section sizes; four wide column
, ten wide column
, etc)
What is the recommended way to layout web applications using Semantic-UI, such as a simple sidebar and main content columns?
Both React and Semantic UI luckily make responsive design relatively easy with built-in components.
Since variations in Semantic UI are only assigned in the scope of components, there are no "free floating" responsive class names, however some components include responsive variations to help ease responsive design. Grid for example, includes responsive classes for hiding or showing column , row based on device type.
Why don't you override the default margin and padding applied for "grid" and "column" like this,
.your-custom-class.grid {
margin: 0;
}
.your-custom-class.grid .column {
padding: 0;
}
Thus you'll get a grid with no space in between the columns.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With