Вградени стилове Стил по подразбиране Стил в нова дефиниция Стил с променен вид DHTML - каскадни набори от стилове Разделяне на структурата на документа.

Slides:



Advertisements
Similar presentations
CSS3 OVERVIEW Owen Williams Owen at dynabooks daht com.
Advertisements

HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
CSS Cascading Style Sheets. What is CSS? CSS stands for Cascading Style Sheets (the page—or sheet—helps you create a style that will cascade across all.
Web Pages Week 10 This week: CSS Next week: CSS – Part 2.
Cascading Style Sheets
Chapter 6 More CSS Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 Cascading Style Sheets™ (CSS) Outline 5.1 Introduction 5.2 Inline Styles 5.3 Embedded Style Sheets 5.4 Conflicting Styles 5.5 Linking External Style.
CSS Евгения Ковачева. BODY { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; SCROLLBAR-FACE-COLOR: #ffffff; FONT-SIZE: 11pt; BACKGROUND: #ffffff; PADDING-BOTTOM:
Slide 1 CMPS 211 Internet Programming Spring 2008 Dynamic Effects with Styles Chapter 12 2/6/08.
Very quick intro HTML and CSS. Sample html A Web Title.
Cascading Style Sheets (CSS): Pixel-Level Control with HTML Ease
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.
Session 4: CSS Positioning Fall 2006 LIS Web Team.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
With CSS, a color is most often specified by: a HEX value - like "#ff0000" an RGB value - like "rgb(255,0,0)" a color name - like "red“ Example h1.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Cascading Style Sheet CSS CS1520 Ali Alanjawi. 2 TA Information Ali Alanjawi Homepage: Office:
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(Cascading Style Sheets )
Part 3 Introduction to CSS. CSS Text Text Styles h1 {color: green} // rgb(0,255,0), #00ff00 h2{letter-spacing: 0.5cm} // 2px h3 {text-align: right} //
Diliev.com & pLOVEdiv.com  DIliev.com.
Class four: the box model and positioning. is an HTML tag which allows you to create an element out of inline text. It doesn’t mean anything! try it:
Unit 20 - Client Side Customisation of Web Pages
 2002 Prentice Hall, Inc. All rights reserved. Chapter 4 – Cascading Style Sheets (CSS) Objectives –To take control of the appearance of a Web site by.
1 Dynamic HTML: Cascading Style Sheets™ (CSS). 2 Introduction Cascading Style Sheets (CSS) –Specify the style of your page elements –Spacing, margins,
1 XHTML Cascading Style Sheets™ (CSS). 2 Inline.html 1 2
 2002 Prentice Hall, Inc. All rights reserved. Chapter 4 – Cascading Style Sheets (CSS) Outline 4.1Introduction 4.2Inline Styles 4.3Creating Style Sheets.
Text Properties, Line Box, CSS. Text Properties Properties related to the display of text. Text-align : left, right, center I like FSU!
1 Dynamic HTML -Cascading Style Sheets™ (CSS) Outline 6.1 Introduction 6.2 Inline Styles 6.3 Embedded Style Sheets 6.4 Conflicting Styles 6.5 Linking External.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 14 – Dynamic HTML: Cascading Style Sheets (CSS) Outline 14.1Introduction 14.2Inline Styles.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 6 - Cascading Style Sheets™ (CSS) Outline 6.1 Introduction 6.2 Inline Styles 6.3 Embedded Style.
Copyright © 2006 Mark Logic Corporation. All rights reserved.
CSS Cascading Style Sheets *referenced from
WebD Introduction to CSS By Manik Rastogi.
CSS.

HTML WITH CSS.
Create a new stylesheet called Hotel Style
The Box Model in CSS Web Design – Sec 4-8
( Cascading style sheet )
CSS Layouts: Grouping Elements
Creating Your Own Webpage
CSS Rule Selector Declaration Block Value Attribute Name body {
Cascading Style Sheets (Formatting)
The Box Model in CSS Web Design – Sec 4-8
Web Systems & Technologies
کارگاه آموزشی توسعه وب بخش دوم - CSS ارائه: عباس نادری
3.5 Property Value Forms - There are 60 different properties in 7 categories: - Fonts - Lists - Alignment of text - Margins - Colors - Backgrounds - Borders.
Cascading Style Sheets
Chapter 6 More CSS Basics Key Concepts
Web Authoring Task 8– Create the following Style Sheet:
CS 174: Server-Side Web Programming February 7 Class Meeting
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
The Internet 10/13/11 The Box Model
Cascading Style Sheets
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
CMPE 280 Web UI Design and Development September 4 Class Meeting
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
How to use the CSS box model for spacing, borders, and backgrounds
CMPE 280 Web UI Design and Development February 7 Class Meeting
Lesson 5 Topic B – Basic Text & Fonts
Transitioning Opacity
Introduction to Cascading Style Sheets (CSS)
Cascading Style Sheets
Cascading Style Sheets™ (CSS)
Cascading Style Sheets
CMPE 280 Web UI Design and Development September 5 Class Meeting
Presentation transcript:

Вградени стилове Стил по подразбиране Стил в нова дефиниция Стил с променен вид DHTML - каскадни набори от стилове Разделяне на структурата на документа (заглавие, тяло, връзки,,) от съдържанието (стила). Елементарен пример с едноредови дефинициии:

Style EM { background-color: #8000FF; color: white } H1 { font-family: Arial, sans-serif } P { font-size: 18pt }.blue { color: blue } Заглавие Ето текст в един от дефинираните от стила елементи. Ново заглавие - нов стил Текст използващ друг атрибут на дефиницията. Ето пример с още атрибути. завършващ текст. Декларация на стила в заглавната секция

Импорт на стил Пазарна листа за вторник : мляко хляб бял хляб типов хляб пшеничен хляб ориз картофи пица с гъби изпрати заявката към магазина за хранителни стоки Унифициране на стила в целия site. Дефиницията на стила е в отделен файл и се импортира

Ето го и импортирания стил в отделен файл (styles.css) A { text-decoration: none } A:hover { text-decoration: underline; color: red; background-color: #CCFFCC } LI EM { color: red; font-weight: bold} UL { margin-left: 2cm } UL UL { text-decoration: underline; margin-left:.5cm }

динамика на стиловете in-line style This text is in a SPAN. глобални набори от стилове H1 {font-size: 16pt; font-weight: bold; color: red} H2 {font-style: italic; font-size: 24pt; color: green} SPAN {font-weight: bold; font-style: italic} This text is in a SPAN. This text is in an H1. This text is in an H2. класове B.large {font-size: 24pt}B.small {font-size: 8pt} This is a standard B. This uses the small class. This uses the large class. стилове и хипервръзки А:link {color : yellow} A: Visited { color : red} A : Hover { color : green } A: Active { color : blue }

Eменти DIV и SPAN DIV { text-align: justify; text-indent: 2em } SPAN { text-decoration: underline; text-transform: uppercase; vertical-align: super; letter-spacing:.5em; line-height: 200%; color: red } Абсолютно позициониране на елементи в HTML документ с помощта на свойството property на CSS: <IMG SRC = "i.gif" STYLE = "position: absolute; top: 0px; left: 0px; z-index: 1"> <H1 STYLE = "position: absolute; top: 50px; left: 50px; z-index: 3">Positioned Text <IMG SRC = "circle.gif" STYLE = "position: absolute; top: 25px; left: 100px; z-index: 2">

относително позициониране на елементите: P { font-size: 2em; font-family: Verdana, Arial, sans-serif} SPAN { color: red; font-size:.6em; height: 1em }.super { position: relative; top: -1ex }.sub { position: relative; bottom: -1ex }.shiftl { position: relative; left: -1ex }.shiftr { position: relative; right: -1ex } Text text text text superscript text text text text subscript text Text text left-shifted text text text right-shifted Text text text text text

Управление на фона чрез CSS: Атрибути background-color; background-image; background-repeat; background-position; background-attachment. Background Images BODY { background-image: url(watermark.gif); background-position: bottom right; background-repeat: no-repeat; background-attachment: fixed } P { font-size: 2em; color: #AA5588; text-indent: 1em; font-family: Arial, sans-serif }.dark { font-weight: bold } This is some sample text to fill in the page. This is some sample text to fill in the page.This is some sample text to fill in the page.This is some sample text to fill in the page.This is some sample text to fill in the page.

Управление вида на курсора: auto hand move text wait help default crosshair w-resize nw-resize n-resize ne-resize e-resize se-resize s-resize sw-resize CSS и обектния модел за динамичен HTML: Hello еквивалнтен на: MySpan.style.color= “blue”

Списъци: Each of the following LI tags has the CSS attribute list-style-type set to the specified value. disc circle square none decimal lower-roman upper-roman lower-alpha upper-alpha

Определяне размери на текстови полета из страницата DIV { background-color: #FFCCFF; margin-bottom:.5em } Here is some text that goes in a box which is set to stretch across twenty precent of the width of the screen. Here is some CENTERED text that goes in a box which is set to stretch across eighty precent of the width of the screen. This box is only twenty percent of the width and thirty percent of the height. What do we do if it overflows? Set the overflow property to scroll!

разполагане текст на произволни места из екрана: Flowing Text Around Floating Elements DIV {background-color:#FFCCFF; margin-bottom:.5em; font-size:1.5em;width: 50% } Centered text Right-aligned text This is some floated text, floated text, floated text, floated text. Here is some flowing text, flowing text, flowing text. Here is some flowing text, flowing text, flowing text. Here is some flowing text, flowing text, flowing text. This is some floated text, floated text, floated text, floated text. Here is some flowing text, flowing text, flowing text. Here is some unflowing text. понятия: margin, border, padding.