CSS. CSS is the style language for web pages. CSS stylesheets example
|
|
- Dustin Wade
- 5 years ago
- Views:
Transcription
1 1 CSS CSS is the style language for web pages CSS stylesheets example
2 CSS 2 The standard we will use for dealing with style in web pages is CSS = Cascading Style Sheets, even though it is not XML ( XSL) Although CSS is not very complex, it is quite detailed, and you need good reference sites for it, see: the sites already mentioned for HTML W3C CSS site CSS 2.1 Standard (& parts of CSS3) CSS-Tricks CSS Zen Garden the development tools in your browser
3 XSL 2a XSL is an XML-based stylesheet language for adding style to XML, and is used mainly for processing singlesource documents First you transform using XSLT, and then you output using XSL-FO In my personal opinion, XSLT is the world's worst declarative programming language, so bad that it's easier to use (say) Java At one time, it seemed that it might take over from CSS for HTML pages, but the idea has been abandoned
4 CSS Versions 3 Version 2.1 is the most recent complete standard, referred to by the HTML5 standard, and version 3 is a modular "work in progress" Since browser support is generally a bit patchy, the best advice is: Don't worry about versions, just take each feature and check the browser support situation, e.g. using Can-I-use, and aim to degrade gracefully degrading
5 Degrading Gracefully 3a A web page degrades gracefully if it works OK on older browsers or versions, perhaps in an inferior way or without decoration or with something inessential missing, but making self contained sense and not giving a wrong impression It is not graceful if the site doesn't work, or the visitor can see that something is missing, or can't navigate properly, or the site shows a complaint about the age of the browser, or an apology for not being able to show something
6 Linking to a Stylesheet 4 You should link to a stylesheet using a relative or siterelative URL in a link element in the head <link href="/share/slides.css" rel="stylesheet" type="text/css" /> html This is the only right way to add style, but there are lots of wrong or obsolete ways: don't use old HTML don't use the style attribute don't use the style tag
7 Don't Use Old HTML 4a Don't use any obsolete tags or attributes from HTML4 which are style related and deprecated: <font...>...</font> <body color="green">...</body> bad html bad html Style should be completely separated out so, for example, small-device 'browsers' can ignore it altogether Validation should sort this out
8 Don't Use the Style Attribute 4b At first it seems harmless to add style in attributes: <em style="color:red">...</em> bad html BUT: you can get into XML-compatibility trouble with certain characters, you cause maintenance effort (style is scattered, and not shared in just one place) and you may develop a bad habit For this course, you musn't do it. For the rest of your life, I suggest a very strict self-discipline: the second time you do it on the same page, move the style to a style tag at the top of the page
9 Don't use the Style Tag 4c Style tags are also somewhat dangerous, not a good separation of the style issue, and may lead to bad habits: <style> em { color: red; } </style> bad html In this course, you mustn't do it. For the rest of your life, I suggest a very strict self-discipline. The second time you use a style tag on a page on your site, switch to using a stylesheet
10 Selectors, properties, values 5 A CSS rule selects some elements (nodes in the tree), then attaches a property with a given value to them This example selects all <em>...</em> elements and adds a color property, with value red to them em { color: red; } css And that is CSS in a nutshell! Beware: although CSS supports /*... */ comments, it doesn't support one-line // comments
11 Cascading 6 How does the browser find the value of a property for an element? It uses a complex algorithm, using three hierarchies: stylesheets: from newest to oldest elements: from current outwards to outermost specificity: from most specific to most general specificity and importance Use your development browser to check which rules are being applied
12 Specificity and importance 6a More specific rules override less specific ones, e.g. a rule for a given element id overrides a rule for a given class, which overrides a rule for a given tag name, which overrides a global rule You can also override the normal order of checking by adding!important to a rule; important user preferences override important stylesheet rules which override normal rules, e.g. em { color: red!important; } css
13 Multiple Properties 7 If you want multiple properties to apply, you can do it in one of two ways: em { color: red; font-weight: bold; } em { color: red; } em { font-weight: bold; } css css The two rules can even be in different stylesheets, but remember that more specific rules override more general rules
14 Selectors 8 You can select elements based on tagname, attribute, id, class, context input[type=text] [tag and attribute value] button#save [tag and id] #save [just id] code.java [tag and class].java [just class] h2+p [follow] pre>code [child] tr:nth-child(3) [nth child - third row] a:hover [when hovering] css
15 Multiple selectors 9 You can select multiple sets of elements at once em, b, h2 { color: red; } [with commas!] css You can also specify a style for one type of element inside another type, e.g. all em elements within an h2 h2 em { color: red; } [no commas!] css These are very similar: beware confusion
16 Meaning 10 The ideal is to keep the HTML as meaningful as possible, e.g. class names should explain why an element needs to look different: <p class="angry">i hate fonts</p> <p class="signature">ian Holyer</p> <p class="angry signature">mr Red Face</p> html The stylesheet then changes the look to match:.angry { color: red; }.signature { text-align: right; } css
17 Clever use of selectors 11 Sometimes, careful choice of selectors can help avoid littering the HTML with ids and classes, e.g. to make all the entries in the third column of a particular table right aligned: table#stats td:nth-child(3) { text-align:right; } css Try to find the best compromise between (a) HTML driving CSS, and (b) CSS navigating HTML
18 Leftover Style Tags 12 Tags like <i>, <b>, <tt> are really style tags Often <em>, <strong>, <dfn>, <var>, <cite>, <q>, <code>, <kbd>, <samp> are better. E.g.: <i>css</i> is <i>very</i> easy... bad html Later, you may want definitions to look different from emphasis, which will be easier if you have written: <dfn>css</dfn> is <em>very</em> easy... html
19 Range of Properties 13 Properties that can be affected using CSS include: sizes and positions margins, borders and padding colours and backgrounds fonts and text tables lists printing A lot of these involve specifying numbers and choosing units for them
20 Units 14 One general issue that a lot of properties have in common is units, for example, if you want to change font size: Browser Units (bad) Absolute Units (bad) Relative Units (bad) Relative Units (good) The summary is that ems or percentages are best for font sizes
21 Browser Units 14a There are "browser" units xx-small, x-small, small, medium, large, x-large, xx-large and relative browser units smaller, larger Beware saying "browser defaults look too big, I'll use smaller", because that is just in your environment with your eyesight, it should be the visitor's choice Browsers disagree strongly over the size ratios, so these units are not recommended anyway
22 Absolute Units 14b There are absolute units: inches, centimeters, millimeters, points (1/72 in) and picas (12/72 in) font-size: 12pt; (in, cm, mm, pt, pc) These may be OK for printing, but they are useless on screen, because browsers would need to know people's monitor resolutions, and they don't (they guess very badly) So absolute units are not recommended
23 Bad Relative Units 14c There are relative units px (pixels), and ex (height of letter x) Using pixels provides good scaling across devices (except printers!) BUT then the text doesn't scale when the visitor changes the default text size Browsers can't accurately detect the real height of the letter x, they guess badly, so ex shouldn't be used
24 Good Relative Units 14d Finally there are relative units em (width of letter M), and % (percentage of current value) For text, em and % are the same (1em = 100% = current font size), for example: h2 { font-size: 2em; } For parameters other than text, ems allow lengths relative to font size Percentages have to be checked to see what they are percentages of
25 Colours 15 The first rule of colour in CSS is to spell it color A second rule is: if you change the colour of anything, take full control and specify the colour of everything (otherwise, your text colour may match your visitor's chosen background colour) Here are some ways of specifying red: color:rgb(255,0,0); [BEST, 0 to 255] css color:rgb(100%,0%,0%); [approximate, 100% = 255] color:#ff0000; [rrggbb hex] color:#f00; [rgb hex, x means xx] color:red; [only 17 standard names]
26 Fonts 16 Graphic designers love to control fonts: p { font-family: Arial; } bad css But Arial is a Windows font, so use: p { font-family: Arial,Helvetica,FreeSans,sans-serif; } This gives choices in preference order, ending with a family group which all browsers should support What if you need the same font on all platforms (e.g. these slides, where the metrics matter)?
27 Web fonts 17 Suppose you choose Molengo from Google Fonts You can link live to Google's CDN (perhaps with a protocol-relative URL): <link html href='//fonts.googleapis.com/css?family=molengo' rel='stylesheet' type='text/css'> p { font-family: Molengo; } css There are more font details to worry about
28 Web font details 17a If you have a special need for a self-contained site, you can download { css font-family:molengo; src:url('/share/molengo.ttf'); } p { font-family: Molengo; } A browser may still display text differently, even if the font is identical, e.g. putting an extra pixel gap between characters Usually it doesn't matter, but e.g. for these slides, some JavaScript is used to change the font size of program fragments
29 The Box Model 18 Layout uses the box model, often visualized in browser development tools: An element has width, height, padding, border, margin, all fully controllable There are also box-sizing and flex properties for more sophisticated uses
30 Complexity 19 Even using developer tools, it can be hard to work out what is going on: Heading This page has body then header, and a red background showing an unwanted body/header gap There is no margin, border, or padding on body/header, but h2 has a margin which extends above the header Solution: remove h2's top margin, or set overflow to hidden on the header
31 Defaults 20 The appearance of elements is controlled almost entirely by CSS For example h2 headings are defined by: h2 { display: block; font-size: 1.5em; font-weight: bold; margin: 0.83em 0; } css Check the defaults, in the HTML5 standard or browser development tools, before changing them in a stylesheet
32 Vendor prefixes 21 Experimental new CSS features, implemented by browsers before the standard has settled, are sometimes made available using vendor prefixes For example, 3-D transforms, using the property name transform, were available ahead of time as: -webkit-transform (Chrome, Safari, Opera) -moz-transform (Firefox) -o-transform (old Opera) -ms-transform (IE) Don't use them if obsolete, and use only temporarily
33 Validating CSS 22 You can validate your CSS stylesheet by visiting the W3C CSS Validator site, or downloading their validator Generally, it is far less important to validate CSS than to validate HTML
34 Example Page Design 23 Let's develop a simple page design with a header, two columns, and a footer, in a magazine style, targetting just desktops, not mobiles For mobiles, you need to use a responsive approach, switching to a single column for narrow windows, perhaps using a responsive framework Our design will be fluid, but becoming fixed below a reasonable minimum window width, to avoid problems
35 The Body 24 To make a simple coloured header and footer for our site style, first we have to make sure we can go right up to the edge of the page, by taking out margins or padding on the body body { padding: 0; margin: 0; } css The body is given a minimum width, adjusted to what the content can stand. If the window goes narrower than that, the page format becomes fixed, with a horizontal scrollbar body { min-width: 640px; } css
36 Header and Footer 25 The header and footer have no padding or margins, width 100% (of the body), background colour blue header, footer { padding: 0; margin: 0; width: 100%; background-color: blue; } css Each has its own fixed height, and the footer also clears the floats used for the two columns header { height: 50px; } footer { height: 25px; clear: both; } css
37 Columns 26 To make two columns, we define two section classes, one for each column, and float them section.left, section.right { css width: 44%; text-align: justify; } section.left { float: left; margin: 0 2% 0 4%; } section.right { float: right; margin: 0 4% 0 2%; } The clear:both; in the footer makes sure the browser puts the footer underneath the floats, rather than trying to put it alongside them
38 Internet Explorer 27 When the page was written, it was worth supporting IE8, which doesn't support HTML5 at all However, the main issue is just the new tags header, footer and section. The standard polyfill for this is html5shiv.js Instead of downloading it, we can just include it directly from a CDN, cdnjs, using a protocol-relative URL <!--[if IE]> <script src="//cdnjs.../html5shiv.min.js" ></script> <![endif]--> html
39 Headers and Footers 28 A tough problem is sharing headers/footers: stylesheets can't contain (much) HTML content HTML5/CSS3 tricks aren't general enough frames are obsolete; they spoil navigation etc SSI is platform dependent overnight programs spoil file properties That leaves copy-and-paste for static pages (not v. maintainable) server injection on delivery JavaScript injection on arrival (maybe with AJAX)
CSS: The Basics CISC 282 September 20, 2014
CSS: The Basics CISC 282 September 20, 2014 Style Sheets System for defining a document's style Used in many contexts Desktop publishing Markup languages Cascading Style Sheets (CSS) Style sheets for HTML
More informationCMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB
CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB Unit 3 Cascading Style Sheets (CSS) Slides based on course material SFU Icons their respective owners 1 Learning Objectives In this unit you
More informationCascading Style Sheets (CSS)
Cascading Style Sheets (CSS) Mendel Rosenblum 1 Driving problem behind CSS What font type and size does introduction generate? Answer: Some default from the browser (HTML tells what browser how)
More informationThe Benefits of CSS. Less work: Change look of the whole site with one edit
11 INTRODUCING CSS OVERVIEW The benefits of CSS Inheritance Understanding document structure Writing style rules Attaching styles to the HTML document The cascade The box model CSS units of measurement
More informationCSS مفاهیم ساختار و اصول استفاده و به کارگیری
CSS مفاهیم ساختار و اصول استفاده و به کارگیری Cascading Style Sheets A Cascading Style Sheet (CSS) describes the appearance of an HTML page in a separate document : مسایای استفاده از CSS It lets you separate
More informationReading 2.2 Cascading Style Sheets
Reading 2.2 Cascading Style Sheets By Multiple authors, see citation after each section What is Cascading Style Sheets (CSS)? Cascading Style Sheets (CSS) is a style sheet language used for describing
More informationStyles, Style Sheets, the Box Model and Liquid Layout
Styles, Style Sheets, the Box Model and Liquid Layout This session will guide you through examples of how styles and Cascading Style Sheets (CSS) may be used in your Web pages to simplify maintenance of
More informationAppendix D CSS Properties and Values
HTML Appendix D CSS Properties and Values This appendix provides a brief review of Cascading Style Sheets (CSS) concepts and terminology, and lists CSS level 1 and 2 properties and values supported by
More information<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.
CSS Formatting Background When HTML became popular among users who were not scientists, the limited formatting offered by the built-in tags was not enough for users who wanted a more artistic layout. Netscape,
More informationCSS Cascading Style Sheets
CSS Cascading Style Sheets site root index.html about.html services.html stylesheet.css images boris.jpg Types of CSS External Internal Inline External CSS An external style sheet is a text document with
More informationSession 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style
Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style precedence and style inheritance Understand the CSS use
More informationBefore you begin, make sure you have the images for these exercises saved in the location where you intend to create the Nuklear Family Website.
9 Now it s time to challenge the serious web developers among you. In this section we will create a website that will bring together skills learned in all of the previous exercises. In many sections, rather
More informationAssignments (4) Assessment as per Schedule (2)
Specification (6) Readability (4) Assignments (4) Assessment as per Schedule (2) Oral (4) Total (20) Sign of Faculty Assignment No. 02 Date of Performance:. Title: To apply various CSS properties like
More informationCOSC 2206 Internet Tools. CSS Cascading Style Sheets
COSC 2206 Internet Tools CSS Cascading Style Sheets 1 W3C CSS Reference The official reference is here www.w3.org/style/css/ 2 W3C CSS Validator You can upload a CSS file and the validator will check it
More informationReview Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>
Introduction to CSS Review Question 1 Which tag is used to create a link to another page? 1. 2. 3. 4. Review Question 1 Which tag is used to create a link to another page? 1. 2.
More information3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets
3.1 Introduction - HTML is primarily concerned with content, rather than style - However, tags have presentation properties, for which browsers have default values - The CSS1 cascading style sheet specification
More informationWelcome Please sit on alternating rows. powered by lucid & no.dots.nl/student
Welcome Please sit on alternating rows powered by lucid & no.dots.nl/student HTML && CSS Workshop Day Day two, November January 276 powered by lucid & no.dots.nl/student About the Workshop Day two: CSS
More informationHTML and CSS a further introduction
HTML and CSS a further introduction By now you should be familiar with HTML and CSS and what they are, HTML dictates the structure of a page, CSS dictates how it looks. This tutorial will teach you a few
More informationIn the early days of the Web, designers just had the original 91 HTML tags to work with.
Web Design Lesson 4 Cascading Style Sheets In the early days of the Web, designers just had the original 91 HTML tags to work with. Using HTML, they could make headings, paragraphs, and basic text formatting,
More informationCascading Style Sheets Level 2
Cascading Style Sheets Level 2 Course Objectives, Session 1 Level 1 Quick Review Chapter 6 Revisit: Web Fonts Chapter 8: Adding Graphics to Web Pages Chapter 9: Sprucing Up Your Site s Navigation Begin
More informationWeb Design and Development Tutorial 03
Table of Contents Web Design & Development - Tutorial 03... 2 Using and Applying CSS to XHTML... 2 Conventions... 2 What you need for this tutorial... 2 Common Terminology... 3 Parent / Child Elements...
More informationMore CSS goodness with CSS3. Webpage Design
More CSS goodness with CSS3 Webpage Design CSS3 for Web Designers CSS is Evolving Currently we have been working with CSS 2.1 This specification in its entirety is supported by all current browsers (there
More information- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values
3.1 Introduction - HTML is primarily concerned with content, rather than style - However, tags have presentation properties, for which browsers have default values - The CSS1 cascading style sheet specification
More informationHTML/XML. HTML Continued Introduction to CSS
HTML/XML HTML Continued Introduction to CSS Entities Special Characters Symbols such as +, -, %, and & are used frequently. Not all Web browsers display these symbols correctly. HTML uses a little computer
More informationCS7026 Media Queries. Different Screen Size Different Design
CS7026 Media Queries Different Screen Size Different Design Introduction Users no longer view web content only on traditional desktop systems, but are increasingly using smartphones, tablets, and other
More informationCSS: Cascading Style Sheets
What are Style Sheets CSS: Cascading Style Sheets Representation and Management of Data on the Internet, CS Department, Hebrew University, 2007 A style sheet is a mechanism that allows to specify how HTML
More informationMake a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1
Make a Website A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Overview Course outcome: You'll build four simple websites using web
More information3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets
3.1 Introduction - The CSS1 specification was developed in 1996 - CSS2 was released in 1998 - CSS2.1 reflects browser implementations - CSS3 is partially finished and parts are implemented in current browsers
More information- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations
3.1 Introduction - The CSS1 specification was developed in 1996 - CSS2 was released in 1998 - CSS2.1 reflects browser implementations - CSS3 is partially finished and parts are implemented in current browsers
More informationCSS Selectors. element selectors. .class selectors. #id selectors
CSS Selectors Patterns used to select elements to style. CSS selectors refer either to a class, an id, an HTML element, or some combination thereof, followed by a list of styling declarations. Selectors
More informationCSS means Cascading Style Sheets. It is used to style HTML documents.
CSS CSS means Cascading Style Sheets. It is used to style HTML documents. Like we mentioned in the HTML tutorial, CSS can be embedded in the HTML document but it's better, easier and neater if you style
More informationHeader. Article. Footer
Styling your Interface There have been various versions of HTML since its first inception. HTML 5 being the latest has benefited from being able to look back on these previous versions and make some very
More informationCSS Styles Quick Reference Guide
Table 1: CSS Font and Text Properties Font & Text Properties Example(s) font-family Font or typeface font-family: Tahoma font-size Size of the font font-size: 12pt font-weight Normal or bold font-weight:
More informationIntroduction to Web Tech and Programming
Introduction to Web Tech and Programming Cascading Style Sheets Designed to facilitate separation of content and presentation from a document Allows easy modification of style for an entire page or an
More informationICT IGCSE Practical Revision Presentation Web Authoring
21.1 Web Development Layers 21.2 Create a Web Page Chapter 21: 21.3 Use Stylesheets 21.4 Test and Publish a Website Web Development Layers Presentation Layer Content layer: Behaviour layer Chapter 21:
More informationIntroduction to Cascading Style Sheet (CSS)
Introduction to Cascading Style Sheet (CSS) Digital Media Center 129 Herring Hall http://dmc.rice.edu/ dmc-info@rice.edu (713) 348-3635 Introduction to Cascading Style Sheets 1. Overview Cascading Style
More informationCSS. Selectors & Measurments. Copyright DevelopIntelligence LLC
CSS Selectors & Measurments 1 Back to descendants remember walking down the document tree structure and see how parents and children interact not only is it important to know about inheritance walking
More informationINFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS
INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS cristina gena dipartimento di informatica cgena@di.unito.it http://www.di.unito.it/~cgena/ materiale e info sul corso http://www.di.unito.it/~cgena/teaching.html
More informationINTRODUCTION TO CSS. Topics MODULE 5
MODULE 5 INTRODUCTION TO CSS Topics > Cascading Style Sheets (CSS3) Basics Adding a Style Sheet Selectors Adding Dynamic Styles to Elements CSS3 Properties CSS3 Box Model Vendor Prefixes Cascading Style
More informationTable Basics. The structure of an table
TABLE -FRAMESET Table Basics A table is a grid of rows and columns that intersect to form cells. Two different types of cells exist: Table cell that contains data, is created with the A cell that
More informationIntroduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100
Introduction to Multimedia MMP100 Spring 2016 profehagan@gmail.com thiserichagan.com/mmp100 Troubleshooting Check your tags! Do you have a start AND end tags? Does everything match? Check your syntax!
More informationMedia Types & Media Features
Media Types & Media Features Same HTML, Different CSS R. Scott Granneman r Jans Carton 1.6 2008 R. Scott Granneman Last updated 2018-08-21 You are free to use this work, with certain restrictions. For
More informationEECS1012. Net-centric Introduction to Computing. Lecture 3: CSS for Styling
EECS1012 Net-centric Introduction to Computing Lecture 3: CSS for Styling Acknowledgements Contents are adapted from web lectures for Web Programming Step by Step, by M. Stepp, J. Miller, and V. Kirst.
More informationCS7026 Media Queries II. Different Screen Size Different Design
CS7026 Media Queries II Different Screen Size Different Design What You ll Learn We ll be restyling an entire page layout to work with different screen sizes and devices using Media queries to apply styles
More informationHIERARCHICAL ORGANIZATION
A clearly defined home page Navigation links to major site sections HIERARCHICAL ORGANIZATION Often used for commercial and corporate websites 1 Repetition DESIGN PRINCIPLES Repeat visual elements throughout
More informationCSS Cascading Style Sheets
CSS Cascading Style Sheets site root index.html about.html services.html stylesheet.css charlie.jpg Linking to your HTML You need to link to your css in the of your HTML file.
More informationMedia-Specific Styles
Media-Specific Styles Same HTML, Different CSS R. Scott Granneman r Jans Carton 1.5 2008 R. Scott Granneman Last updated 2017-06-13 You are free to use this work, with certain restrictions. For full licensing
More informationText and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions
Text and Layout Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11 This presentation 344 345 Text in Graphics Maximum flexibility obtained by treating text as graphics and manipulating
More information- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents
3.1 Introduction - The CSS1 specification was developed in 1996 - CSS2 was released in 1998 - CSS3 is on its way - CSSs provide the means to control and change presentation of HTML documents - CSS is not
More informationSession 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties
Session 4 Style Sheets (CSS) 1 Reading Reading & References en.wikipedia.org/wiki/css Style Sheet Tutorials www.htmldog.com/guides/cssbeginner/ A reference containing tables of CSS properties web.simmons.edu/~grabiner/comm244/weekthree/css-basic-properties.html
More information<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***
Chapter 7 Using Advanced Cascading Style Sheets HTML is limited in its ability to define the appearance, or style, across one or mare Web pages. We use Cascading style sheets to accomplish this. Remember
More informationORB Education Quality Teaching Resources
These basic resources aim to keep things simple and avoid HTML and CSS completely, whilst helping familiarise students with what can be a daunting interface. The final websites will not demonstrate best
More informationZen Garden. CSS Zen Garden
CSS Patrick Behr CSS HTML = content CSS = display It s important to keep them separated Less code in your HTML Easy maintenance Allows for different mediums Desktop Mobile Print Braille Zen Garden CSS
More informationThis tutorial will help both students as well as professionals who want to make their websites or personal blogs more attractive.
About the Tutorial CSS is used to control the style of a web document in a simple and easy way. CSS stands for Cascading Style Sheets. This tutorial covers both the versions CSS1 and CSS2 and gives a complete
More informationUsing Dreamweaver CS6
Using Dreamweaver CS6 4 Creating a Template Now that the main page of our website is complete, we need to create the rest of the pages. Each of them will have a layout that follows the plan shown below.
More informationThe building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations).
WDI Fundamentals Unit 4 CSS Cheat Sheet Rule The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations). Declaration A declaration is made
More informationCSS: Layout Part 2. clear. CSS for layout and formatting: clear
CSS: Layout Part 2 Robert A. Fulkerson College of Information Science and Technology http://www.ist.unomaha.edu/ University of Nebraska at Omaha http://www.unomaha.edu/ CSS for layout and formatting: clear
More informationCSS 1: Introduction. Chapter 3
CSS 1: Introduction Chapter 3 Textbook to be published by Pearson Ed 2015 in early Pearson 2014 Fundamentals of Web http://www.funwebdev.com Development What is CSS? You be styling soon CSS is a W3C standard
More informationUsing Dreamweaver CC. Logo. 4 Creating a Template. Page Heading. Page content in this area. About Us Gallery Ordering Contact Us Links
Using Dreamweaver CC 4 Creating a Template Now that the main page of our website is complete, we need to create the rest of the pages. Each of them will have a layout that follows the plan shown below.
More informationCSS worksheet. JMC 105 Drake University
CSS worksheet JMC 105 Drake University 1. Download the css-site.zip file from the class blog and expand the files. You ll notice that you have an images folder with three images inside and an index.html
More information8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) More on Relative Linking. Learning Objectives (2 of 2)
Web Development & Design Foundations with HTML5 Ninth Edition Chapter 7 More on Links, Layout, and Mobile Slides in this presentation contain hyperlinks. JAWS users should be able to get a list of links
More informationDesigning the Home Page and Creating Additional Pages
Designing the Home Page and Creating Additional Pages Creating a Webpage Template In Notepad++, create a basic HTML webpage with html documentation, head, title, and body starting and ending tags. From
More informationDownloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -
Week One Tools The Basics: Windows - Notepad Mac - Text Edit Downloads: Google Chrome Browser (Free) - www.google.com/chrome/ Adobe Brackets (Free) - www.brackets.io Our work over the next 6 weeks will
More informationCSS: Responsive Design, CSS3 and Fallbacks
CSS: Responsive Design, CSS3 and Fallbacks CISC 282 October 4, 2017 What is a Mobile Browser? Browser designed for a not-desktop display Phones/PDAs, tablets, anything handheld Challenges and constraints
More informationCSS. https://developer.mozilla.org/en-us/docs/web/css
CSS https://developer.mozilla.org/en-us/docs/web/css http://www.w3schools.com/css/default.asp Cascading Style Sheets Specifying visual style and layout for an HTML document HTML elements inherit CSS properties
More informationWeb Structure and Style. MB2030 Section 2 Class 4
Web Structure and Style MB2030 Section 2 Class 4 Web Site Hierarchies The Structure of the Web How the Internet Works Computers connected to the Web are called clients and servers. A simplified diagram
More informationLBS Polytechnic. Hey! Make With The Style Sheet Already, Bub!
When you're all done, the format will look like this: Hey! Make With The Style Sheet Already, Bub! This
More informationClient-Side Web Technologies. CSS Part I
Client-Side Web Technologies CSS Part I Topics Style declarations Style sources Selectors Selector specificity The cascade and inheritance Values and units CSS Cascading Style Sheets CSS specifies the
More informationStudy Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo
Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo Note: We skipped Study Guide 1. If you d like to review it, I place a copy here: https:// people.rit.edu/~nbbigm/studyguides/sg-1.docx
More informationUnit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 4 The Box Model
Unit 20 - Client Side Customisation of Web Pages Week 2 Lesson 4 The Box Model So far Looked at what CSS is Looked at why we will use it Used CSS In-line Embedded (internal style-sheet) External
More informationNext... Next... Handling the past What s next - standards and browsers What s next - applications and technology
Next... Handling the past What s next - standards and browsers What s next - applications and technology Next... Handling the past What s next - standards and browsers What s next - applications and technology
More informationUnveiling the Basics of CSS and how it relates to the DataFlex Web Framework
Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework Presented by Roel Fermont 1 Today more than ever, Cascading Style Sheets (CSS) have a dominant place in online business. CSS
More informationIndex. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148
Index Numbers & Symbols (angle brackets), in HTML, 47 : (colon), in CSS, 96 {} (curly brackets), in CSS, 75, 96. (dot), in CSS, 89, 102 # (hash mark), in CSS, 87 88, 99 % (percent) font size, in CSS,
More informationLab Introduction to Cascading Style Sheets
Lab Introduction to Cascading Style Sheets For this laboratory you will need a basic text editor and a browser. In the labs, winedt or Notepad++ is recommended along with Firefox/Chrome For this activity,
More informationBIM222 Internet Programming
BIM222 Internet Programming Week 7 Cascading Style Sheets (CSS) Adding Style to your Pages Part II March 20, 2018 Review: What is CSS? CSS stands for Cascading Style Sheets CSS describes how HTML elements
More informationUsing Dreamweaver CS6
Using Dreamweaver CS6 7 Dynamic HTML Dynamic HTML (DHTML) is a term that refers to website that use a combination of HTML, scripting such as JavaScript, CSS and the Document Object Model (DOM). HTML and
More informationGraduating to Grid. An Event Apart Orlando
Graduating to Grid An Event Apart Orlando 2018 And there was great rejoicing. https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/6514853-update-css-grid https://caniuse.com/#search=grid
More informationIntroduction to CSS. Fijihosting.com Introduction to CSS page 1. What are style sheets? Lovely! How do I use them?
Introduction to CSS Style sheets (or to give them their full title, cascading style sheets or CSS) are becoming more and more common on the Web. They were first introduced in a limited form to Internet
More informationCSS - Cascading Style Sheets
CSS - Cascading Style Sheets As a W3C standard, CSS provides a powerful mechanism for defining the presentation of elements in web pages. With CSS style rules, you can instruct the web browser to render
More informationITNP43: HTML Lecture 4
ITNP43: HTML Lecture 4 Niederst, Part III (3rd edn) 1 Style versus Content HTML purists insist that style should be separate from content and structure HTML was only designed to specify the structure and
More informationCS193X: Web Programming Fundamentals
CS193X: Web Programming Fundamentals Spring 2017 Victoria Kirst (vrk@stanford.edu) Today's schedule Schedule: - HTML: Background and history - Complex selectors - Box model - Debugging with Chrome Inspector
More informationViewports. Peter-Paul Koch CSS Day, 4 June 2014
Viewports Peter-Paul Koch http://quirksmode.org http://twitter.com/ppk CSS Day, 4 June 2014 or: Why responsive design works Peter-Paul Koch http://quirksmode.org http://twitter.com/ppk CSS Day, 4 June
More informationCascading Style Sheets. Overview and Basic use of CSS
Cascading Style Sheets Overview and Basic use of CSS What are Style Sheets? A World Wide Web Consortium (W3C) defined standard A way for web page designers to separate the formatting of a document from
More information8a. Cascading Style Sheet
INFS 2150 Introduction to Web Development 8a. Cascading Style Sheet 1 Objectives Concepts of cascading style sheets (CSS). 3 ways of using CSS: inline styles, embedded styles, and external style sheet.
More informationIBM Forms V8.0 Custom Themes IBM Corporation
IBM Forms V8.0 Custom Themes Agenda 2 Overview Class Names How to Use Best Practice Styling Form Items Test Custom CSS Sample Overview 3 To create custom theme you must be familiar with the basic concept
More informationHTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources
HTML + CSS ScottyLabs WDW OVERVIEW What are HTML and CSS? How can I use them? WHAT ARE HTML AND CSS? HTML - HyperText Markup Language Specifies webpage content hierarchy Describes rough layout of content
More information2. Write style rules for how you d like certain elements to look.
CSS for presentation Cascading Style Sheet Orientation CSS Cascading Style Sheet is a language that allows the user to change the appearance or presentation of elements on the page: the size, style, and
More informationUsing Dreamweaver CS6
6 So far we have used CSS to arrange the elements on our web page. We have also used CSS for some limited formatting. In this section we will take full advantage of using CSS to format our web site. Just
More informationID1354 Internet Applications
ID1354 Internet Applications CSS Leif Lindbäck, Nima Dokoohaki leifl@kth.se, nimad@kth.se SCS/ICT/KTH What is CSS? - Cascading Style Sheets, CSS provide the means to control and change presentation of
More informationUnit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 4 The Box Model
Unit 20 - Client Side Customisation of Web Pages Week 2 Lesson 4 The Box Model Last Time Looked at what CSS is Looked at why we will use it Used CSS In-line Embedded (internal style-sheet) External
More informationCSS Futures. Web Development
CSS Futures Web Development CSS Futures CSS3 CSS Preprocessors: SASS & LESS CSS Frameworks CSS3 CSS3 is the latest standard for CSS Combined with HTML5, CSS3 makes it possible to create highly interactive
More informationCascading Style Sheet Quick Reference
Computer Technology 8/9 Cascading Style Sheet Quick Reference Properties Properties are listed in alphabetical order. Each property has examples of possible values. Properties are not listed if they are
More informationTutorial 3: Working with Cascading Style Sheets
Tutorial 3: Working with Cascading Style Sheets College of Computing & Information Technology King Abdulaziz University CPCS-665 Internet Technology Objectives Review the history and concepts of CSS Explore
More informationCS7026 CSS3. CSS3 Graphics Effects
CS7026 CSS3 CSS3 Graphics Effects What You ll Learn We ll create the appearance of speech bubbles without using any images, just these pieces of pure CSS: The word-wrap property to contain overflowing
More informationGIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST
GIMP WEB 2.0 MENUS Web 2.0 Menus: Horizontal Navigation Bar WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR Hover effect: CREATING AN HTML LIST Most horizontal or vertical navigation bars begin with a simple
More information8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2)
Web Development & Design Foundations with HTML5 Ninth Edition Chapter 3 Configuring Color and Text with CSS Slides in this presentation contain hyperlinks. JAWS users should be able to get a list of links
More informationParashar Technologies HTML Lecture Notes-4
CSS Links Links can be styled in different ways. HTML Lecture Notes-4 Styling Links Links can be styled with any CSS property (e.g. color, font-family, background, etc.). a { color: #FF0000; In addition,
More informationREADSPEAKER ENTERPRISE HIGHLIGHTING 2.5
READSPEAKER ENTERPRISE HIGHLIGHTING 2.5 Advanced Skinning Guide Introduction The graphical user interface of ReadSpeaker Enterprise Highlighting is built with standard web technologies, Hypertext Markup
More informationUsing Advanced Cascading Style Sheets
HTML 7 Using Advanced Cascading Style Sheets Objectives You will have mastered the material in this chapter when you can: Add an embedded style sheet to a Web page Change the body and link styles using
More informationTutorial 5 Working with Tables and Columns. HTML and CSS 6 TH EDITION
Tutorial 5 Working with Tables and Columns HTML and CSS 6 TH EDITION Objectives Explore the structure of a Web table Create headings and cells in a table Create cells that span multiple rows and columns
More information