Skip to content
Related Articles

Related Articles

Blaze UI Container sizes

View Discussion
Improve Article
Save Article
  • Last Updated : 14 May, 2022
View Discussion
Improve Article
Save Article

Blaze UI is a framework-free open source UI toolkit that uses JavaScript components to build great user interfaces. It is the same as a bootstrap for use and has excellent different elements to use to make your website look more amazing. This framework allows us to use various of its styles and properties to make a website more user-friendly.

Blaze UI provides Containers to add data with responsive stylings. Containers provide media query screen width restrictions on the content. There are six sizes offered by the Blaze UI Containers, xsmall, small, medium, large, xlarge, and super. 

Containers are based on the following screen size variables:

  • $screen-width-xsmall: In this, the screen width will be 20em;
  • $screen-width-small: In this, the screen width will be 30em;
  • $screen-width-medium: In this, the screen width will be 48em;
  • $screen-width-large: In this, the screen width will be 64em;
  • $screen-width-xlarge: In this, the screen width will be 78em;
  • $screen-width-super: In this, the screen width will be 116em;

Blaze-UI Container Class:

  • o-container: This class is used to add Blaze UI Container.
  • o-container–xsmall: This class is used to add a container with a width of 20em.
  • o-container–small: This class is used to add a container with a width of 30em.
  • o-container–medium: This class is used to add a container with a width of 48em.
  • o-container–large: This class is used to add a container with a width of 64em.
  • o-container–xlarge: This class is used to add a container with a width of 78em.
  • o-container–super: This class is used to add a container with a width of 116em.

Syntax:

<div class="o-container o-container-- ... ">...</div>

Example 1: The following code demonstrates the Blaze UI Container xsmall, and small size using provided classes.

HTML




<!DOCTYPE html>
<html>
<head>
    <title>Hello World!</title>
    <script type="module" src=
    </script>
    <script nomodule="" src=
    </script>
    <link rel="stylesheet" href=
    <style>
        .Logo {
            color: green;
        }
    </style>
</head>
<body>
    <h1 class="Logo">
        GeeksforGeeks
    </h1>
    <h2>
        Blaze UI xsmall Container
    </h2>
    <br />
    <div class="o-container o-container--xsmall">
        In today's digital world, when there are thousands 
        of online platforms (maybe more than that!) available 
        over the web, it becomes quite difficult for students 
        to opt for a quality, relevant and reliable platform 
        for themselves. Meanwhile, as Computer Science is a 
        very vast field hence students are required to find 
        an appropriate platform that can fulfill all their 
        needs such as - Tutorials and Courses, Placement 
        Preparation, Interview Experiences, and various others.
        And with the same concern, GeeksforGeeks comes in 
        the picture - a one-stop destination for all
        Computer Science students!!
    </div>
    <h2>
        Blaze UI small Container
    </h2>
    <br />
    <div class="o-container o-container--small">
        In today's digital world, when there are thousands 
        of online platforms (maybe more than that!) available 
        over the web, it becomes quite difficult for students 
        to opt for a quality relevant and reliable platform 
        for themselves. Meanwhile, as Computer Science is a 
        very vast field hence students are required to find 
        an appropriate platform that can fulfill all their
        needs such as - Tutorials and Courses, Placement 
        Preparation, Interview Experiences, and various others.
        And with the same concern, GeeksforGeeks comes in 
        the picture - a one-stop destination for all
        Computer Science students!!
    </div>
</body>
</html>


Output:

 

Example 2: The following code demonstrates the Blaze UI Container medium, and large size using provided classes.

HTML




<!DOCTYPE html>
<html>
<head>
    <title>Hello World!</title>
    <script type="module" src=
    </script>
    <script nomodule="" src=
    </script>
    <link rel="stylesheet" href=
    <style>
        .Logo {
            color: green;
        }
    </style>
</head>
<body>
    <h1 class="Logo">
        GeeksforGeeks
    </h1>
    <h2>
        Blaze UI medium Container
    </h2>
    <br />
    <div class="o-container o-container--medium">
        In today's digital world, when there are thousands 
        of online platforms (maybe more than that!) available 
        over the web, it becomes quite difficult for students 
        to opt for a quality, relevant and reliable platform 
        for themselves. Meanwhile, as Computer Science is a 
        very vast field hence students are required to find 
        an appropriate platform that can fulfill all their
        needs such as - Tutorials and Courses, Placement 
        Preparation, Interview Experiences, and various others.
        And with the same concern, GeeksforGeeks comes in 
        the picture - a one-stop destination for all
        Computer Science students!!
    </div>
    <h2>
        Blaze UI large Container
    </h2>
    <br />
    <div class="o-container o-container--large">
        In today's digital world, when there are thousands 
        of online platforms (maybe more than that!) available 
        over the web, it becomes quite difficult for students 
        to opt for a quality, relevant and reliable platform 
        for themselves. Meanwhile, as Computer Science is a 
        very vast field hence students are required to find 
        an appropriate platform that can fulfill all their
        needs such as - Tutorials and Courses, Placement 
        Preparation, Interview Experiences, and various others.
        And with the same concern, GeeksforGeeks comes in 
        the picture - a one-stop destination for all
        Computer Science students!!
    </div>
</body>
</html>


Output: 

 

Example 3: The following code demonstrates the Blaze UI Container xlarge and super size using provided classes.

HTML




<!DOCTYPE html>
<html>
<head>
    <title>Hello World!</title>
    <script type="module" src=
    </script>
    <script nomodule="" src=
    </script>
    <link rel="stylesheet" href=
    <style>
        .Logo {
            color: green;
        }
    </style>
</head>
<body>
    <h1 class="Logo">
        GeeksforGeeks
    </h1>
    <h2>
        Blaze UI xlarge Container -78em
    </h2>
    <br />
    <div class="o-container o-container--xlarge">
        In today's digital world, when there are thousands 
        of online platforms (maybe more than that!) available 
        over the web, it becomes quite difficult for students 
        to opt for a quality, relevant and reliable platform 
        for themselves. Meanwhile, as Computer Science is a 
        very vast field hence students are required to find 
        an appropriate platform that can fulfill all their 
        needs such as - Tutorials and Courses, Placement 
        Preparation, Interview Experiences, and various others.
        And with the same concern, GeeksforGeeks comes in 
        the picture - a one-stop destination for all
        Computer Science students!!
    </div>
    <h2>
        Blaze UI super Container -116em
    </h2>
    <br />
    <div class="o-container o-container--super">
        In today's digital world, when there are thousands 
        of online platforms (maybe more than that!) available 
        over the web, it becomes quite difficult for students 
        to opt for a quality, relevant and reliable platform 
        for themselves. Meanwhile, as Computer Science is a 
        very vast field hence students are required to find 
        an appropriate platform that can fulfill all their
        needs such as - Tutorials and Courses, Placement 
        Preparation, Interview Experiences, and various others.
        And with the same concern, GeeksforGeeks comes in 
        the picture - a one-stop destination for all
        Computer Science students!!
    </div>
</body>
</html>


Output:

 

Reference: https://www.blazeui.com/objects/containers/


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!