Lab Manual 04
Lab Manual 04
Introduction to CSS
Lab Manual 04
Dated:
th
3rd October, 2022 to 7 October, 2022
Semester:
Autumn 2022
The border properties allow you to specify how the border of the box
representing an element should look. There are three properties of a border you
can change:
The border-color specifies the color of a border.
<style type="text/css">
p.example1{
inset: Border makes the box look like it is embedded in the page.
outset: Border makes the box look like it is coming out of the canvas.
You can individually change the style of the bottom, left, top, and right borders
of an element using the following properties:
</p>
<p style="border-width:4px; border-style:double;">
This is a double border.
</p>
<p style="border-width:4px; border-style:groove;">
This is a groove border.
</p>
<p style="border-width:4px; border-style:ridge">
This is aridge border.
</p>
<p style="border-width:4px; border-style:inset;">
This is a inset border.
</p>
<p style="border-width:4px; border-style:outset;">
This is a outset border.
</p>
<p style="border-width:4px; border-style:hidden;">
You can individually change the width of the bottom, top, left, and right borders
of an element using the following properties:
The following example shows how to use all the three properties into a single
property. This is the most frequently used property to set border around any
element.
<style type="text/css">
p {margin: 15px}
all four margins will be 15px
MAD Lab
Instructor:-Adnan Mustafa
Session:-2019 Computer
p {margin: 10px 2% -10px}
top margin will be 10px, left and right margin will be 2% of the total
width of the document, bottom margin will be -10px
Here is an example:
Here is an example:
Here is an example:
Value Description
None NA
MAD
Lab Instructor:-Adnan Mustafa
Session:-2019 Computer
Square A filled-in square
Here are the values, which can be used for an ordered list:
Here is an example:
<ul style="list-style-type:circle;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ul>
<ul style="list-style-type:square;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ul>
<ol style="list-style-type:decimal;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
<ol style="list-style-type:lower-alpha;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ol>
<ol style="list-style-type:lower-roman;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ol>
none NA
inside If the text goes onto a second line, the text will wrap underneath the
marker. It will also appear indented to where the text would have
started if the list had a value of outside.
outside If the text goes onto a second line, the text will be aligned with the
start of the first line (to the right of the bullet).
Here is an example:
<ul style="list-style-type:square;list-style-position:inside;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ul>
<ol style="list-style-type:decimal;list-stlye-position:outside;">
<li>Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ol>
<ol style="list-style-type:lower-alpha;list-style-position:inside;">
<ul>
<li style="list-style-image: url(/https/www.scribd.com/images/bullet.gif);">Maths</li>
<li>Social Science</li>
<li>Physics</li>
</ul>
<ol>
<li style="list-style-image: url(/https/www.scribd.com/images/bullet.gif);">Maths</li>
<li>Social Science</li>
<li>Physics</li>
Here is an example:
Here is an example:
MAD Lab
Instructor:-Adnan Mustafa
Session:-2019 Computer
This is another paragraph with a specified bottom
padding in percent </p>
MAD Lab
Instructor:-Adnan Mustafa
Session:-2019 Computer
It will produce the following result:
Here is an example:
</p>
The following table shows the possible values for the cursor
property:
Value Description
default An arrow.
MAD Lab
Instructor:-Adnan Mustafa
Session:-2019 Computer
se-resize The cursor indicates that an edge of a box is to be moved down
and right (south/east).
help A question mark or balloon, ideal for use over help buttons.
NOTE: You should try to use only these values to add helpful information for
users, and in places, they would expect to see that cursor. For example, using
the crosshair when someone hovers over a link can confuse the visitors.
Here is an example:
<p>Move the mouse over the words to see the cursor change:</p>
<div style="cursor:auto">Auto</div>
<div style="cursor:crosshair">Crosshair</div>
<div style="cursor:default">Default</div> <div
style="cursor:pointer">Pointer</div> <div
style="cursor:move">Move</div>
<div style="cursor:e-resize">e-resize</div>
<div style="cursor:ne-resize">ne-resize</div>
<div style="cursor:nw-resize">nw-resize</div>
<div style="cursor:wait">wait</div>
<div style="cursor:help">help</div>
You have to develop a web page similar to the one given below.( find the Screen Capture
attached below) This page must have following properties:
You have to develop a web page similar to the one given below. (Find the Screen Capture attached
below) This page must have the following properties:
Use HTML tags and CSS that you studied in Computer Application in Engineering Design
lectures of HTML and CSS.
Task#03: Write the HTML code and CSS to generate a Web Page in the format given below:
Web page title should be “Online Book storage”.
You are required to use appropriate heading tags for all headings used in web page.
Use HTML table for diagrams.
For HTML tables, use border, bgcolor and colspan where needed/ suitable.
Insert your accurate information in appropriate places as mentioned in the image.
LOGIN, USER PROFILE, BOOKS CATALOG, SHOPINGCART, PAYMENT as a link