Dreamweaver: Create A Basic Page & Text FormattingText Format and Creating Basic Pages Now it\'s time to begin working on your first page. Before you begin with the page it\'s best to define properties of the page, such as Colors and the Title. This can be done with the Page Properties dialog.The Page Properties can be found in the Modify menu, or with the keyboard shortcut Command-J or CTRL-J. Title: container tag.The title is what appears on the top of the browser bar. For this page the title is \'Dreamweaver Tutorial: Part 3\'. The title is also what appears inside the In the \'Background Image\' field you can specify a tiling image to use for your background. One can specify a Background color in the \'Background\' field. This number must be a hexadecimal value or one of the standard colors. If you are unsure about the hexadecimal value, you can pick from Dreamweaver\'s Web Safe Color Palette.You can also specify colors for Text, Links, Visited Links and Active Links in the corresponding fields. The Left Margin, Top Margin, Margin Width and Margin Height fields are all used to determine how far the body of the page is from the edge of the browser. This must be a number in pixels.As you can tell if you use 0 for all your margins, there no spacing between the edges of the browser window and your content. The Document Encoding field is where you select the Character Set for your page. If your page is in English you should leave this at the default - Western (Latin1). Colors in Dreamweaver Dreamweaver handles Hexadecimal values and HTML standard color names:
Dreamweaver also offers many of its own built-in tools to allow
color selection to be much easier. These can be accessed from many places within
the program by clicking on this button:
This brings up the standard palette as well as a color picker. The color picker can be used to pick a color from elsewhere on the screen, including other open windows. All one must do is click on a color and that will become the active color for the element selected. There are other tools available, such as the Color Dialog. This can be accessed from the Text Menu by choosing Color. It can also be accessed from the Color Palette: Click on the circled icon to access the Color Dialog Box. From this dialog one can choose from all the colors in the bar (most of them are web safe). RGB values can also be entered. This is useful when working with graphics programs such as Photoshop or Fireworks. These colors can also be added to the \'Custom Colors\' so that they may be used again. To do this simply select an empty (white) box under Custom colors, choose your color and click on the \'Add to Custom Colors\' button. This color can now be used from the Color Dialog anytime. Text Format In Dreamweaver text is divided into several different formats, all of which can be changed from the Properties toolbar. There is the standard paragraph (default), headings from 1-6 and preformatted text. You can change the format by choosing one of the options from the pop-up list of the Properties toolbar. These formats apply to the entire paragraph, so you can change the format without having to highlight the text. You also cannot have more than one format in the same paragraph. There are 6 different headings available, numbered 1 through 6. 1 is the largest and 6 the smallest. Here is an example of all 6 headings. Heading 1Heading 2Heading 3Heading 4Heading 5Heading 6The last option is preformatted text. When this is chosen text can be modified exactly as if it were in a text editor. The drawback is that it is displayed in a monotype font such as Courier. # of Pork and Beans in stock Text Formatting In Dreamweaver most text is formatted with the Properties Toolbar and the Text menu. We will discuss how to format text as one would in a word processor with the Properties toolbar.
Formatting text with the Properties toolbar is very similar to using a Word
Processor. You can apply the change to a specific line of text by
highlighting the area you wish to change, then applying the formatting. If
you change the formatting of an area that isn\'t highlighted, the change is
applied to all text that follows, until it is changed again.
Text can easily be bolded or italicized by clicking on the respective B (CTRL-B) and I (CTRL-I) buttons. Text can be sized by using the \'Size\' pop-up list of the Properties toolbar. Many other programs such as word processors and page layout programs scale text using \'points.\' Not so in HTML. There are 7 sizes of text in HTML, with 7 being the highest. To change text size in Dreamweaver, you can choose the size from the menu or you can enter a number in the box. You can also scale text using + (plus) and - (minus) symbols. If you would like your text to be a certain number lower than the default size, you can choose -1. If you want it a little larger, you can choose +1. This is different from using absolute numbers, such as 2 or 3, because the relative point is the default font size. Some users might decide to change their default size to a larger font. Using -1 would scale it down from the size they have specified. You can change the color of text by using the Text Color field. Here you can enter a hexadecimal color code (or one of the default colors) in the field or you can pick from the color picker. Choosing Fonts We all want to use our favorite fonts in our HTML documents. Unfortunately one of the limitations of the web is that a font will only be displayed if the user has it installed on his/her computer. With all the different operating systems and platforms on the web, there is no guarantee that the font one chooses will be what is used to display the page. HTML allows one to give a list of fonts. If the first font is available, that font is used. If not, the browser checks for the next font on the list, and so on until a font has been found. If no fonts are found that match, the browser will render the text using the default font of the computer. This can be Times New Roman on some configurations, Geneva on others, and Courier on others. Dreamweaver also allows one to choose a list of fonts and has plenty \'safe\' combinations built in. To choose the font for your text to be displayed, you may enter it in the Font field on the Properties toolbar or you can choose from Dreamweaver\'s list of \'safe\' fonts: As you can see, each selection has 2 or 3 fonts listed. These are all fonts that are similar in nature but are common on different platforms. For example, Arial is a sans-serif font that is common on PC platforms. Helvetica is very similar to Arial, but is more popular on Mac platforms. If a web designer chooses \'Arial, Helvetica; sans-serif\' he or she can be reasonable confident that the font will appear as intended. There is also a list for Serif fonts such as Times New Roman, and monotype fonts such as Courier. If one uses these selections, they should appear similarly to how they were intended. Using the presets is great for offering a little customization, but isn\'t always enough. Everyone has their favorite fonts, most of which are usually unique. What if one decided they wanted to display their text in Optima or Tekton? This is where the Edit Font List dialog can be used. With this dialog you can either add more font choices to the list of presets or create your own. The Font List box at the top of the dialog are fonts already in the preset list. The \'Chosen Fonts\' box are fonts you have chosen for the new listing. The \'Available Fonts\' are fonts that are installed on your computer. There is also a text field below the Available Fonts box where you can manually type in a font name. To add fonts to the \'Chosen Fonts\' you can either find them from the \'Available Fonts\' list and double click on them or click once and then click on the arrow pointing to the left. You can also enter a name into the Text Field and hit enter when you are finished. Once you have selected a list of fonts, you can simply click on OK and it is now a part of Dreamweaver. If you want to use a unique font, such as Comic Sans you might wish to find some fonts that are similar first. For example, Tekton is a similar font on the Macintosh platform. So you may wish to choose Comic Sans first, Tekton second, and perhaps a standard font such as Arial or Helvetica third. Aligning Paragraphs Text can be aligned within Dreamweaver from the Properties Toolbar. You can choose Left, Center, or Right aligned. When you choose an alignment, it is applied to the entire paragraph you are working with. You can change alignment if you start a new paragraph. Paragraphs can be created in Dreamweaver by hitting the Enter (or Return) key in the document. This will create a blank line and will then create a new paragraph. You can also create a line break in Dreamweaver by hitting
SHIFT-ENTER. This is the equivalent of the You cannot change alignment of a single line by using a line break. Other Text Features There is plenty else you can do with text within Dreamweaver. For example, you can Indent or Outdent Text using 2 buttons on the Toolbar: The button pointing to the left will Outdent the text. The button pointing to the right will Indent the text. Here is a sample:
This text is now normal. The ability to Indent and Outdent gives the author more flexibility of presenting the content. If you are quoting out of a book, it\'s a good idea to indent once. Using indents also makes the document a little easier to read. Note: The HTML tag used to indent text is the tag. |