Register Login
Internet / AI Technology University (ITU/AITU)





|

Top Links: >> 80. Technology >> Internet Technology Summit Program >> 4. Web Apps Frameworks >> 4.2. HTML 5, CSS, Java Script, jQuery, Angular JS, and REACT
Current Topic: 4.2.3. CSS for Responsive pages and Bootstrap.css
You have a privilege to create a quiz (QnA) related to this subject and obtain creativity score...
CSS for Responsive pages and Bootstrap.css

Web pages can be projected to desktops and viewed on mobile devices.
They must be Responsive to the size of devices. How do we make Responsive web pages?
Of course, we use Cascade Style Sheets. We can create our own CSS files or use one of the existing CSS libraries. The most popular library for mobile-friendly web sites is Bootstrap.css.

You can download bootstrap library, place in your css and js folders, and provide proper references.
(See the links at the bottom of the section)
Or you can provide direct referces to existing locations like in the sample below.




href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">



The Bootstrap library has many useful elements. Let us start with the container element. Container can include many row elements. Each row element can be split into 12 (twelve) columns. A developer can distribute these 12 columns in several ways: 4+4+4 or 6+6 or 3+4+5, etc.
Here is the example of 5+7 columns.



Column 1




Column 2







Column 1




Column 2






The beauty of this code is that this page is adaptable. For some devices it will look like one row with two columns and for smaller ones as one column with more rows.

To emphasize some specific content Bootstrap has the jumbotron class. Here is the example below:

Attention!



Attention!




Another class that serves as a section divider.


Bootstrap library includes the table class.

Basic Table











Name Email
Jeff jeff@example.com


Basic Table











Name Email
Jeff jeff@example.com



The Bootstrap library includes the dropdown class that creates a toggleable menu to choose one value from a list:

Dropdown Example


Have you heard about the Carousel class?
The Carousel class makes an easy slide show, such as in the example below.
Was it clear so far? Highlight the text in question Or



How does the Bootstrap helps with navigation?
There is the navbar class which provides the navigational tabs resizable for mobile devices.


Assignments:
1. In the Eclipse project 4.2.HTML create the index.html in the html folder.
index.html or index.jsp are accotding to web naming conventions are the main files, which usually start presentations.
2. In the index.html file provide your own samples similar to discussed in this section.
3. To demonstrate the carousel feature download several images and place them in the images folder.
4. To demonstrate the navigation bar create at least two more web pages in the html folder.
5. Check the tutorial and download links on the Bootstrap:
https://www.w3schools.com/bootstrap/bootstrap_modal.asp

6. Read the following sections of the tutorial and provide the examples of: BS Buttons, BS Glyphicons, BS Modal, and BS Tooltips
7. Email HTML files to dean@ituniversity.us

We invite you to create your own questions and answers (QnA) to increase your rank and win the Top Creativity Prize!

Topic Graph | Check Your Progress | Propose QnA | Have a question or comments for open discussion?
<br/><meta charset="utf-8">
<br/> <meta name="viewport" content="width=device-width, initial-scale=1">
<br/><!-- Latest compiled and minified CSS --> 
<br/><link rel="stylesheet" 
<br/>href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> 
<br/><!-- Optional theme --> <link rel="stylesheet" 
<br/>href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css"> 
<br/><!-- Latest compiled and minified JavaScript --> 
<br/><script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js">
<br/></script>
<br/>

The Bootstrap library has many useful elements. Let us start with the container element. Container can include many row elements. Each row element can be split into 12 (twelve) columns. A developer can distribute these 12 columns in several ways: 4+4+4 or 6+6 or 3+4+5, etc.
Here is the example of 5+7 columns.
<div class="container">
<br/>   <div class="row">
<br/>    <div class="col-sm-5">
<br/>      <p>Column 1</p>
<br/>    </div>
<br/>    <div class="col-sm-7">
<br/>      <p>Column 2</p>
<br/>    </div>
<br/>  </div>
<br/></div>



Column 1




Column 2






The beauty of this code is that this page is adaptable. For some devices it will look like one row with two columns and for smaller ones as one column with more rows.

To emphasize some specific content Bootstrap has the jumbotron class. Here is the example below:
<div class="jumbotron">
<br/>    <p>Attention!</p> 
<br/>  </div>

Attention!




Another class that serves as a section divider.
<div class="page-header">
<br/>  <p>Example Section Divider</p>
<br/></div>


Bootstrap library includes the table class.
<div class="container">
<br/>  <p>Basic Table</p>
<br/>  <table class="table">
<br/>    <thead>
<br/>      <tr>
<br/>        <th>Name</th>
<br/>        <th>Email</th>
<br/>      </tr>    </thead>
<br/>    <tbody>
<br/>      <tr>
<br/>        <td>Jeff</td>        <td>jeff@example.com</td>      </tr>    </tbody>
<br/>  </table>
<br/></div>

Basic Table











Name Email
Jeff jeff@example.com



The Bootstrap library includes the dropdown class that creates a toggleable menu to choose one value from a list:

Dropdown Example
<div class="dropdown">
<br/>  <button 
<br/>class="btn btn-primary dropdown-toggle" 
<br/>type="button" data-toggle="dropdown">
<br/>Dropdown Example
<br/>  <span class="caret"></span></button>
<br/>  <ul class="dropdown-menu">
<br/>    <li><a href="#">Web Apps</a></li>
<br/>    <li><a href="#">HTML</a></li>
<br/>    <li><a href="#">CSS</a></li>
<br/>  </ul>
<br/></div>


Have you heard about the Carousel class?
The Carousel class makes an easy slide show, such as in the example below.
<div id="myCarousel" 
<br/>class="carousel slide" data-ride="carousel">
<br/>  <!-- Indicators -->
<br/>  <ol class="carousel-indicators">
<br/>    <li data-target="#myCarousel" data-slide-to="0" 
<br/>      class="active"></li>
<br/>    <li data-target="#myCarousel" data-slide-to="1"></li>
<br/>    <li data-target="#myCarousel" data-slide-to="2"></li>
<br/>  </ol>
<br/>
<br/>  <!-- Wrapper for slides -->
<br/>  <div class="carousel-inner" role="listbox">
<br/>    <div class="item active">
<br/>      <img style="max-width:100%" src="img1.jpg" alt="Everest">
<br/>    </div>
<br/>    <div class="item">
<br/>      <img style="max-width:100%" src="img2.jpg" alt="Everest">
<br/>    </div>
<br/>    <div class="item">
<br/>      <img style="max-width:100%" src="img3.jpg" alt="Everest">
<br/>    </div>
<br/>  </div>
<br/>
<br/>  <!-- Left and right controls -->
<br/>  <a class="left carousel-control" 
<br/>href="#myCarousel" role="button" data-slide="prev">
<br/>      <span class="sr-only">Previous</span>
<br/>  </a>
<br/>  <a class="right carousel-control" 
<br/>href="#myCarousel" role="button" data-slide="next">
<br/>    <span class="sr-only">Next</span>
<br/>  </a>
<br/></div>






Was it clear so far? Highlight the text in question

Or




How does the Bootstrap helps with navigation?
There is the navbar class which provides the navigational tabs resizable for mobile devices.
<nav class="navbar navbar-default">
<br/>  <div class="container-fluid">
<br/>    <div class="navbar-header">
<br/>      <a class="navbar-brand" 
<br/>href="http://ITofTheFuture.com">
<br/>IT of The Future</a>
<br/>    </div>
<br/>    <div>
<br/>      <ul class="nav navbar-nav">
<br/>        <li class="active">
<br/><a href="/">Book</a></li>
<br/>        <li><a href="/its.html">School</a></li>
<br/>        <li><a href="references.html">
<br/>Testimonials</a></li> 
<br/>        <li><a href="http://roboteams.org">Robots</a></li> 
<br/>      </ul>
<br/>    </div>
<br/>  </div>
<br/></nav>


Assignments:
1. In the Eclipse project 4.2.HTML create the index.html in the html folder.
index.html or index.jsp are accotding to web naming conventions are the main files, which usually start presentations.
2. In the index.html file provide your own samples similar to discussed in this section.
3. To demonstrate the carousel feature download several images and place them in the images folder.
4. To demonstrate the navigation bar create at least two more web pages in the html folder.
5. Check the tutorial and download links on the Bootstrap:
https://www.w3schools.com/bootstrap/bootstrap_modal.asp

6. Read the following sections of the tutorial and provide the examples of: BS Buttons, BS Glyphicons, BS Modal, and BS Tooltips
7. Email HTML files to dean@ituniversity.us


We invite you to create your own questions and answers (QnA) to increase your rank and win the Top Creativity Prize!


Topic Graph | Check Your Progress | Propose QnA | Have a question or comments for open discussion?

Have a suggestion? - shoot an email
Looking for something special? - Talk to AI
Read: IT of the future: AI and Semantic Cloud Architecture | Fixing Education
Do you want to move from theory to practice and become a magician? Learn and work with us at Internet Technology University (ITU) - JavaSchool.com.

Technology that we offer and How this works: English | Spanish | Russian | French

Internet Technology University | JavaSchool.com | Copyrights © Since 1997 | All Rights Reserved
Patents: US10956676, US7032006, US7774751, US7966093, US8051026, US8863234
Including conversational semantic decision support systems (CSDS) and bringing us closer to The message from 2040
Privacy Policy