Bootstrap Tables and Advanced HTML
A basic Bootstrap table has a light padding and only horizontal dividers.
The .table class adds basic styling to a table.
The .table-striped class adds zebra-stripes to a table.
The .table-responsive class adjust the table to adjust to different screen sizes i.e., the table will adjust its size (width and height) according to whether the device is a smart phone, a tablet or a laptop or a desktop.
The .table class adds basic styling to a table.
The .table-striped class adds zebra-stripes to a table.
The .table-responsive class adjust the table to adjust to different screen sizes i.e., the table will adjust its size (width and height) according to whether the device is a smart phone, a tablet or a laptop or a desktop.
To create a link to a specific section of a webpage, use <a href="index.html#top>
and the destination element will be <a href="" name="top">
The second way to link to a specific section of a webpage, we should use the
It contains an Id parameter.
For example, if id = "top" then we can jump to the destination section of the
The second way to link to a specific section of a webpage, we should use the
nav
tag.It contains an Id parameter.
For example, if id = "top" then we can jump to the destination section of the
nav
using <a href="index.html#top">
Header and Footers:
-
The header of the webpage contains the caption for a webpage. It is considered to be important for search engine optimisation.
The default style for header is position:absolute and top:0 and left:0
-
The footer of the webpage contains the contact information feedback copywrite information and optionally a site map. It is considered to be inportant for search engine optimisation.
The default style for footer is position:absolute and bottom:0 and right:0
-
Image sprites
Image sprites are a mechanism to convert a huge image into an unlimited number of child images which are nothing but the part of the huge image.
To achieve this use the background position property. It accepts 4 parameters :
- The X coordinate of the parent image
- The Y coordinate of the parent image
- The width of the child image
- The height of the child image
For example, if we have a parent image which contains the flags of every country and we want to extract at any time only one cuntry's flag we use image sprites.
The advantage of image sprite is that instead of storing multiple images we store pnly one image in memorty and dynamically generate images as and when we require it.
Comments
Post a Comment