Css Codes
Css Codes
<html> <body>
<head> <p class = "example1">
<style type = "text/css"> This example is showing all borders in different
p.example1 { colors.
border:1px solid; </p>
border-bottom-color:#009900; /* Green */
border-top-color:#FF0000; /* Red */ <p class = "example2">
border-left-color:#330000; /* Black */ This example is showing all borders in green
border-right-color:#0000CC; /* Blue */ color only.
} </p>
p.example2 { </body>
border:1px solid; </html>
border-color:#009900; /* Green */
}
</style>
</head>
Text Effects
<html> p{
<head> color: white;
<style> text-shadow: 1px 1px 2px black, 0 0 25px blue, 0
h1 { 0 5px darkblue;
text-shadow: 2px 2px; }
} </style>
h2 { </head>
text-shadow: 2px 2px red;
} <body>
h3 { <h1>CVR College of Engineering</h1>
text-shadow: 2px 2px 5px red; <h2>CVR College of Engineering</h2>
} <h3>CVR College of Engineering</h3>
h4 { <h4>CVR College of Engineering</h4>
color: white; <h5>CVR College of Engineering</h5>
text-shadow: 2px 2px 4px #000000; <h6>CVR College of Engineering</h6>
} <p>CVR College of Engineering</p>
h5 { </body>
text-shadow: 0 0 3px #FF0000; </html>
}
h6 {
text-shadow: 0 0 3px #FF0000, 0 0 5px #0000FF;
}
Background Image and Color Change
• <html>
• <head>
• <style>
• body {
• background-image: url("sample.jpg");
• background-color: red;
• }
• </style>
• </head>
•
• <body>
• <h1>Hello World!</h1>
• </body>
• <html>
External CSS
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="mystyle.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
mystyle.css
• body {
background-color:red;
}
h1 {
color:green;
margin-left: 20px;
}
Introduction to Bootstrap
• The CSS framework in front-end development is called
Bootstrap.
• The CSS and JavaScript templates are used for typing, buttons,
navigation, and other interacting components.
• The main purpose of this utility was to build a tool that helps
in the development of website-related applications fast, easy,
convenient and more responsive.
• It also made sure that the consistency of the code and the
code quality is also not compromised. It also became easier to
maintain a framework whose further development was very
easy.
• 1. CSS files: It consists of global settings and is used to
define, by making use of multiple complementary classes,
the look of the prominent HTML items such as lists, texts,
tables, form elements, and images.