3 - Chapter 3 Part II - CSS
3 - Chapter 3 Part II - CSS
<h1>Database tutorials:</h1>
<h2>SQL tutorial</h2>
<h2>MySQL tutorial</h2>
<h2>PL/SQL tutorial</h2>
<h2>Oracle tutorial</h2>
<p><strong>Note:</strong> IE8 supports these properties only if a
!DOCTYPE is specified.</p>
11/19/2022 AASTU | Dept. of SWENG - 2015EC 3
ol { counter-reset: section;
list-style-type: none; }
li::before { counter-increment: section;
Different level of
……
content: counters(section,".") " "; }
nesting counters example
<h2>Different level of Nesting counters</h2>
<ol>
<li>item</li>
<li>item
<ol>
<li>item</li>
<li>item</li>
<li>item
<ol>
<li>item</li>
<li>item</li>
<li>item</li>
</ol>
</li>
<li>item</li>
</ol>
</li>
<li>item</li>
<li>item</li>
</ol>
<p><b>Note:</b>
11/19/2022 IE8 supports these properties
AASTU | Dept.only if a !DOCTYPE
of SWENG - 2015EC is specified.</p> 4
div {
border: 3px solid red; • A clear float (or clearfix) is a way for an element to
padding: 5px;
fix or clear the child elements so that we do not
}
background-color:pink;
font-size:20px; require to add additional markup j
• It resolves the error which occurs when more than
img{ float: right;
border: 3px solid blue; } one floated elements are stacked next to each other
p{ font-size:20px;
clear:right; }
.jtp{ overflow: auto; }
…… … … ….
<h1>Without Clearfix</h1>
<div>
<img class="img1" src="jtp.png">
Welcome to the javaTpoint.com. Here, you can
find the best tutorials that are easy to read and
help you to clear your concepts.
</div>
<p>Use the overflow:auto; CSS property</p>
<h1>With Clearfix</h1>
<div class="jtp">
<img class="img2" src="jtp.png">
Welcome to the javaTpoint.com. Here, you can
find the best tutorials that are easy to read and
help you to clear your concepts.
</div>
………
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<style>
body{ text-align:center;
background-color:lightblue; }
Example: Google icons
.material-icons{ color:red;
font-size:50px;
margin:10px; }
………
<body>
<h1>Google icons</h1>
<i class="material-icons">cloud</i> <i class="material-icons">attachment</i>
<i class="material-icons">computer</i> <i class="material-icons">favorite</i>
<i class="material-icons">traffic</i>
</style>
circle polygon
<style>
img.example { animation: anime 4s infinite;
border: 5px dashed red; }
inset
@keyframes anime {
0% { clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 70%); }
20% { clip-path: polygon(40% 0, 50% 0, 100% 100%, 0% 80%); }
40% { clip-path: polygon(0 0, 60% 72%, 100% 100%, 0 35%); }
60% { clip-path: polygon(70% 0, 20% 0, 100% 100%, 0% 80%); }
80% { clip-path: polygon(0 70%, 60% 0, 100% 32%, 0 40%); }
100% { clip-path: polygon(0 0, 60% 0, 100% 100%, 0% 30%); }
}
</style>
<body>
..
<h2> Animation in Clip-path property </h2>
<img src="jtp.png" class="example">…
<body>
<h1>Welcome to the javaTpoint.com</h1>
<div>
This is an example of CSS variables
<h3>--bg-color: lightgreen;</h3>…
…
p{ font-size: 25px; }
p::before { content: "Hello World. Welcome "; }
#para::before { content: url("img.png"); }
#para1::before { content: url("img.png"); }
</style>
….
<h1> CSS content property </h1>
<h2> Use of content: string; and content: url();
</h2>
<p> to the javaTpoint.com </p>
<p id = "para"> This is a paragraph using the
<b>url()</b> value. </p>
<p id = "para1"> This is another paragraph using
the <b>url()</b>
11/19/2022 value. </p> .. AASTU | Dept. of SWENG - 2015EC 50
CSS content example using open-quote and close-quote value
….
body{ text-align: center; }
p{ font-size: 25px;}
p::before {content: open-quote;}
p::after { content: close-quote }
</style>
</head>
..
<h1> CSS content property </h1>
<h2> Use of content: open-quote; and Using no-open-quote; and no-close-quote
content: close-quote; </h2>
<p> Welcome to the javaTpoint.com </p>
<p> This is another paragraph. </p>
</body>
</html>
….
<style>
body{ text-align: center; }
a::after { content: attr(href); }
</style>
……
<h1> CSS Content property </h1>
<h2> The following link is displayed by using the
<b>attr()</b> </h2>
<a href= https://www.javatpoint.com>Click
here! </a> …
column-width It is used to set the minimum width for columns. However, the
actual width of the column may be narrower or wider based on the
available space.
column-count It specifies the maximum number of columns.
Initial It is used to set the property to its default value.
Inherit It inherits the property from its parent element.
p{ p{
font-size: 20px; font-size: 20px;
pointer-events: none; pointer-events: auto;
} }