CSS Tutorial. Introduction to CSS. What You Should Already Know. What is CSS? CSS Demo

Size: px
Start display at page:

Download "CSS Tutorial. Introduction to CSS. What You Should Already Know. What is CSS? CSS Demo"

Transcription

1 CSS Tutorial Introduction to CSS What You Should Already Know Before you continue you should have some basic understanding of the following: HTML / XHTML If you want to study this subject first, find the tutorials on our Home page. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles are normally stored in Style Sheets Styles were added to HTML 4.0 to solve a problem External Style Sheets can save you a lot of work External Style Sheets are stored in CSS files Multiple style definitions will cascade into one CSS Demo With CSS, your HTML documents can be displayed using different output styles: See how it works Styles Solve a Common Problem HTML tags were originally designed to define the content of a document. They were supposed to say "This is a header", "This is a paragraph", "This is a table", by using tags like <h1>, <p>, <table>, and so on. The layout of the document was supposed to be taken care of by the browser, without using any formatting tags. As the two major browsers - Netscape and Internet Explorer - continued to add new HTML tags and attributes (like the <font> tag and the color attribute) to the original HTML specification, it became more and more difficult to create Web sites where the content of HTML documents was clearly separated from the document's presentation layout. To solve this problem, the World Wide Web Consortium (W3C) - the non profit, standard setting consortium, responsible for standardizing HTML - created STYLES in addition to HTML 4.0. All major browsers support Cascading Style Sheets. Style Sheets Can Save a Lot of Work Styles sheets define HOW HTML elements are to be displayed, just like the font tag and the color attribute in HTML 3.2. Styles are normally saved in external.css files. External style sheets enable you to change the appearance and layout of all the pages in your Web, just by editing one single CSS document! CSS is a breakthrough in Web design because it allows developers to control the style and layout of multiple Web pages all at once. As a Web developer you can define a style for each HTML element and apply it to as

2 many Web pages as you want. To make a global change, simply change the style, and all elements in the Web are updated automatically. Multiple Styles Will Cascade Into One Style sheets allow style information to be specified in many ways. Styles can be specified inside a single HTML element, inside the element of an HTML page, or in an external CSS file. Even multiple external style sheets can be referenced inside a single HTML document. Cascading Order What style will be used when there is more than one style specified for an HTML element? Generally speaking we can say that all the styles will "cascade" into a new "virtual" style sheet by the following rules, where number four has the highest priority: 1. Browser default 2. External style sheet 3. Internal style sheet (inside the tag) 4. Inline style (inside an HTML element) So, an inline style (inside an HTML element) has the highest priority, which means that it will override a style declared inside the tag, in an external style sheet, or in a browser (a default value). CSS Syntax Syntax The CSS syntax is made up of three parts: a selector, a property and a value: selector property: value The selector is normally the HTML element/tag you wish to define, the property is the attribute you wish to change, and each property can take a value. The property and value are separated by a colon, and surrounded by curly braces: body color: black Note: If the value is multiple words, put quotes around the value: p font-family: "sans serif" Note: If you wish to specify more than one property, you must separate each property with a semicolon. The example below shows how to define a center aligned paragraph, with a red text color: p text-align:center;color:red To make the style definitions more readable, you can describe one property on each line, like this: p text-align: center; color: black; font-family: arial

3 Grouping You can group selectors. Separate each selector with a comma. In the example below we have grouped all the header elements. All header elements will be displayed in green text color: h1,h2,h3,h4,h5,h6 color: green The class Selector With the class selector you can define different styles for the same type of HTML element. Say that you would like to have two types of paragraphs in your document: one right-aligned paragraph, and one center-aligned paragraph. Here is how you can do it with styles: p.right text-align: right p.center text-align: center You have to use the class attribute in your HTML document: <p class="right"> This paragraph will be right-aligned. </p> <p class="center"> This paragraph will be center-aligned. </p> Note: To apply more than one class per given element, the syntax is: <p class="center bold"> This is a paragraph. </p> The paragraph above will be styled by the class "center" AND the class "bold". You can also omit the tag name in the selector to define a style that will be used by all HTML elements that have a certain class. In the example below, all HTML elements with class="center" will be center-aligned:.center text-align: center In the code below both the h1 element and the p element have class="center". This means that both elements will follow the rules in the ".center" selector: <h1 class="center"> This heading will be center-aligned </h1> <p class="center"> This paragraph will also be center-aligned. </p> Do NOT start a class name with a number! It will not work in Mozilla/Firefox. Add Styles to Elements with Particular Attributes

4 You can also apply styles to HTML elements with particular attributes. The style rule below will match all input elements that have a type attribute with a value of "text": input[type="text"] background-color: blue The id Selector You can also define styles for HTML elements with the id selector. The id selector is defined as a #. The style rule below will match the element that has an id attribute with a value of "green": #green color: green The style rule below will match the p element that has an id with a value of "para1": p#para1 text-align: center; color: red Do NOT start an ID name with a number! It will not work in Mozilla/Firefox. CSS Comments Comments are used to explain your code, and may help you when you edit the source code at a later date. A comment will be ignored by browsers. A CSS comment begins with "/*", and ends with "*/", like this: /* This is a comment */ p text-align: center; /* This is another comment */ color: black; font-family: arial CSS How To... Examples Look at Example 1 <title>html code</title> <p>the HTML file below links to an external style sheet with the <link> tag:</p> <table width="100%" border="1" cellspacing="0"><tr><td> <xmp> <link rel="stylesheet" type="text/css" href="ex2.css" /> Look at Example 2 <link rel="stylesheet" type="text/css" href="ex2.css" /> <h1>this is a header 1</h1> <hr /> <p>you can see that the style sheet formats the text</p>

5 <h1>this is a header 1</h1> <hr /> <p>you can see that the style sheet formats the text</p> <p><a href=" target="_blank">this is a link</a></p> <p><a href=" target="_blank">this is a link</a></p> </xmp> </td></tr></table> How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are three ways of inserting a style sheet: External Style Sheet An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one file. Each page must link to the style sheet using the <link> tag. The <link> tag goes inside the head section: <link rel="stylesheet" type="text/css" href="mystyle.css" /> The browser will read the style definitions from the file mystyle.css, and format the document according to it. An external style sheet can be written in any text editor. The file should not contain any html tags. Your style sheet should be saved with a.css extension. An example of a style sheet file is shown below: hr color: sienna p margin-left: 20px body background-image: url("images/back40.gif")

6 Do NOT leave spaces between the property value and the units! If you use "margin-left: 20 px" instead of "margin-left: 20px" it will only work properly in IE6 but it will not work in Mozilla/Firefox or Netscape. Internal Style Sheet An internal style sheet should be used when a single document has a unique style. You define internal styles in the head section by using the <style> tag, like this: hr color: sienna p margin-left: 20px body background-image: url("images/back40.gif") The browser will now read the style definitions, and format the document according to it. Note: A browser normally ignores unknown tags. This means that an old browser that does not support styles, will ignore the <style> tag, but the content of the <style> tag will be displayed on the page. It is possible to prevent an old browser from displaying the content by hiding it in the HTML comment element: <!-- hr color: sienna p margin-left: 20px body background-image: url("images/back40.gif") --> Inline Styles An inline style loses many of the advantages of style sheets by mixing content with presentation. Use this method sparingly, such as when a style is to be applied to a single occurrence of an element. To use inline styles you use the style attribute in the relevant tag. The style attribute can contain any CSS property. The example shows how to change the color and the left margin of a paragraph: <p style="color: sienna; margin-left: 20px"> This is a paragraph </p> Multiple Style Sheets If some properties have been set for the same selector in different style sheets, the values will be inherited from the more specific style sheet. For example, an external style sheet has these properties for the h3 selector: h3 color: red; text-align: left; font-size: 8pt

7 And an internal style sheet has these properties for the h3 selector: h3 text-align: right; font-size: 20pt If the page with the internal style sheet also links to the external style sheet the properties for h3 will be: color: red; text-align: right; font-size: 20pt The color is inherited from the external style sheet and the text-alignment and the font-size is replaced by the internal style sheet. CSS Background The CSS background properties define the background effects of an element. Examples Set the background color This example demonstrates how to set the background color for an element. body background-color: yellow h1 background-color: #00ff00 h2 background-color: transparent p background-color: rgb(250,0,255) <h1>this is header 1</h1> <h2>this is header 2</h2> <p>this is a paragraph</p> Set an image as the background This example demonstrates how to set an image as the background. body background-image: url('bgdesert.jpg')

8 How to repeat a background image This example demonstrates how to repeat a background image. How to repeat a background image only vertically This example demonstrates how to repeat a background image only vertically. body background-image: url('bgdesert.jpg'); background-repeat: repeat-y How to repeat a background image only horizontally This example demonstrates how to repeat a background image only horizontally. body background-image: url('bgdesert.jpg'); background-repeat: repeat-x How to display a background image only one time This example demonstrates how to display a background image only one time body background-image: url('bgdesert.jpg'); background-repeat: no-repeat How to place the background image This example demonstrates how to place the image on the page.

9 body background-image:url('smiley.gif'); background-repeat:no-repeat; background-attachment:fixed; background-position:center; <p><b>note:</b> For this to work in Mozilla, the background-attachment property must be set to "fixed".</p> How to position a background image using % This example demonstrates how to position an image on the page using percent. body background-image: url('smiley.gif'); background-repeat: no-repeat; background-attachment:fixed; background-position: 30% 20%; <p><b>note:</b> For this to work in Mozilla, the background-attachment property must be set to "fixed".</p> How to position a background image using pixels This example demonstrates how to position an image on the page using pixels. body background-image: url('smiley.gif'); background-repeat: no-repeat; background-attachment:fixed; background-position: 50px 100px; <p><b>note:</b> For this to work in Mozilla, the background-attachment property must be set to "fixed".</p>

10 How to set a fixed background image This example demonstrates how to set a fixed background image. The image will not scroll with the rest of the page. body background-image: url('smiley.gif'); background-repeat: no-repeat; background-attachment: fixed <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> <p>the image will not scroll with the rest of the page</p> All the background properties in one declaration This example demonstrates how to use the shorthand property for setting all of the background properties in one declaration. body background: #00ff00 url ('smiley.gif') no-repeat fixed center; <p>this is some text</p> <p>this is some text</p> <p>this is some text</p> <p>this is some text</p> <p>this is some text</p> <p>this is some text</p> <p>this is some text</p>

11 CSS Background Properties The CSS background properties allow you to control the background color of an element, set an image as the background, repeat a background image vertically or horizontally, and position an image on a page. Browser support: IE: Internet Explorer, F: Firefox, N: Netscape. W3C: The number in the "W3C" column indicates in which CSS recommendation the property is defined (CSS1 or CSS2). Property Description Values IE F N W3C background A shorthand property for setting background-color all background properties in one background-image declaration background-repeat background-attachment background-position background-attachment background-color background-image background-position background-repeat Sets whether a background image is fixed or scrolls with the rest of the page Sets the background color of an element scroll fixed color-rgb color-hex color-name transparent Sets an image as the background url(url) none Sets the starting position of a background image Sets if/how a background image will be repeated top left top center top right center left center center center right bottom left bottom center bottom right x% y% xpos ypos repeat repeat-x repeat-y no-repeat CSS Text The CSS text properties define the appearance of text. Examples Set the color of the text This example demonstrates how to set the color of the text.

12 h1 color: #00ff00 h2 color: #dda0dd p color: rgb(0,0,255) <h1>this is header 1</h1> <h2>this is header 2</h2> <p>this is a paragraph</p> Set the background-color of the text This example demonstrates how to set the background-color of a part of the text. span.highlight background-color:yellow <p> <span class="highlight">this is a text.</span> This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. <span class="highlight">this is a text.</span> </p> Specify the space between characters This example demonstrates how to increase or decrease the space between characters. h1 letter-spacing: -3px h4 letter-spacing: 0.5cm <h1>this is header 1</h1> <h4>this is header 4</h4>

13 Specify the space between lines This example demonstrates how to specify the space between the lines in a paragraph. p.small line-height: 90% p.big line-height: 200% <p> This is a paragraph with a standard line-height. The default line height in most browsers is about 110% to 120%. This is a paragraph with a standard line-height. This is a paragraph with a standard line-height. </p> <p class="small"> This is a paragraph with a smaller line-height. This is a paragraph with a smaller line-height. This is a paragraph with a smaller line-height. This is a paragraph with a smaller line-height. </p> <p class="big"> This is a paragraph with a bigger line-height. This is a paragraph with a bigger line-height. This is a paragraph with a bigger line-height. This is a paragraph with a bigger line-height. </p> Align the text This example demonstrates how to align the text. h1 text-align: center h2 text-align: left h3 text-align: right <h1>this is header 1</h1> <h2>this is header 2</h2> <h3>this is header 3</h3> Decorate the text This example demonstrates how to add decoration to text.

14 h1 text-decoration: overline h2 text-decoration: line-through h3 text-decoration: underline a text-decoration: none <h1>this is header 1</h1> <h2>this is header 2</h2> <h3>this is header 3</h3> <p><a href=" is a link</a></p> Indent text This example demonstrates how to indent the first line of a paragraph. p text-indent: 1cm <p> This is some text in a paragraph This is some text in a paragraph This is some text in a paragraph This is some text in a paragraph This is some text in a paragraph This is some text in a paragraph </p> Control the letters in a text This example demonstrates how to control the letters in a text. p.uppercase text-transform: uppercase p.lowercase text-transform: lowercase p.capitalize text-transform: capitalize <p class="uppercase">this is some text in a paragraph</p> <p class="lowercase">this is some text in a paragraph</p> <p class="capitalize">this is some text in a paragraph</p>

15 Set the text direction of an element This example demonstrates how to change the text direction of an element. div.one direction: rtl div.two direction: ltr <div class="one">some text. Right-to-left direction.</div> <div class="two">some text. Left-to-right direction.</div> Increase the white space between words This example demonstrates how to increase the white space between words in a paragraph. p word-spacing: 30px <p> This is some text. This is some text. </p> Disable text wrapping inside an element This example demonstrates how to disable text wrapping inside an element. p white-space: nowrap <p> This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. </p>

16 CSS Text Properties The CSS text properties allow you to control the appearance of text. It is possible to change the color of a text, increase or decrease the space between characters in a text, align a text, decorate a text, indent the first line in a text, and more. Browser support: IE: Internet Explorer, F: Firefox, N: Netscape. W3C: The number in the "W3C" column indicates in which CSS recommendation the property is defined (CSS1 or CSS2). Property Description Values IE F N W3C color Sets the color of a text color direction Sets the text direction ltr rtl line-height Sets the distance between lines normal number % letter-spacing Increase or decrease the space between characters normal text-align Aligns the text in an element left right center justify text-decoration Adds decoration to text none underline overline line-through blink text-indent text-shadow text-transform unicode-bidi white-space word-spacing Indents the first line of text in an element Controls the letters in an element Sets how white space inside an element is handled Increase or decrease the space between words % none color none capitalize uppercase lowercase normal embed bidi-override normal pre nowrap normal CSS Font The CSS font properties define the font in text. Examples

17 Set the font of a text This example demonstrates how to set a font of a text. h3 font-family: times p font-family: courier p.sansserif font-family: sans-serif <h3>this is header 3</h3> <p>this is a paragraph</p> <p class="sansserif">this is a paragraph</p> Set a paragraph font using the "caption" value This example demonstrates how to set a paragraph font using the "caption" value. <p>this is a normal paragraph</p> <p style="font: caption">this is a paragraph with a "caption" font</p> Set the size of the font This example demonstrates how to set the size of a font. h1 font-size: 150% h2 font-size: 130% p font-size: 100% <h1>this is header 1</h1> <h2>this is header 2</h2> <p>this is a paragraph</p>

18 Set the size of the font using font-size-adjust This example demonstrates how to set the size of a font using font-size-adjust. h1 font-size-adjust: 0.50 h2 font-size-adjust: 0.40 p font-size-adjust: 0.60 <h1>this is header 1</h1> <h2>this is header 2</h2> <p>this is a paragraph</p> Set the style of the font This example demonstrates how to set the style of a font. h1 font-style: italic h2 font-style: normal p font-style: oblique <h1>this is header 1</h1> <h2>this is header 2</h2> <p>this is a paragraph</p> Set the variant of the font This example demonstrates how to set the variant of a font. p.normal font-variant: normal p.small font-variant: small-caps <p class="normal">this is a paragraph</p> <p class="small">this is a paragraph</p>

19 Set the boldness of the font This example demonstrates how to set the boldness of a font. p.normal font-weight: normal p.thick font-weight: bold p.thicker font-weight: 900 <p class="normal">this is a paragraph</p> <p class="thick">this is a paragraph</p> <p class="thicker">this is a paragraph</p> All the font properties in one declaration This example demonstrates how to use the shorthand property for setting all of the font properties in one declaration. p font: italic small-caps px arial <p>this is a paragraph</p> CSS Font Properties The CSS font properties allow you to change the font family, boldness, size, and the style of a text. Note: In CSS1 fonts are identified by a font name. If a browser does not support the specified font, it will use a default font. Browser support: IE: Internet Explorer, F: Firefox, N: Netscape. W3C: The number in the "W3C" column indicates in which CSS recommendation the property is defined (CSS1 or CSS2). Property Description Values IE F N W3C font A shorthand property for setting font-style all of the properties for a font in one declaration font-variant font-weight font-size/line-height font-family caption icon menu

20 font-family A prioritized list of font family names and/or generic family names for an element message-box small-caption status-bar family-name generic-family font-size Sets the size of a font xx-small x-small small medium large x-large xx-large smaller larger % font-size-adjust font-stretch Specifies an aspect value for an none element that will preserve the x- number height of the first-choice font Condenses or expands the current font-family font-style Sets the style of the font normal italic oblique font-variant normal wider narrower ultra-condensed extra-condensed condensed semi-condensed semi-expanded expanded extra-expanded ultra-expanded Displays text in a small-caps font normal or a normal font small-caps font-weight Sets the weight of a font normal bold bolder lighter CSS Border The CSS border properties define the borders around an element. Examples

21 All the border properties in one declaration This example demonstrates a shorthand property for setting all of the properties for the four borders in one declaration, can have from one to three values. p border: medium double rgb(250,0,255) <p>some text</p> Set different borders on each side This example demonstrates how to set different borders on each side of the element. p.soliddouble border-style: solid double p.doublesolid border-style: double solid p.groovedouble border-style: groove double p.three border-style: solid double groove <p class="soliddouble">some text</p> <p class="doublesolid">some text</p> <p class="groovedouble">some text</p> <p class="three">some text</p> All the top border properties in one declaration This example demonstrates a shorthand property for setting all of the properties for the top border in one declaration. p border-top: medium solid #ff0000 <p>some text.</p>

22 All the bottom border properties in one declaration This example demonstrates a shorthand property for setting all of the properties for the bottom border in one declaration. p border-bottom: medium solid #ff0000 <p>some text.</p> All the left border properties in one declaration This example demonstrates a shorthand property for setting all of the properties for the left border in one declaration. p border-left: medium solid #ff0000 <p>some text.</p> All the right border properties in one declaration This example demonstrates a shorthand property for setting all of the properties for the right border in one declaration. p border-right: medium solid #ff0000 <p>some text.</p> Set the style of the four borders This example demonstrates how to set the style of the four borders.

23 p.dotted border-style: dotted p.dashed border-style: dashed p.solid border-style: solid p.double border-style: double p.groove border-style: groove p.ridge border-style: ridge p.inset border-style: inset p.outset border-style: outset <p class="dotted">a dotted border</p> <p class="dashed">a dashed border</p> <p class="solid">a solid border</p> <p class="double">a double border</p> <p class="groove">a groove border</p> <p class="ridge">a ridge border</p> <p class="inset">an inset border</p> <p class="outset">an outset border</p> Set the style of the top border This example demonstrates how to set the style of the top border. p.dotted border-top-style: dotted p.dashed border-top-style: dashed p.solid border-top-style: solid p.double border-top-style: double p.groove border-top-style: groove p.ridge border-top-style: ridge p.inset border-top-style: inset p.outset border-top-style: outset <p class="dotted">a dotted border</p> <p class="dashed">a dashed border</p> <p class="solid">a solid border</p> <p class="double">a double border</p> <p class="groove">a groove border</p> <p class="ridge">a ridge border</p> <p class="inset">an inset border</p> <p class="outset">an outset border</p>

24 Set the style of the bottom border This example demonstrates how to set the style of the bottom border. p.dotted border-bottom-style: dotted p.dashed border-bottom-style: dashed p.solid border-bottom-style: solid p.double border-bottom-style: double p.groove border-bottom-style: groove p.ridge border-bottom-style: ridge p.inset border-bottom-style: inset p.outset border-bottom-style: outset <p class="dotted">a dotted border</p> <p class="dashed">a dashed border</p> <p class="solid">a solid border</p> <p class="double">a double border</p> <p class="groove">a groove border</p> <p class="ridge">a ridge border</p> <p class="inset">an inset border</p> <p class="outset">an outset border</p> Set the style of the left border This example demonstrates how to set the style of the left border. p.dotted border-left-style: dotted p.dashed border-left-style: dashed p.solid border-left-style: solid p.double border-left-style: double p.groove border-left-style: groove p.ridge border-left-style: ridge p.inset border-left-style: inset p.outset border-left-style: outset <p class="dotted">a dotted border</p> <p class="dashed">a dashed border</p> <p class="solid">a solid border</p> <p class="double">a double border</p> <p class="groove">a groove border</p>

25 <p class="ridge">a ridge border</p> <p class="inset">an inset border</p> <p class="outset">an outset border</p> Set the style of the right border This example demonstrates how to set the style of the right border. p.dotted border-right-style: dotted p.dashed border-right-style: dashed p.solid border-right-style: solid p.double border-right-style: double p.groove border-right-style: groove p.ridge border-right-style: ridge p.inset border-right-style: inset p.outset border-right-style: outset <p class="dotted">a dotted border</p> <p class="dashed">a dashed border</p> <p class="solid">a solid border</p> <p class="double">a double border</p> <p class="groove">a groove border</p> <p class="ridge">a ridge border</p> <p class="inset">an inset border</p> <p class="outset">an outset border</p> All the width of the border properties in one declaration This example demonstrates a shorthand property for setting the width of the four borders in one declaration, can have from one to four values. p.one border-width: 5px p.two border-width: thick p.three border-width: 5px 10px

26 p.four border-width: 5px 10px 1px p.five border-width: 5px 10px 1px medium <p class="one">some text</p> <p class="two">some text</p> <p class="three">some text</p> <p class="four">some text</p> <p class="five">some text</p> <p><b>note:</b> The "border-width" property does not work if it is used alone. Use the "border-style" property to set the borders first.</p> Set the width of the top border This example demonstrates how to set the width of the top border. p.one border-top-width: 15px p.two border-top-width: thin <p class="one"><b>note:</b> The "border-topwidth" property does not work if it is used alone. Use the "border-style" property to set the borders first.</p> <p class="two">some text. Some more text.</p> Set the width of the bottom border This example demonstrates how to set the width of the bottom border. p.one border-bottom-width: 15px

27 p.two border-bottom-width: thin <p class="one"><b>note:</b> The "border-bottomwidth" property does not work if it is used alone. Use the "border-style" property to set the borders first.</p> <p class="two">some text. Some more text.</p> Set the width of the left border This example demonstrates how to set the width of the left border. p.one border-left-width: 15px p.two border-left-width: thin <p class="one"><b>note:</b> The "border-leftwidth" property does not work if it is used alone. Use the "border-style" property to set the borders first.</p> <p class="two">some text. Some more text.</p> Set the width of the right border This example demonstrates how to set the width of the right border. p.one border-right-width: 15px p.two border-right-width: thin

28 <p class="one"><b>note:</b> The "border-rightwidth" property does not work if it is used alone. Use the "border-style" property to set the borders first.</p> <p class="two">some text. Some more text.</p> Set the color of the four borders This example demonstrates how to set the color of the four borders. It can have from one to four colors. p.one border-color: #0000ff p.two border-color: #ff0000 #0000ff p.three border-color: #ff0000 #00ff00 #0000ff p.four border-color: #ff0000 #00ff00 #0000ff rgb(250,0,255) <p class="one">one-colored border!</p> <p class="two">two-colored border!</p> <p class="three">three-colored border!</p> <p class="four">four-colored border!</p> <p><b>note:</b> The "border-color" property does not work if it is used alone. Use the "border-style" property to set the borders first.</p> Set the color of the top border This example demonstrates how to set the color of the top border.

29 p border-top-color: #ff0000 <p>some text.</p> Set the color of the bottom border This example demonstrates how to set the color of the bottom border. p border-bottom-color: #ff0000 <p>some text.</p> Set the color of the left border This example demonstrates how to set the color of the left border. p border-left-color: #ff0000 <p>some text.</p> Set the color of the right border This example demonstrates how to set the color of the right border. p

30 border-right-color: #ff0000 <p>some text.</p> CSS Border Properties The CSS border properties allow you to specify the style and color of an element's border. In HTML we use tables to create borders around a text, but with the CSS border properties we can create borders with nice effects, and it can be applied to any element. Browser support: IE: Internet Explorer, F: Firefox, N: Netscape. W3C: The number in the "W3C" column indicates in which CSS recommendation the property is defined (CSS1 or CSS2). Property Description Values IE F N W3C border A shorthand property for setting border-width all of the properties for the four borders in one declaration border-style border-color border-bottom border-bottom-color border-bottom-style border-bottom-width border-color border-left A shorthand property for setting border-bottom-width all of the properties for the border-style bottom border in one declaration border-color Sets the color of the bottom border Sets the style of the bottom border Sets the width of the bottom border Sets the color of the four borders, can have from one to four colors A shorthand property for setting all of the properties for the left border in one declaration border-color border-style thin medium thick color border-left-width border-style border-color border-left-color Sets the color of the left border border-color border-left-style Sets the style of the left border border-style border-left-width border-right Sets the width of the left border thin medium thick A shorthand property for setting all of the properties for the right border in one declaration border-right-width border-style border-color border-right-color Sets the color of the right border border-color border-right-style Sets the style of the right border border-style border-right-width border-style Sets the width of the right border thin medium thick Sets the style of the four borders, can have from one to four styles none hidden dotted dashed

31 border-top A shorthand property for setting all of the properties for the top border in one declaration solid double groove ridge inset outset border-top-width border-style border-color border-top-color Sets the color of the top border border-color border-top-style Sets the style of the top border border-style border-top-width border-width Sets the width of the top border thin medium thick A shorthand property for setting the width of the four borders in one declaration, can have from one to four values thin medium thick CSS Outlines The CSS outline properties is used to draw a line around an element, outside the border edge. Examples Draw a line around an element (outline) (does not work in IE) This example demonstrates how to draw a line around an element, outside the border edge. p border: red solid thin; outline: green dotted thick <p>some text.</p> CSS Outline Properties An outline is a line that is drawn around elements, outside the border edge, to make the element "stand out". The CSS outline properties sets the outlines around elements. You can specify the style, color, and width of the outline. Note: Outlines do not take up space, and they do not have to be rectangular. Browser support: IE: Internet Explorer, F: Firefox, N: Netscape.

32 W3C: The number in the "W3C" column indicates in which CSS recommendation the property is defined (CSS1 or CSS2). Property Description Values IE F N W3C outline A shorthand property for setting outline-color all the outline properties in one declaration outline-style outline-width outline-color outline-style outline-width Sets the color of the outline around an element Sets the style of the outline around an element Sets the width of the outline around an element color invert none dotted dashed solid double groove ridge inset outset thin medium thick CSS Margin The CSS margin properties define the space around elements. Examples All the margin properties in one declaration This example demonstrates how to set a shorthand property for setting all of the margin properties in one declaration. p.margin margin: 2cm 4cm 3cm 4cm <p>this is a paragraph with no specified margins</p> <p class="margin">this is a paragraph with specified margins</p> <p>this is a paragraph with no specified margins</p> Set the top margin of a text using a cm value This example demonstrates how to set the top margin of a text using a cm value. p.topmargin margin-top: 5cm

33 <p>this is a paragraph with no margin specified</p> <p class="topmargin">this is a paragraph with a specified top margin</p> Set the top margin of a text using a percent value This example demonstrates how to set the top margin of a text using a percent value. p.topmargin margin-top: 25% <p>this is a paragraph with no margin specified</p> <p class="topmargin">this is a paragraph with a specified top margin</p> Set the bottom margin of a text using a cm value This example demonstrates how to set the bottom margin of a text using a cm value. p.bottommargin margin-bottom: 2cm <p>this is a paragraph with no margin specified</p> <p class="bottommargin">this is a paragraph with a specified bottom margin</p> <p>this is a paragraph with no margin specified</p> Set the bottom margin of a text using a percent value This example demonstrates how to set the bottom margin of a text using a percent value. p.bottommargin margin-bottom: 25% <p>this is a paragraph with no margin specified</p> <p class="bottommargin">this is a paragraph with a specified bottom margin</p>

34 <p>this is a paragraph with no margin specified</p> Set the left margin of a text using a cm value This example demonstrates how to set the left margin of a text using a cm value. p.leftmargin margin-left: 2cm <p>this is a paragraph with no margin specified</p> <p class="leftmargin">this is a paragraph with a specified left margin</p> Set the left margin of a text using a percent value This example demonstrates how to set the left margin of a text using a percent value. p.leftmargin margin-left: 25% <p>this is a paragraph with no margin specified</p> <p class="leftmargin">this is a paragraph with a specified left margin</p> Set the right margin of a text using a cm value This example demonstrates how to set the right margin of a text using a cm value. p.rightmargin margin-right: 5cm <p style="text-align:right">this is a right aligned paragraph with no margin specified</p> <p class="rightmargin" style="text-align:right">this is a right aligned paragraph with a specified right margin</p> Set the right margin of a text using a percent value This example demonstrates how to set the right margin of a text using a percent value.

35 p.rightmargin margin-right:25% <p style="text-align:right">this is a right aligned paragraph with no margin specified</p> <p class="rightmargin" style="text-align:right">this is a right aligned paragraph with a specified right margin</p> CSS Margin Properties The CSS margin properties define the space around elements. It is possible to use negative values to overlap content. The top, right, bottom, and left margin can be changed independently using separate properties. A shorthand margin property can also be used to change all of the margins at once. Note: Netscape and IE give the body tag a default margin of 8px. Opera does not! Instead, Opera applies a default padding of 8px, so if one wants to adjust the margin for an entire page and have it display correctly in Opera, the body padding must be set as well! Browser support: IE: Internet Explorer, F: Firefox, N: Netscape. W3C: The number in the "W3C" column indicates in which CSS recommendation the property is defined (CSS1 or CSS2). Property Description Values IE F N W3C margin A shorthand property for setting margin-top the margin properties in one declaration margin-right margin-bottom margin-left margin-bottom margin-left margin-right margin-top Sets the bottom margin of an element Sets the left margin of an element Sets the right margin of an element Sets the top margin of an element auto % auto % auto % auto % CSS Padding The CSS padding properties define the space between the element border and the element content. Examples

36 All the padding properties in one declaration This example demonstrates a shorthand property for setting all of the padding properties in one declaration, can have from one to four values. Set the top padding using a cm value This example demonstrates how to set the top padding of a table cell using a cm value. Set the top padding using a percent value This example demonstrates how to set the top padding of a table cell using a percent value. Set the bottom padding using a cm value This example demonstrates how to set the bottom padding of a table cell using a cm value. Set the bottom padding using a percent value This example demonstrates how to set the bottom padding of a table cell using a percent value. Set the left padding using a cm value This example demonstrates how to set the left padding of a table cell using a cm value. Set the left padding using a percent value This example demonstrates how to set the left padding of a table cell using a percent value. Set the right padding using a cm value This example demonstrates how to set the right padding of a table cell using a cm value. Set the right padding using a percent value This example demonstrates how to set the right padding of a table cell using a percent value. CSS Padding Properties The CSS padding properties define the space between the element border and the element content. Negative values are not allowed. The top, right, bottom, and left padding can be changed independently using separate properties. A shorthand padding property is also created to control multiple sides at once. Browser support: IE: Internet Explorer, F: Firefox, N: Netscape. W3C: The number in the "W3C" column indicates in which CSS recommendation the property is defined (CSS1 or CSS2). Property Description Values IE F N W3C padding A shorthand property for setting padding-top all of the padding properties in one declaration padding-right padding-bottom padding-left padding-bottom padding-left padding-right padding-top Sets the bottom padding of an element Sets the left padding of an element Sets the right padding of an element Sets the top padding of an element % % % % CSS List The CSS list properties allow you to place the list-item marker, change between different list-item markers, or set an image as the list-item marker.

37 Examples The different list-item markers in unordered lists This example demonstrates the different list-item markers in CSS. The different list-item markers in ordered lists This example demonstrates the different list-item markers in CSS. All the list style types This example demonstrates all the different list-item markers in CSS. Set an image as the list-item marker This example demonstrates how to set an image as the list-item marker. Place the list-item marker This example demonstrates where to place the list-item marker. All list properties in one declaration This example demonstrates a shorthand property for setting all of the properties for a list in one declaration. CSS List Properties The CSS list properties allow you to place the list-item marker, change between different list-item markers, or set an image as the list-item marker. Browser support: IE: Internet Explorer, F: Firefox, N: Netscape. W3C: The number in the "W3C" column indicates in which CSS recommendation the property is defined (CSS1 or CSS2). Property Description Values IE F N W3C list-style A shorthand property for setting list-style-type all of the properties for a list in one declaration list-style-position list-style-image list-style-image list-style-position list-style-type Sets an image as the list-item marker Sets where the list-item marker is placed in the list Sets the type of the list-item marker none url inside outside none disc circle square decimal decimal-leading-zero lower-roman upper-roman lower-alpha upper-alpha lower-greek lower-latin upper-latin hebrew armenian georgian cjk-ideographic hiragana katakana hiragana-iroha katakana-iroha

38 marker-offset auto CSS Table The CSS table properties allow you to set the layout of a table. Examples Set the layout of a table This example demonstrates how to set the layout of a table. Show empty cells in a table This example demonstrates whether or not to show empty cells in a table. Collapse a table border This example demonstrates whether the table borders are collapsed into a single border or detached as in standard HTML. Set the space between table borders This example demonstrates how to set the distance between cell borders. Set the position of the table caption This example demonstrates how to position the table caption. CSS Table Properties The CSS table properties allow you to set the layout of a table. Browser support: IE: Internet Explorer, M: Mac IE only, F: Firefox, N: Netscape. W3C: The number in the "W3C" column indicates in which CSS recommendation the property is defined (CSS1 or CSS2). Property Description Values IE F N W3C border-collapse Sets whether the table borders collapse are collapsed into a single border separate or detached as in standard HTML border-spacing Sets the distance that separates 5M cell borders (only for the "separated borders" model) caption-side empty-cells table-layout Sets the position of the table caption Sets whether or not to show empty cells in a table (only for the "separated borders" model) top bottom left right show hide Sets the algorithm used to auto display the table cells, rows, and fixed columns 5M M

Web Design for Print Designers WEB DESIGN FOR PRINT DESIGNERS: WEEK 6

Web Design for Print Designers WEB DESIGN FOR PRINT DESIGNERS: WEEK 6 Web Design for Print Designers CSS uses a variety of declarations for styling text. Many use the variations of the font declaration. Other styles are done using different declarations. The font declaration

More information

CSS. CSS - cascading style sheets CSS - permite separar num documento HTML o conteúdo do estilo. ADI css 1/28

CSS. CSS - cascading style sheets CSS - permite separar num documento HTML o conteúdo do estilo. ADI css 1/28 CSS CSS - cascading style sheets CSS - permite separar num documento HTML o conteúdo do estilo ADI css 1/28 Cascaded Style Sheets Por ordem de prioridade: Inline

More information

Introduction to Adobe Dreamweaver CC

Introduction to Adobe Dreamweaver CC Introduction to Adobe Dreamweaver CC What is Dreamweaver? Dreamweaver is the program that we will be programming our websites into all semester. We will be slicing our designs out of Fireworks and assembling

More information

{color:blue; font-size: 12px;}

{color:blue; font-size: 12px;} CSS stands for cascading style sheets. Styles define how to display a web page. Styles remove the formatting of a document from the content of the document. There are 3 ways that styles can be applied:

More information

Simply download Beepip from http://beepip.com and run the file when it arrives at your computer.

Simply download Beepip from http://beepip.com and run the file when it arrives at your computer. Beepip User Guide How To's: How do I install Beepip? Simply download Beepip from http://beepip.com and run the file when it arrives at your computer. How do I set up Beepip? Once you've opened up Beepip,

More information

Stylesheet or in-line CSS CSS attributes, used in stylesheets or in-line, can define:

Stylesheet or in-line CSS CSS attributes, used in stylesheets or in-line, can define: Stylesheet or in-line CSS CSS attributes, used in stylesheets or in-line, can define: body, div, p, h1 - h6, hr, table, thead, tr, th, td, blockquote, address, ol, ul, dl, dt, dd span, a, font class e.g..stylename

More information

Wykład 2_2 TINT. Kaskadowe arkusze stylu Tabele, zastosowanie znaczników div. Zofia Kruczkiewicz

Wykład 2_2 TINT. Kaskadowe arkusze stylu Tabele, zastosowanie znaczników div. Zofia Kruczkiewicz Wykład 2_2 TINT Kaskadowe arkusze stylu Tabele, zastosowanie znaczników div Zofia Kruczkiewicz 1. Zewnętrzne arkusze stylów dla tabel i tła 1.1. Kod html strony www z p. 1 stosujący zewnętrzne arkusze

More information

Web Design with CSS and CSS3. Dr. Jan Stelovsky

Web Design with CSS and CSS3. Dr. Jan Stelovsky Web Design with CSS and CSS3 Dr. Jan Stelovsky CSS Cascading Style Sheets Separate the formatting from the structure Best practice external CSS in a separate file link to a styles from numerous pages Style

More information

Web Design and Development ACS-1809. Chapter 9. Page Structure

Web Design and Development ACS-1809. Chapter 9. Page Structure Web Design and Development ACS-1809 Chapter 9 Page Structure 1 Chapter 9: Page Structure Organize Sections of Text Format Paragraphs and Page Elements 2 Identifying Natural Divisions It is normal for a

More information

Web Design and Databases WD: Class 7: HTML and CSS Part 3

Web Design and Databases WD: Class 7: HTML and CSS Part 3 Web Design and Databases WD: Class 7: HTML and CSS Part 3 Dr Helen Hastie Dept of Computer Science Heriot-Watt University Some contributions from Head First HTML with CSS and XHTML, O Reilly Recap! HTML

More information

Print all 18 Chapters - CSS Basics

Print all 18 Chapters - CSS Basics Or you can also use the @import method as shown below Print all 18 Chapters - CSS Basics CSS Basics.com Chapter: 1 - Introduction to CSS A CSS (cascading style sheet) file allows you to separate your web

More information

What is CSS? Official W3C standard for controlling presentation Style sheets rely on underlying markup structure

What is CSS? Official W3C standard for controlling presentation Style sheets rely on underlying markup structure CSS Peter Cho 161A Notes from Jennifer Niederst: Web Design in a Nutshell and Thomas A. Powell: HTML & XHTML, Fourth Edition Based on a tutorials by Prof. Daniel Sauter / Prof. Casey Reas What is CSS?

More information

CST 150 Web Design I CSS Review - In-Class Lab

CST 150 Web Design I CSS Review - In-Class Lab CST 150 Web Design I CSS Review - In-Class Lab The purpose of this lab assignment is to review utilizing Cascading Style Sheets (CSS) to enhance the layout and formatting of web pages. For Parts 1 and

More information

Introduction to Cascading Style Sheets

Introduction to Cascading Style Sheets Introduction to Cascading Style Sheets Welcome to the CSS workshop! Before you begin this workshop you should have some basic understanding of HTML and building web pages. What is CSS anyway and what will

More information

CSS - Cascading Style Sheets

CSS - Cascading Style Sheets CSS - Cascading Style Sheets From http://www.csstutorial.net/ http://www.w3schools.com/css/default.asp What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements External

More information

Creating a Resume Webpage with

Creating a Resume Webpage with Creating a Resume Webpage with 6 Cascading Style Sheet Code In this chapter, we will learn the following to World Class CAD standards: Using a Storyboard to Create a Resume Webpage Starting a HTML Resume

More information

Further web design: Cascading Style Sheets Practical workbook

Further web design: Cascading Style Sheets Practical workbook Further web design: Cascading Style Sheets Practical workbook Aims and Learning Objectives This document gives an introduction to the use of Cascading Style Sheets in HTML. When you have completed these

More information

Advanced Editor User s Guide

Advanced Editor User s Guide Advanced Editor User s Guide 1601 Trapelo Road Suite 329 Waltham, MA 02451 www.constantcontact.com Constant Contact, Inc. reserves the right to make any changes to the information contained in this publication

More information

JJY s Joomla 1.5 Template Design Tutorial:

JJY s Joomla 1.5 Template Design Tutorial: JJY s Joomla 1.5 Template Design Tutorial: Joomla 1.5 templates are relatively simple to construct, once you know a few details on how Joomla manages them. This tutorial assumes that you have a good understanding

More information

ITNP43: HTML Lecture 4

ITNP43: HTML Lecture 4 ITNP43: HTML Lecture 4 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 content of a document Style

More information

HTML5 and CSS3 Design with CSS Page 1

HTML5 and CSS3 Design with CSS Page 1 HTML5 and CSS3 Design with CSS Page 1 1 12 2 3 3 4 45 5 6 6 7 7 HTML5 and CSS3 DESIGN WITH CSS Styles in HTML Documents Styles provide a method of creating consistent formatting of elements throughout

More information

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University Web Design Basics Cindy Royal, Ph.D. Associate Professor Texas State University HTML and CSS HTML stands for Hypertext Markup Language. It is the main language of the Web. While there are other languages

More information

Web layout guidelines for daughter sites of Scotland s Environment

Web layout guidelines for daughter sites of Scotland s Environment Web layout guidelines for daughter sites of Scotland s Environment Current homepage layout of Scotland s Aquaculture and Scotland s Soils (September 2014) Design styles A daughter site of Scotland s Environment

More information

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates What is a DIV tag? First, let s recall that HTML is a markup language. Markup provides structure and order to a page. For example,

More information

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc. 949-654-3890 mraymond@luminys.com www.luminys.com

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc. 949-654-3890 mraymond@luminys.com www.luminys.com Essential HTML & CSS for WordPress Mark Raymond Luminys, Inc. 949-654-3890 mraymond@luminys.com www.luminys.com HTML: Hypertext Markup Language HTML is a specification that defines how pages are created

More information

Contents. Downloading the Data Files... 2. Centering Page Elements... 6

Contents. Downloading the Data Files... 2. Centering Page Elements... 6 Creating a Web Page Using HTML Part 1: Creating the Basic Structure of the Web Site INFORMATION TECHNOLOGY SERVICES California State University, Los Angeles Version 2.0 Winter 2010 Contents Introduction...

More information

Full report on all 24 clients

Full report on all 24 clients 1 of 6 3/15/2011 11:05 AM Campaign Monitor - Home Features Pricing Customers Resources Support Our Story Blog Sign Up Login Create an Account Tips & Resources Designing and building emails Designing an

More information

Creating Web Pages with Dreamweaver CS 6 and CSS

Creating Web Pages with Dreamweaver CS 6 and CSS Table of Contents Overview... 3 Getting Started... 3 Web Page Creation Tips... 3 Creating a Basic Web Page Exercise... 4 Create a New Page... 4 Using a Table for the Layout... 5 Adding Text... 6 Adding

More information

Cascading Style Sheets (CSS)

Cascading Style Sheets (CSS) 6 Cascading Style Sheets (CSS) Objectives To control the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of a Web site the same look and feel. To use the class

More information

How To Create A Web Page On A Windows 7.1.1 (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook (

How To Create A Web Page On A Windows 7.1.1 (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook ( CREATING WEB PAGE WITH NOTEPAD USING HTML AND CSS The following exercises illustrate the process of creating and publishing Web pages with Notepad, which is the plain text editor that ships as part of

More information

CHAPTER 10. When you complete this chapter, you will be able to:

CHAPTER 10. When you complete this chapter, you will be able to: Data Tables CHAPTER 10 When you complete this chapter, you will be able to: Use table elements Use table headers and footers Group columns Style table borders Apply padding, margins, and fl oats to tables

More information

Web Authoring CSS. www.fetac.ie. Module Descriptor

Web Authoring CSS. www.fetac.ie. Module Descriptor The Further Education and Training Awards Council (FETAC) was set up as a statutory body on 11 June 2001 by the Minister for Education and Science. Under the Qualifications (Education & Training) Act,

More information

CSS for Page Layout. Key Concepts

CSS for Page Layout. Key Concepts CSS for Page Layout Key Concepts CSS Page Layout Advantages Greater typography control Style is separate from structure Potentially smaller documents Easier site maintenance Increased page layout control

More information

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,: CSS Tutorial Part 2: Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,: animals A paragraph about animals goes here

More information

Using Style Sheets for Consistency

Using Style Sheets for Consistency Cascading Style Sheets enable you to easily maintain a consistent look across all the pages of a web site. In addition, they extend the power of HTML. For example, style sheets permit specifying point

More information

Page layout & typography. graphic design

Page layout & typography. graphic design Page layout & typography graphic design first impressions lecture goals To help you better communicate the purpose of your web pages by visually emphasizing the most important features and relationships

More information

Cascading Style Sheet (CSS) Tutorial Using Notepad. Step by step instructions with full color screen shots

Cascading Style Sheet (CSS) Tutorial Using Notepad. Step by step instructions with full color screen shots Updated version September 2015 All Creative Designs Cascading Style Sheet (CSS) Tutorial Using Notepad Step by step instructions with full color screen shots What is (CSS) Cascading Style Sheets and why

More information

Chapter 7 Page Layout Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Chapter 7 Page Layout Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D Chapter 7 Page Layout Basics Key Concepts Copyright 2013 Terry Ann Morris, Ed.D 1 Learning Outcomes float fixed positioning relative positioning absolute positioning two-column page layouts vertical navigation

More information

Taskstream Technical & System FAQs

Taskstream Technical & System FAQs Taskstream Technical & System FAQs 71 WEST 23RD STREET, NEW YORK, NY 10010 T 1.800.311.5656 e help@taskstream.com Taskstream FAQs Taskstream FAQs Click the links in each question or description to navigate

More information

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

Garfield Public Schools Fine & Practical Arts Curriculum Web Design Garfield Public Schools Fine & Practical Arts Curriculum Web Design (Half-Year) 2.5 Credits Course Description This course provides students with basic knowledge of HTML and CSS to create websites and

More information

Create Your own Company s Design Theme

Create Your own Company s Design Theme Create Your own Company s Design Theme A simple yet effective approach to custom design theme INTRODUCTION Iron Speed Designer out of the box already gives you a good collection of design themes, up to

More information

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design Contents HTML Quiz Design CSS basics CSS examples CV update What, why, who? Before you start to create a site, it s

More information

LaGuardia Community College 31-10 Thomson Ave, Long Island City, New York 11101 Created by ISMD s Dept. Training Team. Overview

LaGuardia Community College 31-10 Thomson Ave, Long Island City, New York 11101 Created by ISMD s Dept. Training Team. Overview Overview Dreamweaver gives you many options when it comes to setting the properties for your webpages. Within the "Page Properties" dialog box, you can set the appearance of your page, name your page and

More information

HTML and CSS. Elliot Davies. April 10th, 2013. ed37@st-andrews.ac.uk

HTML and CSS. Elliot Davies. April 10th, 2013. ed37@st-andrews.ac.uk HTML and CSS Elliot Davies ed37@st-andrews.ac.uk April 10th, 2013 In this talk An introduction to HTML, the language of web development Using HTML to create simple web pages Styling web pages using CSS

More information

Outline of CSS: Cascading Style Sheets

Outline of CSS: Cascading Style Sheets Outline of CSS: Cascading Style Sheets nigelbuckner 2014 This is an introduction to CSS showing how styles are written, types of style sheets, CSS selectors, the cascade, grouping styles and how styles

More information

Responsive Web Design: Media Types/Media Queries/Fluid Images

Responsive Web Design: Media Types/Media Queries/Fluid Images HTML Media Types Responsive Web Design: Media Types/Media Queries/Fluid Images Mr Kruyer s list of HTML Media Types to deliver CSS to different devices. Important note: Only the first three are well supported.

More information

Style & Layout in the web: CSS and Bootstrap

Style & Layout in the web: CSS and Bootstrap Style & Layout in the web: CSS and Bootstrap Ambient intelligence: technology and design Fulvio Corno Politecnico di Torino, 2014/2015 Goal Styling web content Advanced layout in web pages Responsive layouts

More information

Level 1 - Clients and Markup

Level 1 - Clients and Markup Level 1 - Clients and Markup The design for the email we ll build In this level The skills you ll need to compete Power Moves HTML and CSS Media queries Signature Move Using external resources An HTML

More information

Development Perspective: DIV and CSS HTML layout. Web Design. Lesson 2. Development Perspective: DIV/CSS

Development Perspective: DIV and CSS HTML layout. Web Design. Lesson 2. Development Perspective: DIV/CSS Web Design Lesson 2 Development Perspective: DIV/CSS Why tables have been tabled Tables are a cell based layout tool used in HTML development. Traditionally they have been the primary tool used by web

More information

New Perspectives on Creating Web Pages with HTML. Considerations for Text and Graphical Tables. A Graphical Table. Using Fixed-Width Fonts

New Perspectives on Creating Web Pages with HTML. Considerations for Text and Graphical Tables. A Graphical Table. Using Fixed-Width Fonts A Text Table New Perspectives on Creating Web Pages with HTML This figure shows a text table. Tutorial 4: Designing a Web Page with Tables 1 2 A Graphical Table Considerations for Text and Graphical Tables

More information

ICE: HTML, CSS, and Validation

ICE: HTML, CSS, and Validation ICE: HTML, CSS, and Validation Formatting a Recipe NAME: Overview Today you will be given an existing HTML page that already has significant content, in this case, a recipe. Your tasks are to: mark it

More information

Mobile Web Site Style Guide

Mobile Web Site Style Guide YoRk University Mobile Web Site Style Guide Table of Contents This document outlines the graphic standards for the mobile view of my.yorku.ca. It is intended to be used as a guide for all York University

More information

Using Adobe Dreamweaver CS4 (10.0)

Using Adobe Dreamweaver CS4 (10.0) Getting Started Before you begin create a folder on your desktop called DreamweaverTraining This is where you will save your pages. Inside of the DreamweaverTraining folder, create another folder called

More information

CSS 101. CSS CODE The code in a style sheet is made up of rules of the following types

CSS 101. CSS CODE The code in a style sheet is made up of rules of the following types CSS 101 WHY CSS? A consistent system was needed to apply stylistic values to HTML elements. What CSS does is provide a way to attach styling like color:red to HTML elements like . It does this by defining

More information

CREATING HORIZONTAL NAVIGATION BAR USING ADOBE DREAMWEAVER CS5

CREATING HORIZONTAL NAVIGATION BAR USING ADOBE DREAMWEAVER CS5 CREATING HORIZONTAL NAVIGATION BAR USING ADOBE DREAMWEAVER CS5 Step 1 - Creating list of links - (5 points) Traditionally, CSS navigation is based on unordered list - . Any navigational bar can be

More information

Appendix IX. Codes written for developing the revised search tool in HTML

Appendix IX. Codes written for developing the revised search tool in HTML Appendix IX Codes written for developing the revised search tool in HTML 1

More information

Base template development guide

Base template development guide Scandiweb Base template development guide General This document from Scandiweb.com contains Magento theme development guides and theme development case study. It will basically cover two topics Magento

More information

Responsive Email Design

Responsive Email Design Responsive Email Design For the Hospitality Industry By Arek Klauza, Linda Tran & Carrie Messmore February 2013 Responsive Email Design There has been a lot of chatter in recent months in regards to Responsive

More information

C:\wamp\www\webdok\07bootstrap\bootstrap-3.2.0-dist\css\bootstrap.css 2. juli 2014 13:18

C:\wamp\www\webdok\07bootstrap\bootstrap-3.2.0-dist\css\bootstrap.css 2. juli 2014 13:18 /*! * Bootstrap v3.2.0 (http://getbootstrap.com) * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/license) */ /*! normalize.css v3.0.1 MIT License

More information

Using and creating Crosstabs in Crystal Reports Juri Urbainczyk 27.08.2007

Using and creating Crosstabs in Crystal Reports Juri Urbainczyk 27.08.2007 Using and creating Crosstabs in Crystal Reports Juri Urbainczyk 27.08.2007 Using an creating Crosstabs in Crystal Reports... 1 What s a crosstab?... 1 Usage... 2 Working with crosstabs... 2 Creation...

More information

Coding Standards for Web Development

Coding Standards for Web Development DotNetDaily.net Coding Standards for Web Development This document was downloaded from http://www.dotnetdaily.net/ You are permitted to use and distribute this document for any noncommercial purpose as

More information

WYSIWYG Editor in Detail

WYSIWYG Editor in Detail WYSIWYG Editor in Detail 1. Print prints contents of the Content window 2. Find And Replace opens the Find and Replace dialogue box 3. Cut removes selected content to clipboard (requires a selection) 4.

More information

Fast track to HTML & CSS 101 (Web Design)

Fast track to HTML & CSS 101 (Web Design) Fast track to HTML & CSS 101 (Web Design) Level: Introduction Duration: 5 Days Time: 9:30 AM - 4:30 PM Cost: 997.00 Overview Fast Track your HTML and CSS Skills HTML and CSS are the very fundamentals of

More information

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file. Creative Specs Gmail Sponsored Promotions Overview The GSP creative asset will be a ZIP folder, containing four components: 1. Teaser text file 2. Teaser logo image 3. HTML file with the fully expanded

More information

Code View User s Guide

Code View User s Guide Code View User s Guide 1601 Trapelo Road Suite 329 Waltham, MA 02451 www.constantcontact.com Constant Contact, Inc. reserves the right to make any changes to the information contained in this publication

More information

CS134 Web Site Design & Development. Quiz1

CS134 Web Site Design & Development. Quiz1 CS134 Web Site Design & Development Quiz1 Name: Score: Email: I Multiple Choice Questions (2 points each, total 20 points) 1. Which of the following is an example of an IP address? [Answer: d] a. www.whitehouse.gov

More information

HTML, CSS, XML, and XSL

HTML, CSS, XML, and XSL APPENDIX C HTML, CSS, XML, and XSL T his appendix is a very brief introduction to two markup languages and their style counterparts. The appendix is intended to give a high-level introduction to these

More information

COMMONWEALTH OF PENNSYLVANIA DEPARTMENT S OF Human Services, INSURANCE, AND AGING

COMMONWEALTH OF PENNSYLVANIA DEPARTMENT S OF Human Services, INSURANCE, AND AGING COMMONWEALTH OF PENNSYLVANIA DEPARTMENT S OF Human Services, INSURANCE, AND AGING INFORMATION TECHNOLOGY GUIDELINE Name Of Guideline: Domain: Application Date Issued: 03/18/2014 Date Revised: 02/17/2016

More information

Click Fraud Detection on the Advertiser Side

Click Fraud Detection on the Advertiser Side Click Fraud Detection on the Advertiser Side Haitao Xu 1, Daiping Liu 1, Aaron Koehl 1, Haining Wang 1, and Angelos Stavrou 2 1 College of William and Mary, Williamsburg, VA 23187, USA {hxu,liudptl,amkoeh,hnw}@cs.wm.edu

More information

GUIDE TO CODE KILLER RESPONSIVE EMAILS

GUIDE TO CODE KILLER RESPONSIVE EMAILS GUIDE TO CODE KILLER RESPONSIVE EMAILS THAT WILL MAKE YOUR EMAILS BEAUTIFUL 3 Create flawless emails with the proper use of HTML, CSS, and Media Queries. But this is only possible if you keep attention

More information

Colgate University Website Content Style Guide

Colgate University Website Content Style Guide University Website Content Style Guide Website Color Palette Maroon #862633 Dark Orange #e7810b Blue #365777 Gray #58595b Light Orange* #e39615 NOTE: No other colors are to be used within colgate.edu.

More information

How to code, test, and validate a web page

How to code, test, and validate a web page Chapter 2 How to code, test, and validate a web page Slide 1 Objectives Applied 1. Use a text editor like Aptana Studio 3 to create and edit HTML and CSS files. 2. Test an HTML document that s stored on

More information

Web Design for Programmers. Brian Hogan NAPCS Slides and content 2008 Brian P. Hogan Do not reproduce in any form without permission

Web Design for Programmers. Brian Hogan NAPCS Slides and content 2008 Brian P. Hogan Do not reproduce in any form without permission Web Design for Programmers Brian Hogan NAPCS Slides and content 2008 Brian P. Hogan Do not reproduce in any form without permission Quick Disclaimers This is a crash course! Many topics are simplified

More information

Appendix H: Cascading Style Sheets (CSS)

Appendix H: Cascading Style Sheets (CSS) Appendix H: Cascading Style Sheets (CSS) Cascading Style Sheets offer Web designers two key advantages in managing complex Web sites: Separation of content and design. CSS gives developers the best of

More information

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions) CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions) Step 1 - DEFINE A NEW WEB SITE - 5 POINTS 1. From the welcome window that opens select the Dreamweaver Site... or from the main

More information

Table of Contents Find out more about NewZapp

Table of Contents Find out more about NewZapp Table of Contents Why is email display an issue in email marketing?... 2 Expert Email Design... 3 Desktop PC and Apple Mac email applications... 4 Web and mobile device email readers... 5 Creating your

More information

Web publishing: An introduction to CSS

Web publishing: An introduction to CSS Web publishing: An introduction to CSS 1 1 How to Use this User Guide 1.1. The Exercises This handbook accompanies the taught sessions for the course. Each section contains a brief overview of a topic

More information

This document will describe how you can create your own, fully responsive. drag and drop email template to use in the email creator.

This document will describe how you can create your own, fully responsive. drag and drop email template to use in the email creator. 1 Introduction This document will describe how you can create your own, fully responsive drag and drop email template to use in the email creator. It includes ready-made HTML code that will allow you to

More information

Slicing and Coding the Navigation Background in CSS

Slicing and Coding the Navigation Background in CSS CSS Template Tutorial Please take your time to visit http://www.freecss.info Table of Contents Step 1 Setting up. page 3 Step 2 Coding the basics.page 5 Step 3 Coding and slicing the header. page 9 Step

More information

ODS for PRINT, REPORT and TABULATE

ODS for PRINT, REPORT and TABULATE Paper 3-26 ODS for PRINT, REPORT and TABULATE Lauren Haworth, Genentech, Inc., San Francisco ABSTRACT For most procedures in the SAS system, the only way to change the appearance of the output is to change

More information

How to Properly Compose E-Mail HTML Code : 1

How to Properly Compose E-Mail HTML Code : 1 How to Properly Compose E-Mail HTML Code : 1 For any successful business, creating and sending great looking e-mail is essential to project a professional image. With the proliferation of numerous e-mail

More information

Dreamweaver. Introduction to Editing Web Pages

Dreamweaver. Introduction to Editing Web Pages Dreamweaver Introduction to Editing Web Pages WORKSHOP DESCRIPTION... 1 Overview 1 Prerequisites 1 Objectives 1 INTRODUCTION TO DREAMWEAVER... 1 Document Window 3 Toolbar 3 Insert Panel 4 Properties Panel

More information

Introduction to web development and JavaScript

Introduction to web development and JavaScript Objectives Chapter 1 Introduction to web development and JavaScript Applied Load a web page from the Internet or an intranet into a web browser. View the source code for a web page in a web browser. Knowledge

More information

Using Microsoft Word. Working With Objects

Using Microsoft Word. Working With Objects Using Microsoft Word Many Word documents will require elements that were created in programs other than Word, such as the picture to the right. Nontext elements in a document are referred to as Objects

More information

In this session, we will explain some of the basics of word processing. 1. Start Microsoft Word 11. Edit the Document cut & move

In this session, we will explain some of the basics of word processing. 1. Start Microsoft Word 11. Edit the Document cut & move WORD PROCESSING In this session, we will explain some of the basics of word processing. The following are the outlines: 1. Start Microsoft Word 11. Edit the Document cut & move 2. Describe the Word Screen

More information

Tips and tricks with Text boxes in Mahara

Tips and tricks with Text boxes in Mahara Tips and tricks with Text boxes in Mahara This tutorial assumes that you know how to drag a Text box block down to your page content area. Contents 1. The parts of a Text box... 2 2. What each of the buttons

More information

Microsoft Expression Web Quickstart Guide

Microsoft Expression Web Quickstart Guide Microsoft Expression Web Quickstart Guide Expression Web Quickstart Guide (20-Minute Training) Welcome to Expression Web. When you first launch the program, you ll find a number of task panes, toolbars,

More information

BLACKBOARD 9.1: Text Editor

BLACKBOARD 9.1: Text Editor BLACKBOARD 9.1: Text Editor The text editor in Blackboard is a feature that appears in many different areas, but generally has the same look and feel no matter where it appears. The text editor has changed

More information

Creating Web Pages with HTML Simplified. 3rd Edition

Creating Web Pages with HTML Simplified. 3rd Edition Brochure More information from http://www.researchandmarkets.com/reports/2248215/ Creating Web Pages with HTML Simplified. 3rd Edition Description: Are you new to computers? Does new technology make you

More information

COURSES > WEBTECHNOLOGIE (2007-2008)_1 > SCHEDULES. Week Time Room Subject Literature Tutor

COURSES > WEBTECHNOLOGIE (2007-2008)_1 > SCHEDULES. Week Time Room Subject Literature Tutor 1 COURSES > WEBTECHNOLOGIE (2007-2008)_1 > SCHEDULES Schedules EDIT VIEW Lectures Week Time Room Subject Literature Tutor Week 1: Web essentials Mon 7 Jan, 11:00-12:45 Mon 7 Jan, 13:30-15:15 Wed 9 Jan,

More information

Web Developer Jr - Newbie Course

Web Developer Jr - Newbie Course Web Developer Jr - Newbie Course Session Course Outline Remarks 1 Introduction to web concepts & view samples of good websites. Understand the characteristics of good website Understand the importance

More information

Introduction to Web Development

Introduction to Web Development Introduction to Web Development Week 2 - HTML, CSS and PHP Dr. Paul Talaga 487 Rhodes paul.talaga@uc.edu ACM Lecture Series University of Cincinnati, OH October 16, 2012 1 / 1 HTML Syntax For Example:

More information

Microsoft Word 2010 Basics

Microsoft Word 2010 Basics Microsoft Word 2010 Basics 1. Start Word if the Word 2007 icon is not on the desktop: a. Click Start>Programs>Microsoft Office>Microsoft Word 2007 b. The Ribbon- seen across the top of Microsoft Word.

More information

In this chapter, you will learn how to...

In this chapter, you will learn how to... LEARNING OUTCOMES In this chapter, you will learn how to... Create a table on a web page Apply attributes to format tables, table rows, and table cells Increase the accessibility of a table Style an HTML

More information

Joomla! template JSN Mico Customization Manual

Joomla! template JSN Mico Customization Manual Joomla! template JSN Mico Customization Manual (for JSN Mico 1.0.x) www.facebook.com/joomlashine www.twitter.com/joomlashine www.youtube.com/joomlashine This documentation is release under Creative Commons

More information

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence Web Development Owen Sacco ICS2205/ICS2230 Web Intelligence Introduction Client-Side scripting involves using programming technologies to build web pages and applications that are run on the client (i.e.

More information

Designing HTML Emails for Use in the Advanced Editor

Designing HTML Emails for Use in the Advanced Editor Designing HTML Emails for Use in the Advanced Editor For years, we at Swiftpage have heard a recurring request from our customers: wouldn t it be great if you could create an HTML document, import it into

More information

Contents. Introduction... 2. Downloading the Data Files... 2

Contents. Introduction... 2. Downloading the Data Files... 2 Creating a Web Page Using HTML Part 3: Multi-page Management and Uploading INFORMATION TECHNOLOGY SERVICES California State University, Los Angeles Version 1.1 Summer 2009 Contents Introduction... 2 Downloading

More information

Help on Icons and Drop-down Options in Document Editor

Help on Icons and Drop-down Options in Document Editor Page 1 of 5 Exact Synergy Enterprise Help on Icons and Drop-down Options in Document Editor Introduction The following table provides descriptions on the icons and drop-down options that are available

More information

CST 150 Web Design and Development I Midterm Exam Study Questions Chapters 1-3

CST 150 Web Design and Development I Midterm Exam Study Questions Chapters 1-3 CST 150 Web Design and Development I Midterm Exam Study Questions Chapters 1-3 Multiple Choice Identify the choice that best completes the statement or answers the question. 1. A host that provides storage

More information