Groupings and Selectors

Size: px
Start display at page:

Download "Groupings and Selectors"

Transcription

1 Groupings and Selectors Steps to Success Using the headings.html web page you created in steps, we'll discuss the type selector and grouping. We'll look at how we can utilize grouping efficiently within our CSS file. 1. Open the headings.html file in steps folder. 2. Now, create a new CSS file in Dreamweaver and add the following code. /* CSS Document */ This is a CSS comment. It will help you know which file is the css and which file is the html. 3. Save the file as headings.css inside the stepstyles folder 4. Add the following code to the <head> of headings.html <link href="stepstyles/headings.css" rel="stylesheet" type="text/css" /> Type Selectors The type selector matches the tag name of any element type within our documents. 1. Add the following h1 rule to headings.css: h1{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #666; background-color: transparent; Illustration 1: A simple type selector

2 The results are in Image 1. Image 1: Our h1 rule The rule in Illustration 1 would make all instances of the h1 element assume the properties and values we have declared within the rule. We have simply declared that all instances of our h1element will comprise of a set of fonts. They will be dark gray in color and the background will be transparent. Group Type Selectors 1. Add the following (in red) to headings.css: h1, h2{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #666; background-color: transparent; Illustration 2: Grouping our selectors In Illustration 2, I have added a comma immediately after the h1 selector and then I added an h2selector. The results are in Image 2.

3 Image 2: Our h1, h2 rule We can see from the image above that our h1, h2 rule has completed the styling we set for both our h1 and h2 elements; this is pretty cool. What we have done is separate our type selectors with a comma. What this means is that each selector in the rule will be styled exactly the same, just as if they had been written individually. This means we can use this technique to declare the common properties that exist within each of our elements. 2. Add the following (in red) to headings.css: h1, h2, h3, h4, h5, h6{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #666; background-color: transparent; Illustration 3: go crazy! If we are using all those h elements, and they fit into our generic rule, then this is the best thing to do. No sense in re-writing the rule multiple times when just the once will do. Preview in the browser:

4 Image 3: Our h1 to h6 generic styling We see the styling has been applied to all our h elements, from h1, right through to h6. Setting The Specifics Now that we have seen how we can group our type selectors, and therefore reduce the amount of code we need to type - not to mention that we can now maintain our CSS easier - we can look at setting the specifics for our h elements. 1. Add the following (in red) to headings.css h1, h2, h3, h4, h5, h6{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #666; background-color: transparent; h1{font-size: 1.2em; h2{font-size: 1em; h3{font-size: 0.9em; h4{font-size: 0.8em; h5{font-size: 0.7em; h6{font-size: 0.6em; Illustration 4: Sizing our h elements Let's take a look at how our CSS in Illustration 4 is rendered by the browser:

5 Image 3: Our h elements are now sized In Illustration 4, I have set a size for each of the h elements we have been working with: h1 to h6. What if we decided that all our h elements now require a margin of 25px to the left, to conform to the layout we have in mind for our page? Well we can easily accomplish this now by revisiting the generic rule. We need only add the margin property we require in a single location to affect all our h elements. By writing our CSS in this manner we are giving ourselves options. We have the ability to add properties into the individual rule we have created for our h elements - if the rule is only required by that specific element. We also have the ability to go back to our generic rule to add any properties that are required by our h elements on a global basis. Specificity The lower the rule in our style sheet the greater the importance of the rule - that is, the closer it is to the actual content that is to be styled - this provides us with further options. Should our client request one day that all the h3 elements be red in color, we can simply add that value to the rule for that specific element, as shown in Illustration Add the following (in red) to headings.css h3{ font-size: 0.9em; color: red; Illustration 5: Making the h3 elements red in color Make that change in your test page and preview it in your browser. You will notice the color of your h3 is now red, while all the other h elements are unaffected, as we would expect.

6 Image 4: Our h3 element is now red As you can see from these simple examples, it is easy to build on each of the individual rule. The generic rule should be at the top of your style sheet to prevent it overriding your individual rule settings. Try moving the generic rule to the bottom of your style sheet and see how the gray color in that rule overrides the red color in the h3 rule. Conclusion In this tutorial, we have learned that a type selector will style all instances of its type on every page the CSS is linked to. We have also seen how we can group our selectors. Grouping makes the maintenance of our style sheets much easier. Grouping condenses our rule, makes everything more manageable and easier to read. This grouping is not limited to type selectors. Try experimenting with what we have covered here and see how far you can go. We briefly looked at the cascade and saw how a greater importance is placed on a rule when it is lower in the style sheet. It will always win out against a rule that is higher in the style sheet with the same selector.

7 Classes Steps to Success 1. In Dreamweaver, open a new HTML file. 2. Add the following code: <html> <head> <title>advanced styles</title> <link href="stepstyles/classes.css" rel="stylesheet" type="text/css" /> </head> <body> <table border="0" cellspacing="0" cellpadding="1"> <tr> <td>advanced stylesheet example!</td> </tr> </table> <br/> <table border="0" cellspacing="0" cellpadding="1" class="alttable"> <tr> <td>advanced stylesheet example!</td> </tr> </table> </body> </html> 3. Save as classes.html in the steps folder 4. In Dreamweaver, open a new CSS file and copy the following style rules into it: /* CSS Document */ body { font-size: 1em;

8 background: #FFFFFF; color: #000000; font-family: verdana, arial, ms sans serif; table { border-right: # px solid; padding-right: 1px; border-top: # px solid; padding-left: 1px; margin: 0px; border-left: # px solid; color: #000000; border-bottom: # px solid; background-color: #c0c0c0;.alttable { border-right: #FF0000 2px dashed; border-top: #FF0000 2px dashed; padding-left: 3px; FONT-SIZE: 8pt; border-left: #FF0000 2px dashed; color: #FFFF00; border-bottom: #FF0000 2px dashed; background-color: #000000; 5. Save as classes.css in the stepstyles folder 6. Preview in a browser. This example brings "classes" into the equation. If you create a set of rules for the <table> tag - what happens if you want to create two tables with different appearance? The answer is to use a class. Classes are prefixed with a full period (.) and the name of the class can be whatever you decide..alttable is the class used in the above example. When the browser reads the "class=classname" part of the table tag, it will break away from the standard table style declarations. It will jump to the.alttable rules and use those. Classes mean that elements can be individualized, yet still use the formatting from an external css file. Thus, they are very useful and important.

9 The Box Model To understand using CSS for layout you must understand the box model. Margins, padding and borders are all part of what's known as the Box Model. The Box Model works like this: in the middle you have the content area, surrounding that you have the padding, surrounding that you have the border and surrounding that you have the margin. It can be visually represented like this: You don't have to use all of these, but it can be helpful to remember that the box model can be applied to every HTML element on the page, and that's a powerful thing! This information on this page is only here to provide you with the visual example above. You DO NOT have to create any content as a result of reading through this page. If you have a good understanding of this model, simply move onto the next step.

10 divs & ids Using the div element and the id attribute for page layout All the work we have done so far has left us with a vertical layout of our web pages. How do the experts do it? How are they able to have content sit beside each other in a wonderful, colourful layout? The pros use a combination of the div element and the id selector in both the HTML and the CSS. The Mighty div Element The div element gives structure and context to any block-level content in the document. Each divelement becomes a generic block-level container for all content within the required start and end tags. As we will see, the div tag is a powerful generic element well suited for being used as a container within our Web page. This turns it into a good candidate for creating sections or divisions (hence "div") of Web documents. The id Selector The id selector is similar to the class selector. The id selector provides us with the opportunity to uniquely target these containers and apply rules to them. The difference between ids and classes ids must be unique. Only one unique id per HTML file. If there was an id called footer. It can only be used once as an attribute of the div element. Classes can be reused on a single page. If there was a class called box, it could be used within several HTML elements within one HTML file In the following steps, we use divs and ids to create containers/divisions/boxes for our content. The containers will be: header, sidebar, content, and footer We will add background colors, padding, margins and a few other properties to each of these areas We will use an external style sheet for your CSS.

11 Building containers using divs, ids and CSS Steps to Success - creating containers 1. Create a new HTML file in dreamweaver 2. Add the following markup: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " <html xmlns=" <head> <title>the might div element</title> </head> <body> <div id="banner">this is the banner area</div> <div id="sidenav">this is the sidenav area</div> <div id="content">this is the content area</div> <div id="footer">this is the footer area</div> </body> </html> 3. Save as containers.html (in steps of course!) The Division Element We have put the content into containers using the division element (div). Divisions, like paragraphs are also block elements; they can contain content. Therefore divisions must have an opening and closing tag. The attribute id defines the selector. 4. Create a CSS file in Dreamweaver and add the following code: /* CSS Document */ body{ margin:0; padding:0;

12 #banner{ background-color:#000099; color:#ffffff; #sidenav{ background-color:#000066; color:#cccccc; #content{ background-color: #FFFF99 #footer{ background-color:#990000; color: #999999; Notice: o o id selector is defined by the # symbol within our style sheet, and by the use of the idattribute within our HTML document - for example id="sidenav". body selector is set to 0 for the padding and the margin. Usually the margin and padding are set to the browser default if not specifically set to Save this file as layout.css in the stepstyles folder. 6. Link to the external style sheet, layout.css in the <head> element of containers.html using the following markup: <link href="stepstyles/layout.css" rel="stylesheet" type="text/css" /> 7. Save both files and preview in a browser Notice the page is split into colored divisions or containers.

13 Now we can start playing with the layout. The banner we will leave as it is, which is at the top. We want the sidenav on the left with the content flowing beside it on the right the footer will be at the bottom of the page. It should look like this: To get the sidenav to stay on the left we will use the property float and we will give it a width of180 pixels. Note: The width of the average monitor is now 1024 pixels. There are still some monitors that only have a width of 800 pixels. Most web designers design for a width of 800px. 10. Add the following code (in red) to layout.css: /* CSS Document */ body{ margin:0; padding:0; #banner{ background-color:#000099; color:#ffffff; #sidenav{ background-color:#000066; color:#cccccc; float: left;

14 width: 180px; #content{ background-color: #FFFF99 #footer{ background-color:#990000; color: #999999; 11. Save both files and preview in a browser. It should look like this: Let's add more content in the content area. We know eventually that area is going to have more than one line of text. 12. Add a heading and a couple of more paragraphs to containers.html.

15 13. Save both files and preview in a browser. It should look like this: Yikes!! That's not quite what we want. The content is flowing underneath the sidenav and we don't want that to happen. We can give the content a left margin of 200 pixels. 13. Add the following code (in red) to layout.css: /* CSS Document */ body{ margin:0; padding:0; #banner{ background-color:#000099; color:#ffffff; #sidenav{ background-color:#000066; color:#cccccc; float: left; width: 180px; #content{ background-color: #FFFF99;

16 margin-left:200px; #footer{ background-color:#990000; color: #999999; 14. Save both files and preview in a browser. It should look like this: Here we go, now we are getting closer. But it still looks a little messy with too much white space where we don't want it. So let's do a little trick. We are going to put all the containers into one big container and call it wrap. We need a new <div> in the html and a new rule in the css. 15. Add the following code (in red) to layout.css: /* CSS Document */ body{ margin:0; padding:0; #wrap{ background-color:#000066;

17 #banner{ background-color:#000099; color:#ffffff; #sidenav{ background-color:#000066; color:#cccccc; float: left; width: 180px; #content{ background-color: #FFFF99; margin-left:200px; #footer{ background-color:#990000; color: #999999; 16. THIS IS VERY IMPORTANT...You are going to add this code into the html file where you want this CSS to be applied. With this code, even if you link the CSS file to the html file, you have still not indicated that you want to apply a 'div'. Divs are almost always defined in an external CSS sheet but will not work unless you put the div tag into the html. Add the following markup (in red) to containers.html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " <html xmlns=" <head> <title>the might div element</title> <link href="stepstyles/layout.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrap"> <div id="banner">this is the banner area</div> <div id="sidenav">this is the sidenav area</div> <div id="content">

18 <h2>heading</h2> <p>this is the content area</p> <p>this is a paragraph </p> </div> <div id="footer">this is the footer area</div> </div> </body> </html> 17. Save both files and preview in a browser. It should look like this: Finishing touches. The text is too tight to the sides of the containers. We'll add some padding to the banner, the sidenav and the footer. Add padding:6px to all three containers in layout.css 18. Add the following code (in red) to layout.css: /* CSS Document */ body{ margin:0; padding:0;

19 #wrap{ background-color:#000066; #banner{ background-color:#000099; color:#ffffff; padding:6px; #sidenav{ background-color:#000066; color:#cccccc; float: left; width: 180px; padding:6px; #content{ background-color: #FFFF99; margin-left:200px; #footer{ background-color:#990000; color: #999999; padding:6px;

20 19. Save both files and preview in a browser. It should look like this: 20. Set the width of the wrap to 800px /* CSS Document */ body{ margin:0; padding:0; #wrap{ background-color:#000066; width:800px; #banner{ background-color:#000099; color:#ffffff; padding:6px; #sidenav{ background-color:#000066; color:#cccccc; float: left; width: 180px; padding:6px;

21 #content{ background-color: #FFFF99; margin-left:200px; #footer{ background-color:#990000; color: #999999; padding:6px; 21. Save both files and preview in a browser. At this point, a lot of you may find that your containers page does not look as it should per the example above. To save yourself the trouble of having to go back through every line of code and figure out where you went wrong, please replace all of the code you have in layout.css with the following code...this code has some additional content in it that will be used a few steps later, so make sure you replace all of your layout.css code with the code below regardless of whether or not your page looks correct. /* CSS Document */ body{ margin:0; padding:0; #wrap{ background-color:#000066; width:800px; background-image:url(../images/bg_wrap.gif); background-repeat: repeat-y; margin: 0 auto; #banner{ background-color:#000099; color:#ffffff; padding:6px; #sidenav{ background-color:#000066; color:#cccccc; float: left; width: 160px; padding:6px;

22 #content{ background-color: #FFFF99; margin-left:200px; padding:6px; #footer{ background-color:#990000; color: #999999; padding:18px; background-image: url(../images/xhtml_h1_bg.gif); background-repeat: repeat-x; background-position: bottom;

23 Adding background images Let's do as the pros do and add a background image but first we must learn how we can position background images within a HTML element, using CSS. Steps to Success Save an image 1. Right mouse on the image below 2. Save image as bg.gif in the images folder inside the steps folder Create a new css (this image is located on my website) 3. Open a new file in Dreamweaver and add the following code /* CSS document */ This is a CSS comment. It will help you know which file is the css and which file is the html. 4. Save the file as background.css in the stepstyles folder Create a new web page 5. Open a new file in Dreamweaver 6. Add the following markup: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " <html> <head> <title>using Background Images</title> </head> <body> <h1>heading Background </h1> <p>this is a web page that uses a background image in the body and h1 <p>this is a 2nd paragraph</p> </body> </html> selectors </p> 7. Save as background.html

24 8. Link to external style sheet, background.css in the <head> element using the following markup. <link href="stepstyles/background.css" rel="stylesheet" type="text/css" /> Background Images and the Body Tag We'll begin by looking at the syntax and then move onto the different options that are available to us. Let's begin with a simple rule for the body element that is shown in Illustration Add the following background image rule to the external style sheet background.css /* CSS document */ body{ margin:0; padding:0; background-color: #FFFFFF; color: #ff0000; background-image: url(../images/bg.gif); Illustration 1: Adding a background image to our body Image 1: The default setting IMPORTANT REGARDING THE../ included in the image path Some of you probably noticed the '../' placed before the path to the images folder. This code is required

25 when you are inside of a folder that you need to exit before going into another folder. We refer to it in this class as a 'bounce out' code. Because the images folder is not inside of the stepstyles folder, you need to first bounce out of the stepstyles folder and back into the main steps folder before accessing the images folder. The three characters../ allow this to happen. Our body rule in Illustration 1 produces what you see in the image above, and can generally be taken as the browser default settings. We have supplied no specific information from our style sheet other than the fact we want to use a background image. How that image is to be used we have left to the browser, at least to one degree or another. 10. Add the following background image rule to background.css /* CSS document */ body{ margin:0; padding:0; background-color: #FFFFFF; color: #ff0000; background-image: url(../images/bg.gif); background-repeat: repeat; Illustration 2: Background repeat If we take the rule from Illustration 2 and preview it in our browser we will see the result is identical to that shown in Image 1. In Illustration 2 we have told the browser how we want our background image handled, rather than relying on the browser to do it for us.

26 Image 2: Setting the image to repeat In each of the above cases, our background image is a dark blue 50px square. The CSS in Illustration 2 has tiled the image at our request, in Illustration 1 the browser simply tiled it because that is what it does by default. Tiling an Image in the "X" I'm sure you will have heard that expression before, but if you're new to CSS I'll explain what it means and how we can implement it. I would guess that the most common reason designers would implement this type of rule would be when they required a banner to run the width of the page. 11. Add the following (in red) to background.css /* CSS document */ body{ margin:0; padding:0; background-color: #FFFFFF; color: #ff0000; background-image: url(../images/bg.gif); background-repeat: repeat-x; Illustration 3: Tiling in the "X"

27 You will notice that our background-repeat rule has grown slightly in Illustration 3, we have added the following to the repeat section: -x. This tells the browser that we only want our image to repeat from left to right, this is the "X" plane. Preview in a browser will give the results as shown in Image 3. Image 3: Tiling in the "X" As we can see, our image is now tiled from left to right, and is only one row tall. Tiling in the "Y" This is similar to tiling in the "X", instead of creating a horizontal banner, tiling in the "Y" creates a vertical bar. 12. Add the following (in red) to background.css /* CSS document */ body{ margin:0; padding:0; background-color: #FFFFFF; color: #ff0000; background-image: url(../images/bg.gif); background-repeat: repeat-y; Illustration 4: Tiling in the "Y"

28 Preview in a browser will give the results as shown in Image 4. Image 4: Tiling in the "Y" Background Positioning. The default is to begin repeating the image on the left edge of the body, as we can see from our tiling in the "Y" example. We never declared a position in our CSS, and this placed the vertically repeated image in the default position, the left hand side. If you are still supporting Netscape 4 you should be aware that this browser does not support the positioning property. 13. Add the following (in red) to background.css /* CSS document */ body{ margin:0; padding:0; background-color: #FFFFFF; color: #ff0000; background-image: url(../images/bg.gif); background-repeat: repeat-y; background-position: right; Illustration 5: The background-position property As you can see, we have added our background-position property to our body rule.

29 Preview in a browser so we can see how this alters the display of our page. Image 5: Tiled in the "Y" and positioned Cool! We can see that by using the background-position property we have been able to move our column from the default position on the left of our page to the right of our page. In all the examples we have used to date, we have been repeating our background image. This is not necessary. What if we want display a single image within our page at a specified location? 14. Change the following (in red) in background.css /* CSS document */ body{ margin:0; padding:0; background-color: #FFFFFF; color: #ff0000; background-image: url(../images/bg.gif); background-repeat: no-repeat; background-position: right; Illustration 6: Using no-repeat Preview our revised body rule.

30 Image 6: Using the no-repeat property Maybe not entirely what you expected, as the image is right aligned but it's slap bang in the middle. Not to worry, that can easily be changed. Let's examine the following code listing. 15. Change the following (in red) in background.css /* CSS document */ body{ margin:0; padding:0; background-color: #FFFFFF; color: #ff0000; background-image: url(../images/bg.gif); background-repeat: no-repeat; background-position: top right; Illustration 6: Setting dual values in the position property You will notice our background-position property has changed. We are now using two options within the positional portion of our CSS, top and right. We can see the results of this in Image 7 below.

31 Image 7: Positioning our image to top and right Let's look at an alternative method of positioning our image; let's try % values. 16. Change the following (in red) in background.css /* CSS document */ body{ margin:0; padding:0; background-color: #FFFFFF; color: #ff0000; background-image: url(../images/bg.gif); background-repeat: no-repeat; background-position: 25% 75%; Illustration 7: Centering our background image With our background position set to 50% 50%, we are able to center our image in the browser window, regardless of viewport size. We can also vary this position by making adjustments to the % values. Try making some adjustments yourself and see what results you can achieve.

32 Image 8: Centering our image in the browser window While we have concentrated our efforts on the body tag, using background images is by no means only restricted to this tag. We can apply them anywhere. The use of background images can enhance your design and they are so very easy to implement with CSS. Adding a background image to an h1 tag. 17. Right mouse on the image below 18. Save image as xhtml_h1_bg.gif in the images folder inside the steps folder. 19. Add the following code (in red) to background.css /* CSS document */ body{ margin:0; padding:0; background-color: #FFFFFF; color: #ff0000; background-image: url(../images/bg.gif); background-repeat: no-repeat; background-position: 25% 75%;

33 h1{ color: #FFFFFF; font: bold 2em Arial, Helvetica, sans-serif; padding-top: 14px; background-color: #990000; background-image: url(../images/xhtml_h1_bg.gif); background-repeat: repeat-x; background-position: bottom; padding-bottom: 30px; padding-left: 20px; Note: The h1 has a padding-bottom value that with the background-position bottom, moves the image at the bottom of container. The drop shadow appears below the content. Save and preview in a browser. In other browsers, it may also look like this with the white space across the top of the page...

34 And yet in more browsers, you may not even see the blue box graphic. This is why it always important to check your files in MULTIPLE BROWSERS! If your background page does not look the same as one of the the samples above, you may have missed some coding along the way. To save yourself some time fixing it, you could simply take the code from step 19 and replace all of the current contents in background.css with the entire code (not just the stuff in red) from step 19. Conclusion In this tutorial, we have seen how we can implement a background image into the body and h1tag of the web page. We have looked at the repeating options we have, and we looked at how we can prevent repeating our background images when necessary. CSS is a powerful tool. It gives us global control of our web site elements. Next we'll put that power to use and create an illusion using a background image and CSS

35 Adding background images part II Steps to Success We can use the background property of CSS to add interest to our containter.html page. Instead of using a solid background color for the wrap, let's use a background image 1. Right mouse on the image below and save image as bg_wrap.gif. Save this image into the images folder in steps folder 2. Save and preview in a browser. It should look like this:

36 3. Save and preview in a browser. It should look like this: Some of you may have noticed that some additional content started to appear in steps 3 and 5. While we did not provide you with specific instructions for creating this content, given how far you've come with your steps site, we ask that you attempt to create this content on your own (without the provision of cut and past code) to earn the final few marks on your steps site. If you're up to it, go for it...you can do it! If not, you'll only lose a few marks by just moving on. Bottom line here, in the sidenav area, you see navigation links to each of your pages...you can make those easily! They may appear underlined in your browser...this is fine. On the other side (content div), you see the application of some standard html tags to some basic content and also some CSS. You do not actually have to make that phrase 'This is a link to the table page' with 'table page' in red a link. If you do, you will lose the red formatting. However, if you are savvy enough to link table.html to the text 'table page' and still keep it red (by adjusting the way your links look in CSS), you'll get two bonus marks.

37 My PP You have completed all of the tasks required for your steps site for this module. You will now start working on the mypp site. Make sure to close all of the files related to the steps and apply all of the following instructions on this page to the mypp site. MyPP 1. Open index.html from the mypp folder. You should also open up mypp.css from themyppstyles folder. 2. Add div tags to divide your HTML as we just did in Steps to Success. Remember how we got the divs to work in step 16 of the Containers page? You need to apply the code the same way in your mypp html pages for the divs to actually work! Just take the code from the red text to the red text (with red text included) from step 16 and place it into the end of your body tag in index.html. 3. Use mypp.css to control those divs and create a similar layout as we just did in Steps to Success for the containers page by simply adding the code from layout.css (all the code but EXCLUDING THE BODY TAG). You already have CSS for your body in mypp.css. As long as you add the rest of the CSS code from layout, once you have added the divs to your index.html page (step 16 in containers as noted above), they will appear the same way they did in containers.html but without the background images. I'm not concerned about your using background images on the mypp side so if you want to keep your CSS code nice and clean, you can remove those image properties from the code. Or, you can just leave it. If you want to earn the remaining final few points for your MyPP site, you can also add those same divs from the containers page to your employment.html and education.html simply by including the divs tags from step 16 into the end of your body content and then building the current content into those divs (just as you did on index.html). You don't have to do this on your contact page because you already have a table on that page. However, for anyone that goes to the trouble of formatting your table like the 'alttable' class example in the classes file, I might be willing to toss a couple extra points your way. 4. Now, your job in index.html (and education.html and employment.html if you have chosen to add the divs to all 3 pages) is take the already existing content and move it into the divs that are now in your body replacing the content from steps. So, take the content you have and use the divs to lay it out. Then, to make it look different than the layout we used on the steps site, go into the CSS and change the padding, margins, background colors, etc. to make things work a bit better. If it doesn't turn out perfectly, as long as you demonstrated that you attempted to edit the CSS all by yourself, you will get the majority of the credit for this module's MyPP. No one student's will look the same. Just get things laid out using those divs and customize to your liking. If you want to change the CSS in a way that we haven't really done yet, try using our class resources such as W3schools.com and see what you can learn!. If this goes well for you on the

38 index.html page, you may also apply the same divs and layout to employment and education to earn your final few available marks for the mypp site. You don't have to do it all from scratch. Copy and paste if that is easier for you. Don't be afraid to reuse and recycle code. Experiment and have fun. Once you have gotten your css to the point where you are happy, you are done with your webworkshop!!! Once you have completed these final mypp instructions, you are ready to zip your project and submit to my dropbox(if it decides to work). You should zip your entire webworkshop folder, name the zip file 'webworkshop' if it doesn't receive that name automatically, and submit to my dropbox before the deadline.

CSS means Cascading Style Sheets. It is used to style HTML documents.

CSS means Cascading Style Sheets. It is used to style HTML documents. CSS CSS means Cascading Style Sheets. It is used to style HTML documents. Like we mentioned in the HTML tutorial, CSS can be embedded in the HTML document but it's better, easier and neater if you style

More information

Using Dreamweaver CC. Logo. 4 Creating a Template. Page Heading. Page content in this area. About Us Gallery Ordering Contact Us Links

Using Dreamweaver CC. Logo. 4 Creating a Template. Page Heading. Page content in this area. About Us Gallery Ordering Contact Us Links Using Dreamweaver CC 4 Creating a Template Now that the main page of our website is complete, we need to create the rest of the pages. Each of them will have a layout that follows the plan shown below.

More information

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student Welcome Please sit on alternating rows powered by lucid & no.dots.nl/student HTML && CSS Workshop Day Day two, November January 276 powered by lucid & no.dots.nl/student About the Workshop Day two: CSS

More information

Layout with Layers and CSS

Layout with Layers and CSS Layout with Layers and CSS Today we're going to make a Web site layout. Preparatory Step 1. Inside your folder create a new folder and name it layout. 2. Inside the layout folder create a new folder and

More information

What do we mean by layouts?

What do we mean by layouts? What do we mean by layouts? A layout is how you position the elements of your page You can have columns Move paragraphs and sections around And you can do this all without changing the content of your

More information

Taking Fireworks Template and Applying it to Dreamweaver

Taking Fireworks Template and Applying it to Dreamweaver Taking Fireworks Template and Applying it to Dreamweaver Part 1: Define a New Site in Dreamweaver The first step to creating a site in Dreamweaver CS4 is to Define a New Site. The object is to recreate

More information

Creating Layouts Using CSS. Lesson 9

Creating Layouts Using CSS. Lesson 9 Creating Layouts Using CSS Lesson 9 CSS Page Layout Advantages Greater typography control Style is separate from structure Potentially smaller documents Easier site maintenance Increased page layout control

More information

CS 1100: Web Development: Client Side Coding / Fall 2016 Lab 2: More HTML and CSS

CS 1100: Web Development: Client Side Coding / Fall 2016 Lab 2: More HTML and CSS Goals CS 1100: Web Development: Client Side Coding / Fall 2016 Lab 2: More HTML and CSS Practice writing HTML Add links and images to your web pages Apply basic styles to your HTML This lab is based on

More information

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS CSS Overview Part I: Portraying the Internet as a collection of online information systems Part II: Design a website using HTML/XHTML & CSS XHTML validation What is wrong?

More information

CSS Cascading Style Sheets

CSS Cascading Style Sheets CSS Cascading Style Sheets site root index.html about.html services.html stylesheet.css images boris.jpg Types of CSS External Internal Inline External CSS An external style sheet is a text document with

More information

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

<body bgcolor=  fgcolor=  link=  vlink=  alink= > These body attributes have now been deprecated, and should not be used in XHTML. CSS Formatting Background When HTML became popular among users who were not scientists, the limited formatting offered by the built-in tags was not enough for users who wanted a more artistic layout. Netscape,

More information

Dreamweaver CS3 Lab 2

Dreamweaver CS3 Lab 2 Dreamweaver CS3 Lab 2 Using an External Style Sheet in Dreamweaver Creating the site definition First, we'll set up the site and define it so that Dreamweaver understands the site structure for your project.

More information

To illustrate how to set TAG styles the <body> and <h1> tags (for the BODY and the HEADING 1 styles) will be adjusted.

To illustrate how to set TAG styles the <body> and <h1> tags (for the BODY and the HEADING 1 styles) will be adjusted. Chapter The formatting of CSS pages is carried out by setting the required styles. There are four different types of styles: Class which are custom styles that you create. You did this in Chapter 12. Tag

More information

Reading 2.2 Cascading Style Sheets

Reading 2.2 Cascading Style Sheets Reading 2.2 Cascading Style Sheets By Multiple authors, see citation after each section What is Cascading Style Sheets (CSS)? Cascading Style Sheets (CSS) is a style sheet language used for describing

More information

Dreamweaver CS5 Lab 2

Dreamweaver CS5 Lab 2 Dreamweaver CS5 Lab 2 Using an External Style Sheet in Dreamweaver Creating the site definition First, we'll set up the site and define it so that Dreamweaver understands the site structure for your project.

More information

ICT IGCSE Practical Revision Presentation Web Authoring

ICT IGCSE Practical Revision Presentation Web Authoring 21.1 Web Development Layers 21.2 Create a Web Page Chapter 21: 21.3 Use Stylesheets 21.4 Test and Publish a Website Web Development Layers Presentation Layer Content layer: Behaviour layer Chapter 21:

More information

Using Dreamweaver CS6

Using Dreamweaver CS6 Using Dreamweaver CS6 4 Creating a Template Now that the main page of our website is complete, we need to create the rest of the pages. Each of them will have a layout that follows the plan shown below.

More information

CSS worksheet. JMC 105 Drake University

CSS worksheet. JMC 105 Drake University CSS worksheet JMC 105 Drake University 1. Download the css-site.zip file from the class blog and expand the files. You ll notice that you have an images folder with three images inside and an index.html

More information

COSC 2206 Internet Tools. CSS Cascading Style Sheets

COSC 2206 Internet Tools. CSS Cascading Style Sheets COSC 2206 Internet Tools CSS Cascading Style Sheets 1 W3C CSS Reference The official reference is here www.w3.org/style/css/ 2 W3C CSS Validator You can upload a CSS file and the validator will check it

More information

CSS: The Basics CISC 282 September 20, 2014

CSS: The Basics CISC 282 September 20, 2014 CSS: The Basics CISC 282 September 20, 2014 Style Sheets System for defining a document's style Used in many contexts Desktop publishing Markup languages Cascading Style Sheets (CSS) Style sheets for HTML

More information

Module 2 (VII): CSS [Part 4]

Module 2 (VII): CSS [Part 4] INTERNET & WEB APPLICATION DEVELOPMENT SWE 444 Fall Semester 2008-2009 (081) Module 2 (VII): CSS [Part 4] Dr. El-Sayed El-Alfy Computer Science Department King Fahd University of Petroleum and Minerals

More information

Cascading Style Sheets Level 2

Cascading Style Sheets Level 2 Cascading Style Sheets Level 2 Course Objectives, Session 1 Level 1 Quick Review Chapter 6 Revisit: Web Fonts Chapter 8: Adding Graphics to Web Pages Chapter 9: Sprucing Up Your Site s Navigation Begin

More information

CSS BASICS. selector { property: value; }

CSS BASICS. selector { property: value; } GETTING STARTED 1. Download the Juice-o-Rama 11-01 zip file from our course dropbox. 2. Move the file to the desktop. You have learned two ways to do this. 3. Unzip the file by double clicking it. You

More information

VISA/APCO/STAC 2P61 WEBSITE CREATION Fall Term 2012

VISA/APCO/STAC 2P61 WEBSITE CREATION Fall Term 2012 VISA/APCO/STAC 2P61 WEBSITE CREATION Fall Term 2012 CSS 4 TWO COLUMN LAYOUT MORE ON DIVS Last week: Applied margins borders and padding and calculating the size of elements using box model. Wrote CSS shorthand

More information

ORB Education Quality Teaching Resources

ORB Education Quality Teaching Resources These basic resources aim to keep things simple and avoid HTML and CSS completely, whilst helping familiarise students with what can be a daunting interface. The final websites will not demonstrate best

More information

ITSE 1401 Web Design Tools Lab Project 4 (Expression Web 4 - Units M, N, O, P) Last revised: 1/9/14

ITSE 1401 Web Design Tools Lab Project 4 (Expression Web 4 - Units M, N, O, P) Last revised: 1/9/14 (Expression Web 4 - Units M, N, O, P) Last revised: 1/9/14 Directions: Perform the tasks below on your personal computer or a lab computer. Professor Smith shows the score points for each activity in parentheses.

More information

CSS. https://developer.mozilla.org/en-us/docs/web/css

CSS. https://developer.mozilla.org/en-us/docs/web/css CSS https://developer.mozilla.org/en-us/docs/web/css http://www.w3schools.com/css/default.asp Cascading Style Sheets Specifying visual style and layout for an HTML document HTML elements inherit CSS properties

More information

Creating your first website Part 4: Formatting your page with CSS

Creating your first website Part 4: Formatting your page with CSS Adobe - Developer Center : Creating your first website Part 4: Formatting your page... Page 1 of 23 Dreamweaver Article Creating your first website Part 4: Formatting your page with CSS Jon Varese Adobe

More information

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Make a Website A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Overview Course outcome: You'll build four simple websites using web

More information

Getting Started with Eric Meyer's CSS Sculptor 1.0

Getting Started with Eric Meyer's CSS Sculptor 1.0 Getting Started with Eric Meyer's CSS Sculptor 1.0 Eric Meyer s CSS Sculptor is a flexible, powerful tool for generating highly customized Web standards based CSS layouts. With CSS Sculptor, you can quickly

More information

Lab Introduction to Cascading Style Sheets

Lab Introduction to Cascading Style Sheets Lab Introduction to Cascading Style Sheets For this laboratory you will need a basic text editor and a browser. In the labs, winedt or Notepad++ is recommended along with Firefox/Chrome For this activity,

More information

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em> Introduction to CSS Review Question 1 Which tag is used to create a link to another page? 1. 2. 3. 4. Review Question 1 Which tag is used to create a link to another page? 1. 2.

More information

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100 Introduction to Multimedia MMP100 Spring 2016 profehagan@gmail.com thiserichagan.com/mmp100 Troubleshooting Check your tags! Do you have a start AND end tags? Does everything match? Check your syntax!

More information

CSS Design and Layout Basic Exercise instructions. Today's exercises. Part 1: Arrange Page into Sections. Part 1, details (screenshot below)

CSS Design and Layout Basic Exercise instructions. Today's exercises. Part 1: Arrange Page into Sections. Part 1, details (screenshot below) CSS Design and Layout Basic Exercise instructions You may want to bring your textbook to Exercises to look up syntax and examples. Have a question? Ask for help, or look at the book or lecture slides.

More information

Cascading style sheets

Cascading style sheets Cascading style sheets The best way to create websites is to keep the content separate from the presentation. The best way to create websites is to keep the content separate from the presentation. HTML

More information

Cascading Style Sheets (CSS)

Cascading Style Sheets (CSS) Cascading Style Sheets (CSS) Mendel Rosenblum 1 Driving problem behind CSS What font type and size does introduction generate? Answer: Some default from the browser (HTML tells what browser how)

More information

2. Write style rules for how you d like certain elements to look.

2. Write style rules for how you d like certain elements to look. CSS for presentation Cascading Style Sheet Orientation CSS Cascading Style Sheet is a language that allows the user to change the appearance or presentation of elements on the page: the size, style, and

More information

Styles, Style Sheets, the Box Model and Liquid Layout

Styles, Style Sheets, the Box Model and Liquid Layout Styles, Style Sheets, the Box Model and Liquid Layout This session will guide you through examples of how styles and Cascading Style Sheets (CSS) may be used in your Web pages to simplify maintenance of

More information

Table Basics. The structure of an table

Table Basics. The structure of an table TABLE -FRAMESET Table Basics A table is a grid of rows and columns that intersect to form cells. Two different types of cells exist: Table cell that contains data, is created with the A cell that

More information

Assignments (4) Assessment as per Schedule (2)

Assignments (4) Assessment as per Schedule (2) Specification (6) Readability (4) Assignments (4) Assessment as per Schedule (2) Oral (4) Total (20) Sign of Faculty Assignment No. 02 Date of Performance:. Title: To apply various CSS properties like

More information

Before you begin, make sure you have the images for these exercises saved in the location where you intend to create the Nuklear Family Website.

Before you begin, make sure you have the images for these exercises saved in the location where you intend to create the Nuklear Family Website. 9 Now it s time to challenge the serious web developers among you. In this section we will create a website that will bring together skills learned in all of the previous exercises. In many sections, rather

More information

Comm 244 Week 3. Navigation. Navigation. Websites need a formalized system of links to allow users to navigate the site

Comm 244 Week 3. Navigation. Navigation. Websites need a formalized system of links to allow users to navigate the site Comm 244 Week 3 Navigation Navigation Websites need a formalized system of links to allow users to navigate the site Navigation Many larger websites have multiple forms of navigation For example, look

More information

USING STYLESHEETS TO DESIGN A WEB SITE IN DREAMWEAVER MX 2004

USING STYLESHEETS TO DESIGN A WEB SITE IN DREAMWEAVER MX 2004 USING STYLESHEETS TO DESIGN A WEB SITE IN DREAMWEAVER MX 2004 Introduction This document assumes that you are familiar with the use of a computer keyboard and mouse, have a working knowledge of Microsoft

More information

Shane Gellerman 10/17/11 LIS488 Assignment 3

Shane Gellerman 10/17/11 LIS488 Assignment 3 Shane Gellerman 10/17/11 LIS488 Assignment 3 Background to Understanding CSS CSS really stands for Cascading Style Sheets. It functions within an HTML document, so it is necessary to understand the basics

More information

Introduction to Web Design CSS Reference

Introduction to Web Design CSS Reference Inline Style Syntax: Introduction to Web Design CSS Reference Example: text Internal Style Sheet Syntax: selector {property: value; Example:

More information

Introduction to Web Design CSS Reference

Introduction to Web Design CSS Reference Inline Style Syntax: Introduction to Web Design CSS Reference Example: text Internal Style Sheet Syntax: selector {property: value; Example:

More information

CSS Cascading Style Sheets

CSS Cascading Style Sheets CSS Cascading Style Sheets site root index.html about.html services.html stylesheet.css charlie.jpg Linking to your HTML You need to link to your css in the of your HTML file.

More information

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style precedence and style inheritance Understand the CSS use

More information

CISC1600-SummerII2012-Raphael-lec3 1

CISC1600-SummerII2012-Raphael-lec3 1 CISC 1600 Introduction to Multi-media Computing Agenda Email Address: Course Page: Class Hours: Summer Session II 2012 Instructor : J. Raphael raphael@sci.brooklyn.cuny.edu http://www.sci.brooklyn.cuny.edu/~raphael/cisc1600.html

More information

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model) INTRO TO CSS RECAP HTML WHAT IS CSS ADDING CSS TO YOUR HTML DOCUMENT CSS IN THE DIRECTORY TREE CSS RULES A FEW CSS VALUES (colour, size and the box model) CSS SELECTORS SPECIFICITY WEEK 1 HTML In Week

More information

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo Note: We skipped Study Guide 1. If you d like to review it, I place a copy here: https:// people.rit.edu/~nbbigm/studyguides/sg-1.docx

More information

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space. HTML Summary Structure All of the following are containers. Structure Contains the entire web page. Contains information

More information

Navigation. Websites need a formalized system of links to allow users to navigate the site

Navigation. Websites need a formalized system of links to allow users to navigate the site Comm 244 Week 3 Navigation Navigation Websites need a formalized system of links to allow users to navigate the site Navigation Many larger websites have multiple forms of navigation For example, look

More information

Cascading Style Sheets for layout II CS7026

Cascading Style Sheets for layout II CS7026 Cascading Style Sheets for layout II CS7026 Understanding CSS float The CSS float property is also a very important property for layout. It allows you to position your Web page designs exactly as you want

More information

HTML and CSS a further introduction

HTML and CSS a further introduction HTML and CSS a further introduction By now you should be familiar with HTML and CSS and what they are, HTML dictates the structure of a page, CSS dictates how it looks. This tutorial will teach you a few

More information

CSCB20 Week 7. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2017

CSCB20 Week 7. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2017 CSCB20 Week 7 Introduction to Database and Web Application Programming Anna Bretscher Winter 2017 Cascading Style Sheets (CSS) Examples of CSS CSS provides a powerful and stillevolving toolkit of style

More information

Introduction to Web Programming and Design

Introduction to Web Programming and Design Bridges To Computing General Information: This document was created for use in the "Bridges to Computing" project of Brooklyn College. You are invited and encouraged to use this presentation to promote

More information

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

<style type=text/css> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page*** Chapter 7 Using Advanced Cascading Style Sheets HTML is limited in its ability to define the appearance, or style, across one or mare Web pages. We use Cascading style sheets to accomplish this. Remember

More information

CSS مفاهیم ساختار و اصول استفاده و به کارگیری

CSS مفاهیم ساختار و اصول استفاده و به کارگیری CSS مفاهیم ساختار و اصول استفاده و به کارگیری Cascading Style Sheets A Cascading Style Sheet (CSS) describes the appearance of an HTML page in a separate document : مسایای استفاده از CSS It lets you separate

More information

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013 CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013 Part I. (50%) Multiple Guess Choice. 1. What does CSS stand for? a. Creative Style Sheets b. Computer Style Sheets c. Cascading Style

More information

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors Unit 10 - Client Side Customisation of Web Pages Week 5 Lesson 1 CSS - Selectors Last Time CSS box model Concept of identity - id Objectives Selectors the short story (or maybe not) Web page make-over!

More information

What is the Box Model?

What is the Box Model? CSS Box Model What is the Box Model? The box model is a tool we use to understand how our content will be displayed on a web page. Each HTML element appearing on our page takes up a "box" or "container"

More information

Web Design and Development Tutorial 03

Web Design and Development Tutorial 03 Table of Contents Web Design & Development - Tutorial 03... 2 Using and Applying CSS to XHTML... 2 Conventions... 2 What you need for this tutorial... 2 Common Terminology... 3 Parent / Child Elements...

More information

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Downloads: Google Chrome Browser (Free) -   Adobe Brackets (Free) - Week One Tools The Basics: Windows - Notepad Mac - Text Edit Downloads: Google Chrome Browser (Free) - www.google.com/chrome/ Adobe Brackets (Free) - www.brackets.io Our work over the next 6 weeks will

More information

Tutorial 4. Activities. Code o Editor: Expression Web o Focus : Base Layout, navigation with folders, external stylesheets, Open up Expression Web

Tutorial 4. Activities. Code o Editor: Expression Web o Focus : Base Layout, navigation with folders, external stylesheets, Open up Expression Web Tutorial 4 Activities Code o Editor: Expression Web o Focus : Base Layout, navigation with folders, external stylesheets, Open up Expression Web Ensure that the editor is in code mode, down the bottom

More information

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2 Introduction to HTML & CSS Instructor: Beck Johnson Week 2 today Week One review and questions File organization CSS Box Model: margin and padding Background images and gradients with CSS Make a hero banner!

More information

Web Publishing Intermediate 2

Web Publishing Intermediate 2 Web Publishing Intermediate 2 Building a Three Column Site with divs and float Jeff Pankin Information Services and Technology Table of Contents Course Objectives... 2 The CIG Web Site... 3 Using the Div

More information

Lab 2: Movie Review. overview.png background.png rottenbig.png rbg.png fresh.gif rotten.gif critic.gif

Lab 2: Movie Review. overview.png background.png rottenbig.png rbg.png fresh.gif rotten.gif critic.gif EDUCATIONAL GOALS Lab 2: Movie Review By the end of this lab, the student should be able to: Use Notepad++. Organize website contents. Use the basic of CSS and HTML for layout, positioning, and the CSS

More information

Using Dreamweaver CS6

Using Dreamweaver CS6 6 So far we have used CSS to arrange the elements on our web page. We have also used CSS for some limited formatting. In this section we will take full advantage of using CSS to format our web site. Just

More information

In the early days of the Web, designers just had the original 91 HTML tags to work with.

In the early days of the Web, designers just had the original 91 HTML tags to work with. Web Design Lesson 4 Cascading Style Sheets In the early days of the Web, designers just had the original 91 HTML tags to work with. Using HTML, they could make headings, paragraphs, and basic text formatting,

More information

Introduction to Cascading Style Sheet (CSS)

Introduction to Cascading Style Sheet (CSS) Introduction to Cascading Style Sheet (CSS) Digital Media Center 129 Herring Hall http://dmc.rice.edu/ dmc-info@rice.edu (713) 348-3635 Introduction to Cascading Style Sheets 1. Overview Cascading Style

More information

Microsoft Expression Web Quickstart Guide

Microsoft Expression Web Quickstart Guide Microsoft Expression Web Quickstart Guide MS-Expression Web Quickstart Guide Page 1 of 24 Expression Web Quickstart Guide (20-Minute Training) Welcome to Expression Web. When you first launch the program,

More information

5 Snowdonia. 94 Web Applications with C#.ASP

5 Snowdonia. 94 Web Applications with C#.ASP 94 Web Applications with C#.ASP 5 Snowdonia In this and the following three chapters we will explore the use of particular programming techniques, before combining these methods to create two substantial

More information

1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document.

1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document. 1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document. 2. W3Schools has a lovely html tutorial here (it s worth the time): http://www.w3schools.com/html/default.asp

More information

ICT IGCSE Practical Revision Presentation Web Authoring

ICT IGCSE Practical Revision Presentation Web Authoring 21.1 Web Development Layers 21.2 Create a Web Page Chapter 21: 21.3 Use Stylesheets 21.4 Test and Publish a Website Web Development Layers Presentation Layer Content layer: Behaviour layer Chapter 21:

More information

Lab: Create JSP Home Page Using NetBeans

Lab: Create JSP Home Page Using NetBeans Lab: Create JSP Home Page Using NetBeans Table of Contents 1. OVERVIEW... 1 2. LEARNING OBJECTIVES... 1 3. REQUIREMENTS FOR YOUR HOME PAGE (INDEX.JSP)... 2 4. REQUIREMENTS FOR YOUR LABS PAGE (LABS.JSP)...

More information

ATSC 212 html Day 1 Web Authoring

ATSC 212 html Day 1 Web Authoring ATSC 212 html Day 1 Web Authoring Roland Stull rstull@eos.ubc.ca 1 Web Philosophy! Content is everything.! Style is nothing**. (**until recently)! Hypertext! Hot words or images can expand to give more

More information

CSS Tutorial Part 1: Introduction: A. Adding Style to a Web Page (3 options):

CSS Tutorial Part 1: Introduction: A. Adding Style to a Web Page (3 options): CSS Tutorial Part 1: Introduction: CSS adds style to tags in your html page. With HTML you told the browser what things were (e.g., this is a paragraph). Now you are telling the browser how things look

More information

HTML5: Adding Style. Styling Differences. HTML5: Adding Style Nancy Gill

HTML5: Adding Style. Styling Differences. HTML5: Adding Style Nancy Gill HTML5: Adding Style In part 2 of a look at HTML5, Nancy will show you how to add CSS to the previously unstyled document from part 1 and why there are some differences you need to watch out for. In this

More information

FrontPage 2000 Tutorial -- Advanced

FrontPage 2000 Tutorial -- Advanced FrontPage 2000 Tutorial -- Advanced Shared Borders Shared Borders are parts of the web page that share content with the other pages in the web. They are located at the top, bottom, left side, or right

More information

Web Recruitment Module Customisation

Web Recruitment Module Customisation Web Recruitment Module Customisation Introduction The People Inc. Web Recruitment add-on enables users to publish details of vacancies on their web site. This information is integrated seamlessly into

More information

Introduction to Dreamweaver CS3

Introduction to Dreamweaver CS3 TUTORIAL 2 Introduction to Dreamweaver CS3 In Tutorial 2 you will create a sample site while you practice the following skills with Adobe Dreamweaver CS3: Creating pages based on a built-in CSS page layout

More information

Stylesheet Fundamentals

Stylesheet Fundamentals e r ch01 Page 1 Wednesday, June 23, 1999 2:48 PM c h a p t 1 Stylesheet Fundamentals IN THIS CHAPTER The Big Projects Task: Lay Out the Shelley Homepage in Cascading Style Sheets (CSS) Positioning Elements

More information

CS Multimedia and Communications. Lab 06: Webpage Tables and Image Links (Website Design part 3 of 3)

CS Multimedia and Communications. Lab 06: Webpage Tables and Image Links (Website Design part 3 of 3) CS 1033 Multimedia and Communications Lab 06: Webpage Tables and Image Links (Website Design part 3 of 3) REMEMBER TO BRING YOUR MEMORY STICK TO EVERY LAB! Table Properties Reference Guide The Property

More information

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB Unit 3 Cascading Style Sheets (CSS) Slides based on course material SFU Icons their respective owners 1 Learning Objectives In this unit you

More information

When you complete this chapter, you will be able to:

When you complete this chapter, you will be able to: Page Layouts CHAPTER 7 When you complete this chapter, you will be able to: Understand the normal fl ow of elements Use the division element to create content containers Create fl oating layouts Build

More information

HTML/XML. HTML Continued Introduction to CSS

HTML/XML. HTML Continued Introduction to CSS HTML/XML HTML Continued Introduction to CSS Entities Special Characters Symbols such as +, -, %, and & are used frequently. Not all Web browsers display these symbols correctly. HTML uses a little computer

More information

The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows:

The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows: CSS Tutorial Part 2: Lists: The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows: ul { list-style-type: circle; or

More information

XHTML & CSS CASCADING STYLE SHEETS

XHTML & CSS CASCADING STYLE SHEETS CASCADING STYLE SHEETS What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML XHTML is almost identical to HTML 4.01 XHTML is a stricter and cleaner version

More information

**Method 3** By attaching a style sheet to your web page, and then placing all your styles in that new style sheet.

**Method 3** By attaching a style sheet to your web page, and then placing all your styles in that new style sheet. CSS Tutorial Part 1: Introduction: CSS adds style to tags in your html page. With HTML you told the browser what things were (e.g., this is a paragraph). Now you are telling the browser how things look

More information

Introduction to WEB PROGRAMMING

Introduction to WEB PROGRAMMING Introduction to WEB PROGRAMMING Web Languages: Overview HTML CSS JavaScript content structure look & feel transitions/animation s (CSS3) interaction animation server communication Full-Stack Web Frameworks

More information

Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework

Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework Presented by Roel Fermont 1 Today more than ever, Cascading Style Sheets (CSS) have a dominant place in online business. CSS

More information

How to lay out a web page with CSS

How to lay out a web page with CSS Activity 2.6 guide How to lay out a web page with CSS You can use table design features in Adobe Dreamweaver CS4 to create a simple page layout. However, a more powerful technique is to use Cascading Style

More information

Introduction to CSS. 2 Sep 13. Derek Peacock. An introduction to defining CSS style rules using tags, classes and ids.

Introduction to CSS. 2 Sep 13. Derek Peacock. An introduction to defining CSS style rules using tags, classes and ids. An introduction to defining CSS style rules using tags, classes and ids. 1 The HTML file contains the raw content of a web page, and the css style sheet should control all the design and look of a web

More information

Introduction to Computer Science Web Development

Introduction to Computer Science Web Development Introduction to Computer Science Web Development Flavio Esposito http://cs.slu.edu/~esposito/teaching/1080/ Lecture 9 Lecture Outline Text Styling Some useful CSS properties The Box Model essential to

More information

Setting a Background Image

Setting a Background Image More CSS More CSS Features Let's take a look at some more features available to us via CSS, as well as some techniques to make our CSS declarations more precise and efficient: Setting images as the background

More information

McMaster Brand Standard for Websites

McMaster Brand Standard for Websites McMaster University s policy calls for all university websites to follow its brand standard. McMaster websites share common elements, presentation and behavior and a consistent design, enabling visitors

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? a. www.whitehouse.gov

More information

Let's take a look at what CSS looks like in Dreamweaver using the "Embedded" coding which is the styles are within the html code and not separate.

Let's take a look at what CSS looks like in Dreamweaver using the Embedded coding which is the styles are within the html code and not separate. Creating web pages using CSS and Dreamweaver CS3 Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation of a document written in a markup language. Its most common application

More information

Intermediate Web Publishing: Working with Styles

Intermediate Web Publishing: Working with Styles Intermediate Web Publishing: Working with Styles Jeff Pankin Information Services & Technology Contents Introduction... 2 In this class you will:... 2 Set the Preferences... 2 General... 2 Invisible Elements...

More information