Looking for:

Adobe dreamweaver cs6 classroom in a book dvd free download

Click here to Download

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Adobe Dreamweaver CC Classroom in a Book ( release) Jim Maivald This Web Edition is available for free with the purchase of. Smith DVD contains tutorials and lesson files. Adobe® Dreamweaver® CS6: Classroom in a Book®: September Update for. Free PDF Book Adobe Dreamweaver CS6 Classroom in a Book, Computer Programming Books, Download Free Books in PDF Format.
 
 

Adobe® Dreamweaver® CS6 Classroom in a Book® [Book]

 

Бринкерхофф проследовал за Мидж в ее кабинет. Она села и начала, подобно пианисту-виртуозу, перебирать клавиши «Большого Брата». Бринкерхофф посмотрел на мониторы, занимавшие едва ли не всю стену перед ее столом.

На каждом из них красовалась печать АНБ. – Хочешь посмотреть, чем занимаются люди в шифровалке? – спросил он, заметно нервничая.

 

Adobe Dreamweaver CS6 Classroom in a Book | Adobe Press – Best Value Purchase

 

Working with Web Animation and Video Understanding web animation and video Previewing the completed file Adding web animation to a page Adding web video to a page Review questions Review answers Working with Forms Previewing the completed file Learning about forms Adding a form to a page Inserting text form elements Inserting checkboxes Creating radio buttons Incorporating text areas Working with lists Adding a Submit button Specifying a form action Emailing form data Styling forms Review questions Review answers Publishing to the Web Defining a remote site Cloaking folders and files Wrapping things up Putting your site online Synchronizing local and remote sites Review questions Review answers Appendix.

Show and hide more. It irons … book Fundamentals of Software Architecture by Mark Richards, Neal Ford Salary surveys worldwide regularly place software architect in the top 10 best jobs, yet no real …. What happened to apDiv1? Additionally, as each ID stored in the style sheet is used in your layout, Dreamweaver interactively removes it from the menu to prevent you from accidentally using it a second time.

Many designers create these attributes irst and then deine them later, or use them to diferentiate speciic page structures, or to create hyperlink destinations. Some class and id attributes may never appear in the style sheets or pop-up menus. Examine the available class attributes.

Note that all class attributes are available. You should now know some of the diferences between classes and IDs, as well as how to create, edit, and assign them to elements on your page. Creating an interactive menu By combining descendant selectors, classes, and IDs, you can produce amazing behaviors from seemingly static elements.

Videos, Flash animation, and JavaScript behaviors will all perform as they would on the Internet. Observe the behavior and appearance of the menu items. P Note: Rollover refers As the mouse moves over each button, the cursor icon changes to the hand back to the time when pointer, indicating that the menu items are formatted as hyperlinks. Observe the behavior and appearance of the menu items, if any.

Do not select the spaces on either making changes to your side of the word or the vertical bars, or pipes, that separate the words. If Adding a hash mark in the Link ield creates a hyperlink placeholder and desired, you can change will allow you to create and test the necessary formatting for the horizontal both the content and navigation menu without having to create an actual link.

Note that the text now styling using the Code displays the formatting of a typical text hyperlink. Be sure to select both words in each item before applying the placeholder. Watch for any undesirable side efects. The a:link pseudoclass in many cases is interchangeable with the a selector in CSS rules. However, as you already experienced earlier, a:link is more speciic and may override speciications assigned to the less speciic a selector if both are used in the style sheet. This speciication is reset whenever the browser cache or history is deleted.

When used, the pseudoclasses must be declared in the order as listed above to be efective. Remember, whether declared in the style sheet or not, each state has a set of default formats and behaviors. When a link has been used, it usually changes color, indicating that you visited that destination earlier. However, in the vertical and horizontal menus, we do not want the links to change their appearance after you click them.

To prevent or reset this behavior, you can create a compound rule that will format both states of the link at once. Type :link to add it at the end of the selector name. Type a comma , and press the spacebar to insert a space. By combining these two selectors into one rule, you are formatting the default properties of both hyperlink states at once.

Position the cursor over the hyperlink placeholders in the horizontal menu. But these hyperlinks have none of the lair of the vertical menu, with its changing background color. As explained, that interactive behavior is controlled by the pseudoclass a:hover. Save the ile. Select the nav p a:link, state inherits much of its formatting from a nav p a:visited rule in the CSS Styles panel.

In most he New CSS Rule dialog box appears with the Compound selector type cases, you only need to declare values for displayed and the text. Edit the Selector Name to say nav p a:hover, nav p a:active, and click OK. You can create a more interesting efect by add space outside the adding a little padding to the element. Double-click the nav p a:hover, nav p a:active rule to edit it. Luckily, the solution to this problem is quite simple. Have you igured out what you need to do?

It can be used to delete a rule property or the entire rule, depending on how it is invoked. Before using it, note the tooltip that appears when the cursor hovers over it. When the mouse moves over the links, the background color extends ive pixels around the link without shifting. Do you understand why you added the padding to the default hyperlink?

By adding padding to the default state, the hover state automatically inherits the extra padding and allows the background color to work as desired, without shifting the text. To be consistent, the colors used in the site should adhere to the overall site theme. Since you know that the hover state is responsible for creating the interactive link behavior, it should be a simple matter to change the background color in the vertical menu. Observe the names and the order of elements in the tag selector display.

Is there an a:hover pseudoclass associated with it? In the Background category, change the background color to By applying diferent colors to each border, you can give the but- tons a 3D appearance. As in the previous exercise, you irst need to locate the rules formatting the elements. Observe the attributes displayed in the Properties section of the panel. Enter solid, 1px, in the Right border ields.

Enter solid, 1px, in the Bottom border ields. Enter solid, 1px, 0C0 in the Left border ields. Before After By adding lighter colors to the top and left and darker colors to the right and bottom, you have created a subtle but efective three-dimensional efect. Creating faux columns Although multicolumn designs are very popular on the web, HTML and CSS have no built-in commands to produce true column structures in a webpage.

Instead, columnar designs—like the one used in the Dreamweaver CSS layouts—are simu- lated by using several types of HTML elements and various formatting techniques, usually combining margins and the loat attribute. HTML5 and CSS3 can display text in multiple columns, but for the time being, the page layouts themselves will still depend on the older techniques. Unfortunately, these methods have their limitations and downsides. For example, one of the problems with the layout used in this lesson is getting both columns to display at the same height.

Either one column or the other will almost always be shorter. Since the sidebar has a background color, there will be a visible gap at the bottom as content is added to the main page. Many designers sidestep the issue alto- gether simply by refusing to use background colors. Instead, you will create the efect of a full-height sidebar column by using a back- ground graphic combined with the CSS repeat function. Examine the tag selector display. Examine its properties.

In the Background category, click the Browse button. Select divider. Right-click the button and choose Code Navigator from the context menu. Chances are a margin setting is producing the spacing efect. Select the bottom-margin setting in the Properties section.

It makes the process of testing and uploading quick and simple. But an internal style sheet can style only one page. An external style sheet can be linked to any number of pages and, for most web applications, is the normal and preferred worklow.

Dreamweaver provides the means to handle that task quickly and easily. Hold the Shift key P Note: The last style and select the last style. You could also right-click the selected area to access the Move CSS Rules option from the context menu.

Click Save. Note at the top of the document window that Dreamweaver now displays the name of the external style sheet in the Related Files interface. More than one style and referenced that have been changed are sheet can be linked to a page. By creating and attaching style sheets optimized for not automatically saved.

For example, the style sheet created and applied in the previous exercises was designed for a typical computer display. Print style sheets often adjust colors to work better for laser and inkjet printers, hide unneeded page elements, or adjust page sizes and layouts to be more suitable for printing.

When the print queue is activated, the printing application checks for a print- media style sheet. If one is present, the relevant CSS rules are taken into account.

Displaying the style rendering toolbar If no media-type attribute appears in a style sheet, the browser or web applica- tion assumes that the CSS styles are intended for screen display. However, you have the ability to switch what media type is rendered in Design view by using the Style Rendering toolbar. Leave it visible for the next exercise.

Make sure the site root folder is targeted. From the Media ield menu, choose print. At the moment, both style sheets are identical. You will modify the print style sheet in the next exercise. Using the print- media style sheet, you can hide unwanted portions of a page. Before you can hide these menus, we need to create a new rule. Delete repeat-y from the Background-repeat ield. Deleting the image reference is not enough. Click the Live view button.

Although the Style Rendering toolbar is set to Print, Dreamweaver ignores the print-media styles and renders the page for the screen.

To properly test the page, you have to use the print preview function in an actual browser. P Note: Some 15 Once the page has loaded in the browser, activate print preview. Always test printing the butterly logo and the page borders. In the Border category, what other styles you if necessary, select the Same For All option in the Style section.

Choose none need to modify for from the Top Style ield. You should know enough now to keep the butterly logo from printing, too. Take a few minutes here and see if you can do it. Whenever you can remove unneeded code from your pages, you should do so.

It reduces ile size and allows the pages to download and respond more quickly. You can delete unneeded styles using the CSS Styles panel. Click Yes to delete multiple rules. In fact, you can remove all the rules that format hyperlink behavior. After deleting any rules, make sure you test the page in the browser and in the print application.

Observe the screen display in Design view. Dreamweaver renders the document for the web. Dreamweaver renders the screen using the print style sheet.

You have adapted a screen-media style sheet to render a webpage more appropriately in print. You have completed the basic design of the page that will be used as the project template, and you have adapted it to print media. In the next lesson, you will learn how to convert this layout into a dynamic web template. Observe the design and structure of this page. Note the mouse icon Dreamweaver displays. Type Get a fresh start with GreenStart to replace the text. Select your default browser.

For all intents and purposes, a template-based page is just a normal HTML ile. Creating a template from an existing layout A template is a type of master page from which related child pages are produced.

Templates are useful for setting up and maintaining the overall look and feel of a website, while providing a means for quickly and easily producing site content. A template is diferent from the pages you have already completed; it contains areas that are editable and other areas that are not. Templates enable a workgroup environment where page content can be created and edited by several people on the team, while the web designer is able to control the page design and speciic ele- ments that must remain unchanged.

Or, if you are starting from scratch in this exercise, in the lesson06 folder. Because of their special nature, templates are stored in their own folder, Templates, which Dreamweaver automatically creates at the site root level. Leave the Description ield empty. If you have more than one ilename, like adding template in a site, a description may be useful.

P Note: A dialog box may appear asking about saving the ile without deining editable regions; just click Yes to save anyway. An untitled dialog box appears asking whether you want to update links. Since the template is saved in a subfolder, updating the links in the code is neces- sary so that they will continue to work properly when you create child pages later.

Although the page still looks exactly the same, you can identify a template in two ways. Second, the ile extension is. A template is dynamic, meaning that Dreamweaver maintains a connection to all pages within the site that are derived from it. Whenever you add or change content within the dynamic regions of the page and save it, Dreamweaver passes those changes to all the child pages automatically, keeping them up to date.

Some sections of the page should contain areas where you can insert unique content. Dreamweaver allows you to designate these areas of the page as editable. Inserting editable regions When you irst create a template, Dreamweaver treats all the existing content as part of the master design. Child pages created from the template would be exact duplicates, except that the content would be locked and uneditable. You get around this barrier by deining editable regions in the template.

First, give some thought to which areas of the page should be part of the template and which should be open for editing. Each editable region must have a unique name, but there are no other special conventions. However, keeping them short and descriptive is a good practice. In Design view, you will see the name in a blue tab above the designated area, identifying it as an editable region. It contains an P Note: If you are image placeholder and caption that you can customize on each page.

But it also building this template using an alternative includes the vertical menu, which will hold the main navigation links for the HTML 4 layout site. Adding a title to each page is a good practice. Each title should relect the speciic content or purpose of the page. But many designers also append the name of the company or organization to help build more corporate or organizational awareness. Adding the name in the template will save time typing it in each child page later.

P Note: The Update You now have two editable regions, plus an editable title that can be changed as Template Pages dialog needed when you create new child pages using this template. Since there are no template child pages made from this template. Once a child page has open a template in a been created from a template, only the content within the editable regions can be text editor, all the code modiied in the child page.

If you editable regions of the open the page in a text editor, like Notepad or TextEdit, the code is fully editable. Dreamweaver creates a new page based on the template. Note the name of the template ile displayed in the upper-right corner of the document window. Before modifying the page, you should save it. In the Save As dialog box, navigate to the root folder for your project site. Certain areas, such as the header, menu bar, and footer, are locked and cannot be modiied.

Type About Meridien GreenStart to replace the text. Type GreenStart — green awareness in action! Select the placeholder text Insert content here in the MainContent region. In the Select Image Source dialog box, select shopping.

But only areas outside the editable regions will be updated. Typically, it is grouped with the Files panel. Click the refresh icon if no templates appear in the list.

Type GreenStart Home to replace the text. Type Headlines to replace the text. Select the Show Log option at the bottom of the dialog box to display a report detailing which pages were successfully updated and which ones were not. Observe the page and note any changes. At the same time, the boilerplate elements of the header, footer, and horizontal menu all remain consistently formatted and up to date based on the status of the template. Dreamweaver even updates linked documents that are open at the time.

If Dreamweaver or your computer were to crash at this moment, the changes would be lost and you would have to update the page manually or wait until the next time you make changes to the template to take advantage of the automatic update feature. Library items are reusable bits of HTML—paragraphs, links, copyright notices, tables, images, navigation bars, and so on—that you use frequently but not on every page within a website and therefore would not necessarily include in the site template.

You can use existing page elements or create original library items from scratch and add copies of them where needed. A library item is a like a template, only on a small scale.

As with templates, when you make and save changes to a library item, Dreamweaver automatically updates every page that uses that item. In fact, they are so similar in behavior that some worklows may favor library items over templates altogether.

Or, you could implement common page elements using library items. No items appear in the library for this lesson. A dialog box appears explaining that the library item may not look the same when placed in other documents because style sheet information is not included. Type vertical-nav in the Library Item Name ield. First, to be uploaded to the it creates a library item from the selected menu code and inserts an Untitled server.

Second, it replaces the existing menu with the library item code. And third, it creates a folder called Library at the site root level to store this and other items. Working with library items is similar to using a template. You insert the library item on each page as desired and then update the items as needed. Position the cursor over the vertical menu.

Observe the menu display. Switch to Code view. Insert your cursor in the selected code. P Note: A dialog box may appear at any time in this or the next two steps warning you that the changes you made will be discarded the next time you update the page from the template.

Select a browser from the list. Dreamweaver is keeping track of the library item and your edits, intentional or otherwise. As you will see shortly, the change you made will be short-lived. Finally, a dialog appears warning you that you have made changes to code that was locked. It further explains that the original code will be restored the next time you update the template or library item.

In September Adobe released an update to Dreamweaver offering new features for Creative Cloud customers, that give you the ability to easily add HTML5 tags, audio, video and Adobe Edge Animate compositions to your projects, and quickly find files with real-time search results on Mac OS. Register your book at peachpit. Previous page. Publication date.

Print length. See all details. Next page. Popular titles by this author. Page 1 of 1 Start over Page 1 of 1. James Maivald. Adobe Dreamweaver Classroom in a Book release. Jim Maivald. Adobe Creative Team. Please note that other Pearson websites and online products and services have their own separate privacy policies.

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:. For inquiries and questions, we collect the inquiry or question, together with name, contact details email address, phone number and mailing address and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes. Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing.

Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law. If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask peachpit.

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature. We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users’ wishes when a user submits their information through our Contact Us form.

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. Rules at the top of the sheet can pass formatting to rules appearing later using inheritance or cancel settings because of higher speciicity.

Inserting a rule in the wrong place could cause the browsers to ignore it altogether. P Note: When the cursor is inserted into Because you selected the.

If the Compound compound selector selector type is not displayed, choose it from the Selector Type menu. Typically, when the cursor is inserted not displayed when the into page content, the dialog box defaults to the Compound selector type and dialog box irst appears. Whenever possible, rules should be simpliied to reduce the total amount of code that needs to be downloaded. Enter 5px in the Bottom margin ield.

Note that the new rule was inserted directly after the. Dreamweaver makes it easy to apply classes. Make sure the cursor is lashing in the element and that no text is selected.

P Note: You may need to refresh the page display to see the updated tag selector. When the cursor is inserted in an existing element, Dreamweaver assumes you want to apply the class to the entire element. Choose green from the Class menu in the Property inspector.

Now remove the class. Insert the cursor anywhere in the formatted text. When the cursor is inserted in Design or Code view. Creating custom IDs he CSS id attribute is given the highest speciic weight in CSS styling because it is used to identify unique content on a webpage and therefore should trump all other styling.

Right-click the selector name and choose Edit Selector from the context menu. Note the ID displayed in the Property inspector. Note that the menu has two apparent options: apDiv1 and logo. You can demonstrate this functionality with a simple test. You see this diference as soon as you insert an AP div into a document: Dreamweaver creates a rule for it automatically and assigns it attributes for width, height, position, and z-index, and it then displays these speciications in the Property inspector.

In fact, the special treatment persists even after the rule is created. If you change the id attribute of the AP div in the Property inspector, Dreamweaver will update the name of the rule in the CSS Styles panel at the same time. However, the reverse is not true. If you change the rule name using the style sheet as you did in this lesson , Dreamweaver does not change the ID on the element itself. The program leaves this chore up to you.

What happened to apDiv1? Additionally, as each ID stored in the style sheet is used in your layout, Dreamweaver interactively removes it from the menu to prevent you from accidentally using it a second time. Many designers create these attributes irst and then deine them later, or use them to diferentiate speciic page structures, or to create hyperlink destinations.

Some class and id attributes may never appear in the style sheets or pop-up menus. Examine the available class attributes. Note that all class attributes are available.

You should now know some of the diferences between classes and IDs, as well as how to create, edit, and assign them to elements on your page. Creating an interactive menu By combining descendant selectors, classes, and IDs, you can produce amazing behaviors from seemingly static elements. Videos, Flash animation, and JavaScript behaviors will all perform as they would on the Internet. Observe the behavior and appearance of the menu items. P Note: Rollover refers As the mouse moves over each button, the cursor icon changes to the hand back to the time when pointer, indicating that the menu items are formatted as hyperlinks.

Observe the behavior and appearance of the menu items, if any. Do not select the spaces on either making changes to your side of the word or the vertical bars, or pipes, that separate the words.

If Adding a hash mark in the Link ield creates a hyperlink placeholder and desired, you can change will allow you to create and test the necessary formatting for the horizontal both the content and navigation menu without having to create an actual link.

Note that the text now styling using the Code displays the formatting of a typical text hyperlink. Be sure to select both words in each item before applying the placeholder. Watch for any undesirable side efects. The a:link pseudoclass in many cases is interchangeable with the a selector in CSS rules. However, as you already experienced earlier, a:link is more speciic and may override speciications assigned to the less speciic a selector if both are used in the style sheet.

This speciication is reset whenever the browser cache or history is deleted. When used, the pseudoclasses must be declared in the order as listed above to be efective. Remember, whether declared in the style sheet or not, each state has a set of default formats and behaviors.

When a link has been used, it usually changes color, indicating that you visited that destination earlier. However, in the vertical and horizontal menus, we do not want the links to change their appearance after you click them. To prevent or reset this behavior, you can create a compound rule that will format both states of the link at once.

Type :link to add it at the end of the selector name. Type a comma , and press the spacebar to insert a space. By combining these two selectors into one rule, you are formatting the default properties of both hyperlink states at once.

Position the cursor over the hyperlink placeholders in the horizontal menu. But these hyperlinks have none of the lair of the vertical menu, with its changing background color. As explained, that interactive behavior is controlled by the pseudoclass a:hover.

Save the ile. Select the nav p a:link, state inherits much of its formatting from a nav p a:visited rule in the CSS Styles panel. In most he New CSS Rule dialog box appears with the Compound selector type cases, you only need to declare values for displayed and the text.

Edit the Selector Name to say nav p a:hover, nav p a:active, and click OK. You can create a more interesting efect by add space outside the adding a little padding to the element. Double-click the nav p a:hover, nav p a:active rule to edit it. Luckily, the solution to this problem is quite simple. Have you igured out what you need to do? It can be used to delete a rule property or the entire rule, depending on how it is invoked.

Before using it, note the tooltip that appears when the cursor hovers over it. When the mouse moves over the links, the background color extends ive pixels around the link without shifting. Do you understand why you added the padding to the default hyperlink? By adding padding to the default state, the hover state automatically inherits the extra padding and allows the background color to work as desired, without shifting the text.

To be consistent, the colors used in the site should adhere to the overall site theme. Since you know that the hover state is responsible for creating the interactive link behavior, it should be a simple matter to change the background color in the vertical menu. Observe the names and the order of elements in the tag selector display. Is there an a:hover pseudoclass associated with it? In the Background category, change the background color to By applying diferent colors to each border, you can give the but- tons a 3D appearance.

As in the previous exercise, you irst need to locate the rules formatting the elements. Observe the attributes displayed in the Properties section of the panel. Enter solid, 1px, in the Right border ields. Enter solid, 1px, in the Bottom border ields. Enter solid, 1px, 0C0 in the Left border ields. Before After By adding lighter colors to the top and left and darker colors to the right and bottom, you have created a subtle but efective three-dimensional efect.

Creating faux columns Although multicolumn designs are very popular on the web, HTML and CSS have no built-in commands to produce true column structures in a webpage. Instead, columnar designs—like the one used in the Dreamweaver CSS layouts—are simu- lated by using several types of HTML elements and various formatting techniques, usually combining margins and the loat attribute.

HTML5 and CSS3 can display text in multiple columns, but for the time being, the page layouts themselves will still depend on the older techniques. Unfortunately, these methods have their limitations and downsides.

For example, one of the problems with the layout used in this lesson is getting both columns to display at the same height. Either one column or the other will almost always be shorter. Since the sidebar has a background color, there will be a visible gap at the bottom as content is added to the main page.

Many designers sidestep the issue alto- gether simply by refusing to use background colors. Instead, you will create the efect of a full-height sidebar column by using a back- ground graphic combined with the CSS repeat function. Examine the tag selector display.

Examine its properties. In the Background category, click the Browse button. Select divider. Right-click the button and choose Code Navigator from the context menu. Chances are a margin setting is producing the spacing efect. Select the bottom-margin setting in the Properties section. It makes the process of testing and uploading quick and simple. But an internal style sheet can style only one page. An external style sheet can be linked to any number of pages and, for most web applications, is the normal and preferred worklow.

Dreamweaver provides the means to handle that task quickly and easily. Hold the Shift key P Note: The last style and select the last style. You could also right-click the selected area to access the Move CSS Rules option from the context menu. Click Save. Note at the top of the document window that Dreamweaver now displays the name of the external style sheet in the Related Files interface. More than one style and referenced that have been changed are sheet can be linked to a page.

By creating and attaching style sheets optimized for not automatically saved. For example, the style sheet created and applied in the previous exercises was designed for a typical computer display. Print style sheets often adjust colors to work better for laser and inkjet printers, hide unneeded page elements, or adjust page sizes and layouts to be more suitable for printing.

When the print queue is activated, the printing application checks for a print- media style sheet. If one is present, the relevant CSS rules are taken into account. Displaying the style rendering toolbar If no media-type attribute appears in a style sheet, the browser or web applica- tion assumes that the CSS styles are intended for screen display.

However, you have the ability to switch what media type is rendered in Design view by using the Style Rendering toolbar. Leave it visible for the next exercise. Make sure the site root folder is targeted.

From the Media ield menu, choose print. At the moment, both style sheets are identical. You will modify the print style sheet in the next exercise. Using the print- media style sheet, you can hide unwanted portions of a page. Before you can hide these menus, we need to create a new rule. Delete repeat-y from the Background-repeat ield. Deleting the image reference is not enough. Click the Live view button. Although the Style Rendering toolbar is set to Print, Dreamweaver ignores the print-media styles and renders the page for the screen.

To properly test the page, you have to use the print preview function in an actual browser. P Note: Some 15 Once the page has loaded in the browser, activate print preview. Always test printing the butterly logo and the page borders.

In the Border category, what other styles you if necessary, select the Same For All option in the Style section. Choose none need to modify for from the Top Style ield.

You should know enough now to keep the butterly logo from printing, too. Take a few minutes here and see if you can do it. Whenever you can remove unneeded code from your pages, you should do so. It reduces ile size and allows the pages to download and respond more quickly. You can delete unneeded styles using the CSS Styles panel. Click Yes to delete multiple rules.

In fact, you can remove all the rules that format hyperlink behavior. After deleting any rules, make sure you test the page in the browser and in the print application. Observe the screen display in Design view. Dreamweaver renders the document for the web. Dreamweaver renders the screen using the print style sheet. You have adapted a screen-media style sheet to render a webpage more appropriately in print. You have completed the basic design of the page that will be used as the project template, and you have adapted it to print media.

In the next lesson, you will learn how to convert this layout into a dynamic web template. Observe the design and structure of this page.

Note the mouse icon Dreamweaver displays. Type Get a fresh start with GreenStart to replace the text. Select your default browser. For all intents and purposes, a template-based page is just a normal HTML ile. Creating a template from an existing layout A template is a type of master page from which related child pages are produced. Templates are useful for setting up and maintaining the overall look and feel of a website, while providing a means for quickly and easily producing site content.

A template is diferent from the pages you have already completed; it contains areas that are editable and other areas that are not. Templates enable a workgroup environment where page content can be created and edited by several people on the team, while the web designer is able to control the page design and speciic ele- ments that must remain unchanged.

Or, if you are starting from scratch in this exercise, in the lesson06 folder. Because of their special nature, templates are stored in their own folder, Templates, which Dreamweaver automatically creates at the site root level.

Leave the Description ield empty. If you have more than one ilename, like adding template in a site, a description may be useful. P Note: A dialog box may appear asking about saving the ile without deining editable regions; just click Yes to save anyway.

An untitled dialog box appears asking whether you want to update links. Since the template is saved in a subfolder, updating the links in the code is neces- sary so that they will continue to work properly when you create child pages later. Although the page still looks exactly the same, you can identify a template in two ways. Second, the ile extension is. A template is dynamic, meaning that Dreamweaver maintains a connection to all pages within the site that are derived from it.

Whenever you add or change content within the dynamic regions of the page and save it, Dreamweaver passes those changes to all the child pages automatically, keeping them up to date. Some sections of the page should contain areas where you can insert unique content. Dreamweaver allows you to designate these areas of the page as editable. Inserting editable regions When you irst create a template, Dreamweaver treats all the existing content as part of the master design.

Child pages created from the template would be exact duplicates, except that the content would be locked and uneditable. You get around this barrier by deining editable regions in the template. First, give some thought to which areas of the page should be part of the template and which should be open for editing. Each editable region must have a unique name, but there are no other special conventions.

However, keeping them short and descriptive is a good practice. In Design view, you will see the name in a blue tab above the designated area, identifying it as an editable region.

It contains an P Note: If you are image placeholder and caption that you can customize on each page. But it also building this template using an alternative includes the vertical menu, which will hold the main navigation links for the HTML 4 layout site. Adding a title to each page is a good practice. Each title should relect the speciic content or purpose of the page.

But many designers also append the name of the company or organization to help build more corporate or organizational awareness.

Adding the name in the template will save time typing it in each child page later. P Note: The Update You now have two editable regions, plus an editable title that can be changed as Template Pages dialog needed when you create new child pages using this template. Since there are no template child pages made from this template. Once a child page has open a template in a been created from a template, only the content within the editable regions can be text editor, all the code modiied in the child page.

If you editable regions of the open the page in a text editor, like Notepad or TextEdit, the code is fully editable. Dreamweaver creates a new page based on the template. Note the name of the template ile displayed in the upper-right corner of the document window. Before modifying the page, you should save it.

In the Save As dialog box, navigate to the root folder for your project site. Certain areas, such as the header, menu bar, and footer, are locked and cannot be modiied. Type About Meridien GreenStart to replace the text. Type GreenStart — green awareness in action! Select the placeholder text Insert content here in the MainContent region.

In the Select Image Source dialog box, select shopping. But only areas outside the editable regions will be updated. Typically, it is grouped with the Files panel.

Click the refresh icon if no templates appear in the list. Type GreenStart Home to replace the text. Type Headlines to replace the text. Select the Show Log option at the bottom of the dialog box to display a report detailing which pages were successfully updated and which ones were not.

Observe the page and note any changes.

 
 

Verified by MonsterInsights