This document introduces CSS (Cascading Style Sheets) by providing an overview of its key concepts and features in 3 sentences or less:
CSS allows precise control over the layout, formatting, and styling of HTML documents through style rules that select elements and declare how they should be displayed; style rules can be defined internally, embedded in the HTML, or linked externally via a separate .css file and applied via selectors, properties, and values; the cascade resolves conflicts between multiple applied styles based on source, specificity, and order.
CSS (Cascading Style Sheets) is a language used to style and lay out web pages. CSS allows you to control the color, font, size, spacing, and layout of text, images, and other HTML elements. There are three main ways to insert CSS: external style sheets, internal style sheets, and inline styles. CSS rules are made up of selectors that point to HTML elements along with declaration blocks that contain properties and values that define the element's style.
This document provides an introduction to CSS (Cascading Style Sheets), including what CSS is, why it is used, its history and syntax. It describes CSS selectors, properties, and different methods of attaching style definitions. It also covers the CSS box model and properties for styling text, links, lists, backgrounds, borders, margins and paddings.
CSS stands for Cascading Style Sheets and is used to define styles for displaying HTML elements. CSS has different levels that build upon each other and add new features. CSS level 1 was the first official recommendation in 1996, and level 2, published in 1998, added capabilities like positioning. CSS level 3 is currently under development. CSS saves work by defining styles that can be applied across many pages through external style sheets or internal style sheets. CSS has advantages like faster page loads and easier maintenance compared to only using HTML for styling.
CSS defines the appearance of HTML elements through style rules that specify property-value pairs. CSS style rules can control font properties, layout, print styles, and dynamic effects. When multiple style rules apply to an element, CSS uses the cascade principle to determine which rule takes precedence based on specificity, inheritance, and location. CSS properties accept various value types including colors defined by name, RGB/RGBA, HSL/HSLA, hex values, URLs, and lengths.
basic programming language AND HTML CSS JAVApdfelayelily
The document provides information about cascading style sheets (CSS). It begins with an introduction to CSS and how it can be used to control formatting and positioning of elements without using HTML tags. It then discusses the different CSS syntax rules including selectors, declarations, and properties. It provides examples of how to specify styles for different HTML elements as well as how CSS handles multiple style rules. The document also covers various CSS properties for formatting text, backgrounds, fonts and more. It aims to explain the basics of how CSS works and can be used to control styling and layout of HTML documents.
CSS allows separation of document structure (HTML) from presentation (styles). It provides precise control over elements' appearance. CSS rules have selectors that specify elements to style and declarations that define properties (e.g., color) and values (e.g., blue). Multiple style sheets can affect elements through cascading rules, with inline styles having highest priority. DHTML refers to combining HTML, CSS, and scripts to create dynamic and animated web pages.
The document provides information on CSS (Cascading Style Sheets). It discusses the different types of style sheets including inline, internal/embedded, and external stylesheets. It also covers various CSS properties such as text formatting, borders, margins, positioning elements with classes, and color properties. CSS is used to define styles and layouts for HTML documents and makes web pages more presentable.
This document discusses Cascading Style Sheets (CSS) basics including:
- Separating content from presentation using CSS and HTML documents.
- Configuring styles using inline, embedded, and external style sheets.
- Selecting elements using tag names, classes, IDs, and other selectors.
- Setting properties like colors, fonts, spacing in CSS rules.
- Linking HTML and CSS documents in various ways including using <link> and @import directives.
This is the CSS Tutorial for Beginners that teach the basics of CSS. This tutorial will show the basic structure of a CSS style and will show 3 different methods to apply styles.
Cascading Style Sheets (CSS) allow formatting of web documents. CSS provides attributes to create dynamic effects on web pages. Style sheets allow predefining formatting properties in a single list to apply globally or selectively. There are three main ways to insert a CSS stylesheet - external, internal, and inline. External stylesheets define styles in a .css file and can change an entire website with one file change. Internal stylesheets define styles within the <style> element in the HTML <head>. Inline styles directly format individual elements using the style attribute.
CSS handles the visual presentation of web pages. There are three ways to add CSS: inline, internally via the <style> tag, and externally via a <link> tag. CSS rules contain selectors that specify elements to style and declarations that define properties like color, font, padding, borders, and margin. CSS allows global styling changes and optimized formatting for different devices. It improves page load times and makes websites easier to maintain compared to only using HTML.
CSS Fundamentals: selectors and PropertiesPedro Valente
This document discusses CSS (Cascading Style Sheets) fundamentals including selectors and properties. It covers CSS rules, CSS selectors including element, class, ID and combining selectors. It also discusses inheritance in CSS where styles are inherited by child elements, and the cascade which determines how browsers apply contradictory CSS rules based on importance, specificity and order. The document provides examples of CSS properties, values, units and shorthand properties. It emphasizes best practices for writing efficient and well-structured CSS code.
On these slides. I explain all the properties and values of CSS Cascade Style Sheet (CSS).
How to define CSS class or id. How to implement CSS on the HTML page.
Cascading Style Sheets (CSS) is used to describe the presentation of documents by defining sizes, spacing, fonts, colors, layout, etc. CSS separates presentation from content and improves accessibility and flexibility. CSS rules consist of selectors, declarations separated by semicolons, and properties and values separated by colons. CSS can be applied via inline styles, embedded in the <head> using <style> tags, or linked externally via <link> tags. CSS follows a cascading priority scheme and specificity rules to determine which styles apply to elements.
CSS is a style sheet language used to describe the presentation of web pages including colors, fonts, layout, etc. It allows separation of document content from document presentation for better content organization and maintenance. CSS rules are made up of selectors, properties, and values and can be defined within HTML, externally, or via internal stylesheets. Common CSS properties include font, color, background, text, box model, list, table, and positioning. CSS specifications are developed and maintained by the W3C to standardize web development.
This document provides an overview of CSS (Cascading Style Sheets) and how it can be used to control the style and layout of web pages. CSS handles the presentation and look of HTML elements, allowing control over colors, fonts, spacing, sizes, backgrounds and other visual effects. CSS rules are made up of selectors, properties and values that are interpreted by browsers. Styles can be defined internally, inline, or through external style sheets for easier maintenance. The document also covers CSS syntax, selectors, measurement units, colors, and background properties.
The document provides an overview of CSS (Cascading Style Sheets) including its basic syntax and the three main methods for applying stylesheets: inline, internal, and external. It explains that CSS is used to control the layout and formatting of HTML elements and allows for consistent styling across multiple web pages. The key points covered are:
- CSS syntax uses selectors, properties, and values to style HTML elements
- Stylesheets can be defined internally within HTML, inline within elements, or externally in separate files
- External stylesheets are considered the best practice and allow linking CSS to HTML documents
The document discusses Cascading Style Sheets (CSS) and how they are used to control the layout and formatting of web pages. It covers the basic syntax of CSS code and the three main ways to apply stylesheets: internally, inline, and externally. Key points include that CSS separates structure and presentation, stylesheets allow consistent styling across pages, and the <link> tag is used to connect external CSS files to HTML documents.
This document provides an overview of Cascading Style Sheets (CSS) including:
- The different ways to apply CSS such as inline styles, embedded styles, and external styles.
- Various CSS selectors like tag selectors, class selectors, ID selectors, and combination selectors that allow targeting specific elements.
- CSS properties for styling elements with regards to colors, text, margins, paddings, and borders.
- The benefits of using CSS including separation of structure and presentation, consistency across pages, and reduced file size compared to only using HTML for styling.
CSS (Cascading Style Sheets) is a style sheet language that allows control over the look and formatting of a document written in a markup language like HTML. CSS handles the styling and layout of web pages and allows separation of content from design. Key points covered in the document include that CSS can control colors, fonts, layout, backgrounds and other styling aspects. It provides advantages like time savings, easier maintenance, faster page loads and global standards compliance. CSS rules are created and maintained by the W3C and different versions have been released over time. CSS syntax involves selectors, properties and values to target elements and apply styles. Styles can be defined inline, internally, or via external stylesheets.
CSS (Cascading Style Sheets) allows separation of HTML structure from presentation by controlling formatting properties like fonts, colors, and layout. CSS declarations can be embedded within HTML, linked via external stylesheets, or applied inline. Selectors target elements by tag name, class, ID, and other attributes to style them.
This document provides an overview of Cascading Style Sheets (CSS) including what CSS is, how to write CSS code, and the different ways to include CSS in an HTML document. CSS allows separation of document content from page layout and visual design. CSS code uses selectors, properties, and values to style HTML elements. Styles can be included inline, internally in the <head> using <style> tags, or externally in a .css file linked via the <link> tag. Inheritance rules determine which styles take precedence.
Cordova training - Day 2 Introduction to CSS 3Binu Paul
This document provides an introduction to CSS3 and its key concepts. It discusses how CSS is used to control the style and presentation of HTML documents. The main topics covered include the advantages of CSS like time savings and easy maintenance, the different CSS modules, syntax involving selectors, properties and values, and how to include CSS through different methods. It also explains various CSS properties for styling text, backgrounds, borders, images and positioning elements.
CSS allows separation of document structure (HTML) from presentation (styles). It provides precise control over elements' appearance. CSS rules have selectors that specify elements to style and declarations that define properties (e.g., color) and values (e.g., blue). Multiple style sheets can affect elements through cascading rules, with inline styles having highest priority. DHTML refers to combining HTML, CSS, and scripts to create dynamic and animated web pages.
The document provides information on CSS (Cascading Style Sheets). It discusses the different types of style sheets including inline, internal/embedded, and external stylesheets. It also covers various CSS properties such as text formatting, borders, margins, positioning elements with classes, and color properties. CSS is used to define styles and layouts for HTML documents and makes web pages more presentable.
This document discusses Cascading Style Sheets (CSS) basics including:
- Separating content from presentation using CSS and HTML documents.
- Configuring styles using inline, embedded, and external style sheets.
- Selecting elements using tag names, classes, IDs, and other selectors.
- Setting properties like colors, fonts, spacing in CSS rules.
- Linking HTML and CSS documents in various ways including using <link> and @import directives.
This is the CSS Tutorial for Beginners that teach the basics of CSS. This tutorial will show the basic structure of a CSS style and will show 3 different methods to apply styles.
Cascading Style Sheets (CSS) allow formatting of web documents. CSS provides attributes to create dynamic effects on web pages. Style sheets allow predefining formatting properties in a single list to apply globally or selectively. There are three main ways to insert a CSS stylesheet - external, internal, and inline. External stylesheets define styles in a .css file and can change an entire website with one file change. Internal stylesheets define styles within the <style> element in the HTML <head>. Inline styles directly format individual elements using the style attribute.
CSS handles the visual presentation of web pages. There are three ways to add CSS: inline, internally via the <style> tag, and externally via a <link> tag. CSS rules contain selectors that specify elements to style and declarations that define properties like color, font, padding, borders, and margin. CSS allows global styling changes and optimized formatting for different devices. It improves page load times and makes websites easier to maintain compared to only using HTML.
CSS Fundamentals: selectors and PropertiesPedro Valente
This document discusses CSS (Cascading Style Sheets) fundamentals including selectors and properties. It covers CSS rules, CSS selectors including element, class, ID and combining selectors. It also discusses inheritance in CSS where styles are inherited by child elements, and the cascade which determines how browsers apply contradictory CSS rules based on importance, specificity and order. The document provides examples of CSS properties, values, units and shorthand properties. It emphasizes best practices for writing efficient and well-structured CSS code.
On these slides. I explain all the properties and values of CSS Cascade Style Sheet (CSS).
How to define CSS class or id. How to implement CSS on the HTML page.
Cascading Style Sheets (CSS) is used to describe the presentation of documents by defining sizes, spacing, fonts, colors, layout, etc. CSS separates presentation from content and improves accessibility and flexibility. CSS rules consist of selectors, declarations separated by semicolons, and properties and values separated by colons. CSS can be applied via inline styles, embedded in the <head> using <style> tags, or linked externally via <link> tags. CSS follows a cascading priority scheme and specificity rules to determine which styles apply to elements.
CSS is a style sheet language used to describe the presentation of web pages including colors, fonts, layout, etc. It allows separation of document content from document presentation for better content organization and maintenance. CSS rules are made up of selectors, properties, and values and can be defined within HTML, externally, or via internal stylesheets. Common CSS properties include font, color, background, text, box model, list, table, and positioning. CSS specifications are developed and maintained by the W3C to standardize web development.
This document provides an overview of CSS (Cascading Style Sheets) and how it can be used to control the style and layout of web pages. CSS handles the presentation and look of HTML elements, allowing control over colors, fonts, spacing, sizes, backgrounds and other visual effects. CSS rules are made up of selectors, properties and values that are interpreted by browsers. Styles can be defined internally, inline, or through external style sheets for easier maintenance. The document also covers CSS syntax, selectors, measurement units, colors, and background properties.
The document provides an overview of CSS (Cascading Style Sheets) including its basic syntax and the three main methods for applying stylesheets: inline, internal, and external. It explains that CSS is used to control the layout and formatting of HTML elements and allows for consistent styling across multiple web pages. The key points covered are:
- CSS syntax uses selectors, properties, and values to style HTML elements
- Stylesheets can be defined internally within HTML, inline within elements, or externally in separate files
- External stylesheets are considered the best practice and allow linking CSS to HTML documents
The document discusses Cascading Style Sheets (CSS) and how they are used to control the layout and formatting of web pages. It covers the basic syntax of CSS code and the three main ways to apply stylesheets: internally, inline, and externally. Key points include that CSS separates structure and presentation, stylesheets allow consistent styling across pages, and the <link> tag is used to connect external CSS files to HTML documents.
This document provides an overview of Cascading Style Sheets (CSS) including:
- The different ways to apply CSS such as inline styles, embedded styles, and external styles.
- Various CSS selectors like tag selectors, class selectors, ID selectors, and combination selectors that allow targeting specific elements.
- CSS properties for styling elements with regards to colors, text, margins, paddings, and borders.
- The benefits of using CSS including separation of structure and presentation, consistency across pages, and reduced file size compared to only using HTML for styling.
CSS (Cascading Style Sheets) is a style sheet language that allows control over the look and formatting of a document written in a markup language like HTML. CSS handles the styling and layout of web pages and allows separation of content from design. Key points covered in the document include that CSS can control colors, fonts, layout, backgrounds and other styling aspects. It provides advantages like time savings, easier maintenance, faster page loads and global standards compliance. CSS rules are created and maintained by the W3C and different versions have been released over time. CSS syntax involves selectors, properties and values to target elements and apply styles. Styles can be defined inline, internally, or via external stylesheets.
CSS (Cascading Style Sheets) allows separation of HTML structure from presentation by controlling formatting properties like fonts, colors, and layout. CSS declarations can be embedded within HTML, linked via external stylesheets, or applied inline. Selectors target elements by tag name, class, ID, and other attributes to style them.
This document provides an overview of Cascading Style Sheets (CSS) including what CSS is, how to write CSS code, and the different ways to include CSS in an HTML document. CSS allows separation of document content from page layout and visual design. CSS code uses selectors, properties, and values to style HTML elements. Styles can be included inline, internally in the <head> using <style> tags, or externally in a .css file linked via the <link> tag. Inheritance rules determine which styles take precedence.
Cordova training - Day 2 Introduction to CSS 3Binu Paul
This document provides an introduction to CSS3 and its key concepts. It discusses how CSS is used to control the style and presentation of HTML documents. The main topics covered include the advantages of CSS like time savings and easy maintenance, the different CSS modules, syntax involving selectors, properties and values, and how to include CSS through different methods. It also explains various CSS properties for styling text, backgrounds, borders, images and positioning elements.
Video Games and Artificial-Realities.pptxHadiBadri1
🕹️ #GameDevs, #AIteams, #DesignStudios — I’d love for you to check it out.
This is where play meets precision. Let’s break the fourth wall of slides, together.
Module4: Ventilation
Definition, necessity of ventilation, functional requirements, various system & selection criteria.
Air conditioning: Purpose, classification, principles, various systems
Thermal Insulation: General concept, Principles, Materials, Methods, Computation of Heat loss & heat gain in Buildings
UNIT-1-PPT-Introduction about Power System Operation and ControlSridhar191373
Power scenario in Indian grid – National and Regional load dispatching centers –requirements of good power system - necessity of voltage and frequency regulation – real power vs frequency and reactive power vs voltage control loops - system load variation, load curves and basic concepts of load dispatching - load forecasting - Basics of speed governing mechanisms and modeling - speed load characteristics - regulation of two generators in parallel.
"The Enigmas of the Riemann Hypothesis" by Julio ChaiJulio Chai
In the vast tapestry of the history of mathematics, where the brightest minds have woven with threads of logical reasoning and flash-es of intuition, the Riemann Hypothesis emerges as a mystery that chal-lenges the limits of human understanding. To grasp its origin and signif-icance, it is necessary to return to the dawn of a discipline that, like an incomplete map, sought to decipher the hidden patterns in numbers. This journey, comparable to an exploration into the unknown, takes us to a time when mathematicians were just beginning to glimpse order in the apparent chaos of prime numbers.
Centuries ago, when the ancient Greeks contemplated the stars and sought answers to the deepest questions in the sky, they also turned their attention to the mysteries of numbers. Pythagoras and his followers revered numbers as if they were divine entities, bearers of a universal harmony. Among them, prime numbers stood out as the cornerstones of an infinite cathedral—indivisible and enigmatic—hiding their ar-rangement beneath a veil of apparent randomness. Yet, their importance in building the edifice of number theory was already evident.
The Middle Ages, a period in which the light of knowledge flick-ered in rhythm with the storms of history, did not significantly advance this quest. It was the Renaissance that restored lost splendor to mathe-matical thought. In this context, great thinkers like Pierre de Fermat and Leonhard Euler took up the torch, illuminating the path toward a deeper understanding of prime numbers. Fermat, with his sharp intuition and ability to find patterns where others saw disorder, and Euler, whose overflowing genius connected number theory with other branches of mathematics, were the architects of a new era of exploration. Like build-ers designing a bridge over an unknown abyss, their contributions laid the groundwork for later discoveries.
Electrical and Electronics Engineering: An International Journal (ELELIJ)elelijjournal653
Call For Papers...!!!
Electrical and Electronics Engineering: An International Journal (ELELIJ)
Web page link: https://wireilla.com/engg/eeeij/index.html
Submission Deadline: June 08, 2025
Submission link: elelijjournal@wireilla.com
Contact Us: wirelinux@wireilla.org
UNIT-4-PPT UNIT COMMITMENT AND ECONOMIC DISPATCHSridhar191373
Statement of unit commitment problem-constraints: spinning reserve, thermal unit constraints, hydro constraints, fuel constraints and other constraints. Solution methods: priority list methods, forward dynamic programming approach. Numerical problems only in priority list method using full load average production cost. Statement of economic dispatch problem-cost of generation-incremental cost curve –co-ordination equations without loss and with loss- solution by direct method and lamda iteration method (No derivation of loss coefficients)
ISO 4020-6.1 – Filter Cleanliness Test Rig: Precision Testing for Fuel Filter Integrity
Explore the design, functionality, and standards compliance of our advanced Filter Cleanliness Test Rig developed according to ISO 4020-6.1. This rig is engineered to evaluate fuel filter cleanliness levels with high accuracy and repeatability—critical for ensuring the performance and durability of fuel systems.
🔬 Inside This Presentation:
Overview of ISO 4020-6.1 testing protocols
Rig components and schematic layout
Test methodology and data acquisition
Applications in automotive and industrial filtration
Key benefits: accuracy, reliability, compliance
Perfect for R&D engineers, quality assurance teams, and lab technicians focused on filtration performance and standard compliance.
🛠️ Ensure Filter Cleanliness — Validate with Confidence.
Structural Health and Factors affecting.pptxgunjalsachin
Structural Health- Factors affecting Health of Structures,
Causes of deterioration in RC structures-Permeability of concrete, capillary porosity, air voids, Micro cracks and macro cracks, corrosion of reinforcing bars, sulphate attack, alkali silica reaction
Causes of deterioration in Steel Structures: corrosion, Uniform deterioration, pitting, crevice, galvanic, laminar, Erosion, cavitations, fretting, Exfoliation, Stress, causes of defects in connection
Maintenance and inspection of structures.
2. Introduction
CSS stands for Cascading Style Sheet
A Style Sheet language used for describing the
presentation of a document written in HTML.
It separates the formatting and Content of a
website.
Formatting is done by writing different types
styles to HTML element.
Formatting is defined by Styles.
Styles can be cascaded. That means formats
override any which were defined in included
earlier in the document.
3. Rules
Style rule has two parts : a selector
and a declaration. The declaration has
two parts: a property and a value
a Selector,
a Property, and
a Value
Syntax
Selector
{
property:value;
property:value;
property:value;
}
Example
body
{
color:green
}
5. Syntax of CSS
If the value is multiple words, quotes (“) around
the value is used.
To specify more than one property, each property
is separated with semicolon(;).
In defining styles if declaration colon (:), or
semicolon (;) are missing styles cannot be
processed.
Example1
p
{
font-family: ”Sans
serif”
}
Example
p
{
text-align:center;
color:black;
font-family:arial
}
6. Classes
Defining a style to a specific tag applies to
entire document, but if a style defined has
to be applied only to some places of the
document, then class of specific tag has to
be defined.
Defining class for a tag
selector.classname
{ property: value; property:value;}
Applying style class to a tag
<selector class=classname>
7. Class example
Defining class for a tag
h1.fred {
color:#EEEBD2;
background-color: #d8a29b;
font-family:”Book Antiqua”,
Times,serif;
border: thin groove #9baab2;
Applying style class to a tag
<h1 class= “fred”>
A Simple Heading
</h1>
8. Types of Style Sheet
Styles can be applied to Web page in three ways
Inline Style
Internal Style
External Style
9. Inline Style
Instead of using style sheet for whole page the style
can be defined within the basic HTML tag.
HTML should be Presentation free document, and so
in-line styles should be avoided wherever possible.
Usage :
<HTMLtag style=“rules”>… </HTMLtag>
Example:
<p style=“color: blue”>
Sample Text Inline Style
</p>
10. InternalStyle
Styles can be defined in the <head> section and
applied to the whole document.
Usage
<head>
<style type=“text/css”>
Rules
</style>
</head>
13. External Style
The styles can defined in external files called stylesheets which
can then be used in any document by including the stylesheet via
a URL.
The following tag is used to link the stylesheet to HTML document.
Usage :
<link rel=“type”
href=“URI”
type=“string”
media=“string”>
Example:
<link rel=“StyleSheet”
href=“css/Styles1.css”
type=“text/css”
media=“screen”>
14. External Style
Example:
<head>
<title>External Style Sheet</title>
<link rel="stylesheet"
type="text/css"
href="css/Styles1.css" />
</head>
css/style1.css has the following
<link rel=“StyleSheet”
href=“css/Styles1.css”
type=“text/css”
media=“screen”>
15. External Style
css/style1.css has the following
body {
background-color: lightblue;
}
h2 {
text-align: center;
color: blue;
font-family: "verdana"
}
p {
font-family: "sans serif";
color: yellow;
}
16. Properties and Values - Fonts
Font of text can be changed using Style sheet.
Always use TrueType fonts or generic font like serif(times),
sans-serif(arial), cursive, fantasy, monospaced(courier).
font-family: <family name>
[<generic family>]
p {
font-family: “Bookman old style”,
“Times New Roman”, Times, serif;
}
font-style: normal | italic |oblique
font-weight: normal | bold | bolder | lighter |
100 | 200 | 300 | 400 | 500 | 600 |700 | 800 |
900
The weight of any font can be changed. The first four options
are relative while numbered values gives absolute weights.
17. Properties and Values - Fonts
font-size: [small | medium |large ] |
[smaller | larger] | <length> |
<percentage>
Not only weight can be changed but also size
can be altered. Font lengths should be given in
units of pt.
18. Backgrounds and Colors
color: <value>
background-color: <value> | transparent
Background-image: URL | none
The color of any attribute can be changed.
Values should be given in Hexadecimal values.
Backgrounds for the whole page or individual
elements can have their color set from
stylesheet.
Elements can have transparent background.
Instead of color image can be used identified by
its URL.
If background-color is set then background-
image cannot be set.
19. Text
text-decoration: none | underline | overline |
line-through
Any piece of text can be decorated.
To remove underline the following can be used.
A:link, A:visited,
A:active{text-decoration: none}
text-transformation: none | capitalize |
uppercase | lowercase
Allows to set the case of text.
text-align: left | right | center | justify
One of the most useful text style. Allows to fully
justify text in a paragraph
21. Boxes
Many elements can be placed in boxes
margin: length | percentage |auto {1, 4}
Border-width: thin|thick|
meidum|length{1,4}
Padding: margin: length | percentage |auto {1, 4}
Margins can be changed.
Margins can be specified in lengths, instead if specified
in percentage resized window will not be adjusted in a
proper way.
If all margins specified in order then it will take in order
top, right, bottom, left.
If 2 values are specified the first value will be taken as
top and bottom, second value will be taken for left and
right margins
Same Rules are applied as margin
22. Boxes
border-color: value{1, 4}
border-style: none|dotted|dashed |solid|
double|groove | ridge{1, 4}
This sets the colour of the border around the element.
Upto 4 different colours can be specified. They are
applied in the same borders in the same order as
margins.
Each edge of the border can have a different style.
width: length|percentage|auto
Height: length|auto
Any block-level can be given a specific width or height.
It is better to specify the width in percentage to allow
for resizing of the browser window.
The height must be specified as an absolute size.
24. Units
Lengths can be wither absolute or relative. A relative length
can be either positive or negative, which is indicated by
preceding the value with an optional + or -.
Relative units that can be used are:
em: the height of the font for this element
ex: the height of the letter “x” in the current font
px: pixels
Allowable absolute units are:
in: size in inches
cm: size in centimeters
mm: size in millimeters
pt: points where 1 pt equals 1/72 inch
pc: picas where 1 pc = 12 pt
25. URLs
URLs can be used in stylesheets just as they
can in HTML documents. The format of the
URL reference is :
URL(location)
URL can optionally be quoted.
URL may be either absolute or relative.
If a URL is partial it is considered to be
relative to the location of the stylesheet
source, not the HTML document source.
26. Cascading order
Styles can be cascaded into a new virtual style
sheet by the following rules, where the
number four has the highest priority:
1. Browser default
2. External style sheet
3. Internal style sheet (in the head section)
4. Inline style sheet (inside an HTML
element)
An inline style has the highest priority
29. Position
Static : The value static is the default value for
elements and renders the position in the normal
order of things as they appear in the html.
Relative : It is much like static, but the element
can be offset from its original position with the
properties top, right, bottom and left .
Absolute : The absolute element can be placed
anywhere on the page using top, right, bottom
and left .
Fixed : It behaves like absolute, but fixed
elements should stay exactly where they are on
the screen even when the page is scrolled.
30. Floating
Floating an element will shift it to the right
or left of a line, with surrounding content
flowing around it.
Floating is normally used to position smaller
elements within a page
Example :
img {
float: left;
}