Applying Basic Styles. The Browser has “default styling” for all tags. AppEngineLearn Sites Topics Google App Engine: About Welcome to the site dedicated.

Slides:



Advertisements
Similar presentations
Cascading Style Sheets
Advertisements

CSS CSS Precise Aesthetic Control. Cascading Style Sheets Though they can be put in HTML header, usually a separate page that the HTML links to Contains.
CSS Cascading Style Sheets Charles Severance
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Text Properties, Line Box, CSS. Text Properties Properties related to the display of text. Text-align : left, right, center I like FSU!
Beginning Web Site Creation: Dreamweaver CS4. XHTMLCSS  Describes the structure  Content  Collection of styles  Formatting body { background-color:
1 CSS Styling with Fonts and Colors. 2 CSS Cascading Style Sheets and fonts CSS provides Style or Presentation options for our html pages CSS properties.
SM5312 week 6: basic CSS syntax1 An Introduction to Cascading Style Sheets Basic CSS Syntax Nick Foxall.
Workshop: CSS-Part I Cascading Style Sheets add style to your HTML web pages.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
First CSS Lecture Applications to HTML
Cascading Style Sheet (CSS) Instructor: Dr. Fang (Daisy) Tang
WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.
Lecture CSS: Cascading Style Sheets. What are Styles? Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation semantics.
© 2007 D. J. Foreman CSS-1 Cascading Style Sheets Styles.
3.1 Cascading Style Sheets. Motto Fashions fade, style is eternal. —Yves Saint Laurent.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Formatting Text (Plus More Selectors) Learning Web Design: Chapter 12.
Selectors thru Borders. CSS – Cascading Style Sheets – is a way to style HTML HTML is the content base of a web page CSS provides the presentation qualities.
Kick It Up a Notch: Enhance your web page with Cascading Style Sheets Kathy Fletcher Manager, Training & Publications Support Services Office of Information.
HIGHER COMPUTING CSS. WHAT IS CSS? CSS: Cascaded Style Sheets used to separate a web site’s content(information) from its style(how it looks).
Cascading Style Sheets (CSS) IT210: Web-based IT.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
Review: Three parts to a webpage: - Content - Structure  XHTML - Presentation  CSS In this chapter we will focus on introducing and examining the mechanics.
Cascading Style Sheet (CSS)
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Cascading Style Sheets CSS. CSS - Structure Declaration block Property: identifies what to change Value: how to change it Selector – example h1{ font-size:
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
MCS 270 Cascading Style Sheets (CSS) Gustavus Adolphus College.
CSS: Cascading Style Sheets. 2 What are Style Sheets A style sheet is a mechanism that allows to specify how HTML (/XHTML/XML) pages should look The style.
CSS – Cascading Style Sheets Fred Durao
3-Oct-15 CSS First CSS Lecture Applications to HTML.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit E Formatting with Cascading Style Sheets.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Rev. September 14, 2010—All HTML code brought to XHTML standards. Reference for CIS127 and.
CSS My favourite ICT lesson By Federico Boschi Cascading Style Sheets.
Tutorial #4 Formatting Text and Links. Tutorial #3 Review - CSS CSS format Selector { property1: value1; /* Comments */ } Embedded, In-Line, and External.
Cascading Style Sheets Chapter Four. What are they? A set of style rules that tell the web browser how to present a web page or document. Cascading Style.
Cascading Style Sheets Dave Edsall IAGenWeb County Coordinator’s Conference June 30, 2007.
Class three: CSS review, backgrounds, font formatting, 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.
CSS Cascading Style Sheets Jim Eng
Stylin’ with CSS Monday October 8 th and Tuesday October 9 th.
HTML - Quiz #2 Attendance CODE:
Files you will need ... Black Goose Bistro Summer Menu
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.
Cascading Style Sheets Robin Burke ECT 270. Outline Midterm The Layout Debate CSS properties Fonts Alignment Color CSS selection selectors pseudo-classes.
Creating Your Own Webpage COSC Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.
ECA225 Applied Interactive Programming Cascading Style Sheets, pt 1 ECA 225 Applied Online Programming.
CSS - Part 2 Cascading Style Sheets Jim Eng Thanks to Gonzalo Silverio for some slides
CSS with XHTML Please use speaker notes for additional information!
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
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.
Cascading Style Sheets Eugenia Fernandez IUPUI. CSS Purpose CSS allow you to specify the style in which your XML elements are displayed. CSS were originally.
1 Web Development CSS (Cascading Style Sheet). 2 1.Setting rules for multiple elements To decrease the amount of typing for setting rules for multiple.
5 th ed: Chapter 4 4 th ed: Chapter 5 SY306 Web and Databases for Cyber Operations Slide Set #4: CSS.
CSS for Styling CS The good, the bad and the… ugly!  Tags such as b, i, u, and font are discouraged in strict XHTML  Why is this bad? CS380 2.
Developing Web Applications with HTML and CSS “Selectors and Properties”
Web Design (14) CSS Formatting Text. Formatting Text In Brackets, go to your ‘externalcss’ website and find the ‘formattingtext’ page. Use the ‘main’
CSS: Cascading Style Sheets Part II. Style Syntax.
CSS Cascading Style Sheets *referenced from
Font-Family, Color and Background. Basics  CSS rule: Selector (multiple separated by, ) Declaration (multiple separated by ; ) Example: p { color: red;
ECA 228 Internet/Intranet Design I Cascading Style Sheets.
CSS Cascading Style Sheets Charles Severance
1 XHTML Chapter 3 CSCE 120 Sections 1 and 3 Spring 2007.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
Cascading Style Sheets
Cascading Style Sheets
Stylin’ with CSS.
Stylin’ with CSS.
Stylin’ with CSS.
Presentation transcript:

Applying Basic Styles

The Browser has “default styling” for all tags. AppEngineLearn Sites Topics Google App Engine: About Welcome to the site dedicated to learning the Google Application Engine. We hope you find useful.

We will apply CSS to the tags in the document. With no changes to the HTML.

Lots of CSS properties to play with We can set these properties on any HTML tag in a document. background-color, border-width, border-color, margin-top, padding, font-family, top, left, right, float, font-size, background-image, text-align, text-decoration, font-style, font-weight, vertical-align, visibility, overflow,....

Source:

Anatomy of a CSS Rule body font-family: arial, sans-serif; font-size: 100%; } property - which aspect of CSS are we changing selector - which part of the document does this rule apply to value - What are we setting the property to.

Multiple tags with same styling h1, h2, h3 { color: yellow; background-color: black; } Making a noticeable background color is a fun way to debug / identify blocks.

Three ways to add style rules Inline Style - Add style information to a tag Embedded Style - Add style information to the document at the beginning External Style Sheet - Put all of your style in an external file Preferred - because two people can work independently

<img src="appengine.jpg" width="142" height="109“ alt="Google App Engine Logo“ style="float:right"/> Google App Engine: About Welcome to the site dedicated to learning the Google Application Engine. We hope you find useful. Inline Styles

Learning the Google App Engine body { font-family: arial, sans-serif; } AppEngineLearn Sites Topics Embedded Style

Learning the Google App Engine AppEngineLearn Sites Topics External Style Sheets glike.css: body { font-family: arial, sans-serif; }

csev$ ls –l total 32 -rw-r--r-- 1 csev staff 44 Jan 28 13:14 glike.css-rw-r--r-- 1 csev staff 680 Feb 17 08:25 index.htm-rw-r--r-- 1 csev staff 886 Feb 17 08:00 sites.htm- rw-r--r-- 1 csev staff 681 Feb 17 08:01 topics.htm csev$ We put the CSS file in the same directory so the link works. Learning the Google App Engine

Fonts Default fonts are ugly and they have Serifs - which make them harder to read on a screen So the first thing I usually want to do is override the font in my document And I want to do this everywhere.

Fonts body { font-family: "Trebuchet MS", Helvetica, Arial, sans-serif; font-size: x-large; } Most FavouriteLeast Favourite Fallback fonts: serif, sans-serif, monospace, cursive and fantasy.

Font Factors font-size: xx-small x-small small medium large x-large xx-large font-weight: bold or normal font-style: normal or italic text-decoration: none, underline, overline, or line-through

Color Names W3C has listed 16 color names that will validate with an HTML validator. The color names are: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow. Source:

Colors by the number... #e2edff Three Numbers, Red, Green, and Blue - each from 00 - FF (Hexidecimal) #ffffff = white # = black #ff0000 = red #00ff00 = green #0000ff = blue Source: Web-safe colors #edf#edf= #eeddff

Default Styling for Links Downright Ugly! Post-Click: Source:

Styling Links a { font-weight: bold; } a:link { color: black; } a:visited { color: gray; } a:hover { text-decoration: none; color: white; background-color: navy; } a:active { color: aqua; background-color: navy; } link - before a visit visited - after it has been visited hover - when your mouse is over it but you have not clicked active - you have clicked it and you have not yet seen the new page Browser default styling for links is downright ugly!

CSS Tags and Attributes As CSS was introduced they introduced two new tags that are pretty much there to serve as handles for styling - A block tag (breaks justification) - An inline tag that does not break justification There are two attributes with special meaning to CSS id= - Marks a unique block within the document for styling (use only once) class= - Marks a non-unique tag within the document for styling (multi-use)

div as Container This is a paragraph inside a div. So is this. Sites Topics “div” stands for “division” as it allows us to divide our page into parts or sections and then do something different with each “section”. The id attribute on the tag allows us to uniquely mark a div in a document. The id tag is also useful for screen readers.

Styling a block with “id” #footer { font-style: italic; font-family: Times, serif; } Please send any comments to #footer p { font-style: italic; font-family: Times, serif; } or Everything within blockParagraphs within block id= identifies a *particular* block - only one in a document

Nested divs A paragraph inside the first nested div. A paragraph inside the second nested div. Adding divs give us a “handle” to apply styling (CSS) to a block of text.

Paragraphs and Divs This is a paragraph. This looks like a paragraph, but it's actually a div. This is another paragraph. This is another div. Think

Styling with class=.fun { color: #339999; font-family: Georgia, Times, serif; letter-spacing: 0.05em; } A man walks into a bar; you would've thought he'd see it coming! Have a nice day. More fun stuff class can be used many times in a document.

Span (Invisible tag) Bubble Under is a group of diving enthusiasts based in the south-west UK who meet up for diving trips in the summer months when the weather is good and the bacon rolls are flowing. We arrange weekends away as small groups to cut the costs of accommodation and travel and to ensure that everyone gets a trustworthy dive buddy. Sometimes you want to style something smaller than a whole block - then use span. Do not use span if you are applying something to a whole block - just put your styling on the enclosing block tag.

SI502 Books Topics Networked Computing: About This course is a survey course covering a broad range of technology topics at a high level. The course is aimed at students with no prior technical skills other than the general use of a computer. Really! When building HTML, we use id and class to add little “handles” in the HTML to make it so we can “style” areas of the document. Pick div id’s to indicate meaning.

Source: