CSS.

Slides:



Advertisements
Similar presentations
Web Engineering 1 Ishaq Khan Shinwari MCS City University Peshawar.
Advertisements

1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Cascading Style Sheets
Today CSS HTML A project.
CSS CSS stands for Cascading Style Sheets Styles define how to display HTML elements External Style Sheets can save a lot of work External Style Sheets.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
CSS(Cascading Style Sheets )
1 Dreamweaver CS5 intermediate class by Cookie Setton Build a CSS website WITHOUT TABLES Just when you thought you were starting to understand HTML coding,
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
ADVANCED CSS William Neely CEO, Piecewise.com. CSS FONTS AND TEXT CSS ‣ Line-height allows to indicate the amount of space between lines; allows for equal.
Unit 20 - Client Side Customisation of Web Pages
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
1Computer Sciences Department. And use
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
Understanding CSS Cascading Style Sheets control the presentation of content in HTML pages Style Sheets separate formatting from the content –Styles defined.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
CASCADING STYLE SHEET CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
1 Cascading Style Sheets
WebD Introduction to CSS By Manik Rastogi.
Cascading Style Sheets
Working with Cascading Style Sheets
Cascading Style Sheet.
CSS for Styling By Jinzhu Gao.
CS3220 Web and Internet Programming CSS Basics
Cascading Style Sheets™ (CSS)
4.01 Cascading Style Sheets
( Cascading style sheet )
Unit 3 - Review.
Introduction to the Internet
>> The “Box” Model
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Introduction to Web programming
Cascading Style Sheets (Layout)
Web Systems & Technologies
Cascading Style Sheets
CASCADING STYLE SHEET CSS.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Website Design 3
Introduction to Web programming
The Internet 10/13/11 The Box Model
CSS Style Sheets: Intro
Cascading Style Sheets Color and Font Properties
محمد احمدی نیا CSS محمد احمدی نیا
What are Cascading Stylesheets (CSS)?
Cascading Style Sheets™ (CSS)
Training & Development
CS3220 Web and Internet Programming CSS Basics
CS3220 Web and Internet Programming CSS Basics
Cascading Style sheet. What is CSS?  CSS stands for Cascading Style Sheets  Cascading: refers to the procedure that determines which style will apply.
Cascading Style Sheets
4.01 Cascading Style Sheets
Web Client Side Technologies Raneem Qaddoura
Session IV Chapter 15 - How Work with Fonts and Printing
Web Programming and Design
Introduction to Cascading Style Sheets (CSS)
Cascading Style Sheets™ (CSS)
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

CSS

CSs CSS stands for Cascading Style Sheets CSS describes how HTML elements are to be displayed on screen, paper, or in other media CSS saves a lot of work. It can control the layout of multiple web pages all at once External stylesheets are stored in CSS files

CSS Syntax and Selectors

Selectors CSS selectors are used to "find" (or select) HTML elements based on their element name, id, class, attribute, and more. Element Selector The element selector selects elements based on the element name ID Selector The id selector uses the id attribute of an HTML element to select a specific element. Class selector The class selector selects elements with a specific class attribute

Element Selector

ID Selector

Class Selector

Grouping Selectors

Three Ways to Insert CSS External style sheet Internal style sheet Inline style

External Style Sheet We can change the look of an entire website by changing just one file /*mystyle.css*/ body {     background-color: lightblue; } h1 {     color: navy;     margin-left: 20px; }

Internal Style Sheet An internal style sheet may be used if one single page has a unique style

Inline Styles An inline style may be used to apply a unique style for a single element.

Background Background Color Background Image

Background - Shorthand property When using the shorthand property the order of the property values is: background-color background-image background-repeat background-attachment background-position

Background Properties

CSS border  CSS border properties allow you to specify the style, width, and color of an element's border

Border Properties Property Description border Sets all the border properties in one declaration border-bottom Sets all the bottom border properties in one declaration border-bottom-color Sets the color of the bottom border border-bottom-style Sets the style of the bottom border border-bottom-width Sets the width of the bottom border border-color Sets the color of the four borders border-left Sets all the left border properties in one declaration border-left-color Sets the color of the left border border-left-style Sets the style of the left border border-left-width Sets the width of the left border border-radius Sets all the four border-*-radius properties for rounded corners border-right Sets all the right border properties in one declaration border-right-color Sets the color of the right border border-right-style Sets the style of the right border border-right-width Sets the width of the right border border-style Sets the style of the four borders border-top Sets all the top border properties in one declaration border-top-color Sets the color of the top border border-top-style Sets the style of the top border border-top-width Sets the width of the top border border-width Sets the width of the four borders

CSS Margin The CSS margin properties are used to generate space around elements. The margin properties set the size of the white space outside the border

CSS Padding The CSS padding properties are used to generate space around content. The padding clears an area around the content (inside the border) of an element

CSS Dimension Properties

The CSS Box Model All HTML elements can be considered as boxes. In CSS, the term "box model" is used when talking about design and layout.

CSS Box Model

CSS Outline The CSS outline properties specify the style, color, and width of an outline. An outline is a line that is drawn around elements (outside the borders) to make the element "stand out".

Outline Properties

CSS Outline

CSS Text Text Color Text Alignment Text Decoration The color property is used to set the color of the text Text Alignment The text-align property is used to set the horizontal alignment of a text. (left,right aligned, centered, justified) Text Decoration The text-decoration property is used to set or remove decorations from text. (none; is often used to remove underlines from links) Text Transformation The text-transform property is used to specify uppercase and lowercase letters in a text.(uppercase,lowercase, capitalize)

CSS Text Text Indentation The text-indent property is used to specify the indentation of the first line of a text Letter Spacing The letter-spacing property is used to specify the space between the characters in a text Line Height The line-height property is used to specify the space between lines: Text Direction The direction property is used to change the text direction of an element: Word Spacing The word-spacing property is used to specify the space between the words in a text

CSS Text

CSS font The CSS font properties define the font family, boldness, size, and the style of a text. In CSS, there are two types of font family names: generic family - a group of font families with a similar look (like "Serif" or "Monospace") font family - a specific font family (like "Times New Roman" or "Arial")

CSS Font Families

Font Family

Font Size The font-size property sets the size of the text

Fonts properties

CSS Links Links can be styled with any CSS property (e.g. color, font-family, background, etc.)

CSS Links

display Property The display property is the most important CSS property for controlling layout Every HTML element has a default display value depending on what type of element it is. The default display value for most elements is block or inline

Display Block-level Elements Inline Elements <div>,<h1>, <h6>,<p>,<form>,<header>,<footer>,<section> Inline Elements <span>,<a>,<img>

CSS Overflow The CSS overflow property specifies whether to clip content or to add scrollbars when the content of an element is too big to fit in a specified area.(visible ,hidden,scroll,auto)

CSS Float The float property specifies whether or not an element should float.

CSS Clear The clear property is used to control the behavior of floating elements

Image Opacity The opacity property specifies the opacity/transparency of an element

Image Opacity

CSS Navigation Bar

CSS Form

CSS Select-Form

CSS textbox - form

CSS textbox

CSS3

CSS3