Web Client Side Technologies Raneem Qaddoura

Slides:



Advertisements
Similar presentations
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 External Style.
Advertisements

Web Engineering 1 Ishaq Khan Shinwari MCS City University Peshawar.
Cascading 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.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
กระบวนวิชา 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.
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.
Cascading Style Sheets Controlling the Display Of Web Content.
1Computer Sciences Department. And use
Doman’s Sections Information in this presentation includes text and images from
Lesson 03 // Cascading Style Sheets. CSS Stands for Cascading Style Sheets. We’ll be using a combination of Html and CSS to create websites. CSS is a.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
1 Cascading Style Sheets
WebD Introduction to CSS By Manik Rastogi.
CSS.
Cascading Style Sheets
Cascading Style Sheets (CSS) Internal Style Sheets Classes
Working with Cascading Style Sheets
Cascading Style Sheets
IS1500: Introduction to Web Development
Cascading Style Sheet.
CSS Cascading Style Sheets
CSS for Styling By Jinzhu Gao.
4.01 Cascading Style Sheets
( Cascading style sheet )
Semester - Review.
Unit 3 - Review.
UNIT-II CSS.
Introduction to the Internet
>> The “Box” Model
What is CSS.
Cascading Style Sheets
Madam Hazwani binti Rahmat
Web Developer & Design Foundations with XHTML
Cascading Style Sheets
Introduction to Web programming
Cascading Style Sheets (Layout)
Web Systems & Technologies
Information Architecture and design
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 8th Edition
Cascading Style Sheets
CASCADING STYLE SHEET CSS.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Basics of Web Design Chapter 7 Page Layout Basics Key Concepts
Introduction to Web programming
Cascading Style Sheets
Software Engineering for Internet Applications
Cascading Style Sheets
DynamicHTML Cascading Style Sheet Internet Technology.
محمد احمدی نیا CSS محمد احمدی نیا
What are Cascading Stylesheets (CSS)?
DynamicHTML Cascading Style Sheet Internet Technology.
Cascading Style Sheets (CSS)
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
Cascading Style Sheets
4.01 Cascading Style Sheets
Web Programming and Design
INTERNATIONAL INSTITUTE OF IFORMATION TECHNOLOGY, (I²IT)
Introduction to Cascading Style Sheets (CSS)
Introduction to Styling
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

Web Client Side Technologies 0780341 Raneem Qaddoura CSS Web Client Side Technologies 0780341 Raneem Qaddoura

What is 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

Selectors element Selector: id Selector p {   text-align: center;   color: red; } #para1 {   text-align: center;   color: red; }

Selectors class Selector Grouping Selectors .center {   text-align: center;   color: red; } p.center {   text-align: center;   color: red; } p, h1, h2 {   text-align: center;   color: red; }

CSS Combinators Descendant Selector: The descendant selector matches all elements that are descendants of a specified element. Child Selector :The child selector selects all elements that are the immediate children of a specified element. div p { background-color: yellow; } div > p { background-color: yellow; }

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

Ways to Insert CSS External style sheet Here is how the "mystyle.css" looks: <head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head> body {   background-color: lightblue; } h1 {   color: navy;   margin-left: 20px; }

Ways to Insert CSS Internal style sheet Inline style <head> <style> body {   background-color: linen; } h1 {   color: maroon;   margin-left: 40px; }  </style> </head> <h1 style="color:blue;margin-left:30px;">This is a heading</h1>

CSS properties colors Background Color Text Color Border Color Borders Border Style Border Width Border - Individual Sides Border - Shorthand Property Rounded Borders

CSS properties Width & Height Setting height and width Setting max-width Margins Margin - Individual Sides Margin - Shorthand Property The auto Value The inherit Value padding Padding - Individual Sides Padding - Shorthand Property Padding and Element Width

The box model

CSS properties Text Color Text Alignment Text Decoration Text Transformation Text Indentation Letter Spacing Line Height Text Direction Word Spacing Text Shadow

CSS properties font Font Family Font Style Font Size Font Weight links Styling Links Text Decoration Background Color

Link example <head> <body> <style> a:link, a:visited { background-color: #f44336; color: white; padding: 14px 25px; text-align: center; text-decoration: none; display: inline-block; } a:hover, a:active { background-color: red; </style> </head> <body> <h2>Link Button</h2> <p>A link styled as a button:</p> <a href="default.asp" target="_blank">This is a link</a> </body>

CSS properties display float & clear Inline-block opacity align Center Align Elements Center Align Text Center an Image

CSS properties List Different List Item Markers An Image as The List Item Marker List - Shorthand property Table Table Borders Collapse Table Borders Table Width and Height Horizontal Alignment Vertical Alignment Table Padding Horizontal Dividers Hoverable Table Striped Tables

CSS Website Layout layout

CSS Specificity Every selector has its place in the specificity hierarchy. There are four categories which define the specificity level of a selector: Inline styles - An inline style is attached directly to the element to be styled. Example: <h1 style="color: #ffffff;">. IDs - An ID is a unique identifier for the page elements, such as #navbar. Classes, attributes and pseudo-classes - This category includes .classes, [attributes] and pseudo-classes such as :hover, :focus etc. Elements and pseudo-elements - This category includes element names and pseudo-elements, such as h1, div, :before and :after.

Case studies CSS Navigation Bar CSS Dropdowns CSS Image Gallery CSS Image Sprites

Self Study CSS Lists (https://www.w3schools.com/css/css_list.asp) CSS tables (https://www.w3schools.com/css/css_table.asp)

References https://www.w3schools.com/ Sharma, P. (2013). Introduction to Web Technology. SK Kataria and Sons. Peterson, C. (2014). Learning responsive web design: a beginner's guide. " O'Reilly Media, Inc.".