| 1. Start up |
We are going to style the rugby.htm page we created last week. Open up Internet Explorer and open up Moveable Type (http://www.earlham.edu/moveabletype/mt.cgi) in order to make a new entry in your Management blog. Give it the Title : Beginning to Style For your convenience, all the question text and things to do are listed in the Blog Questions section at the end of this page. Select all of this text and copy it into the Blog entry you've just made. Complete the assignment as you do the styles with Dreamweaver. Start up Dreamweaver in the normal way. |
| 2. Create a style |
|
| 3. Style a HTML tag | Click the following: Type : • Redefine HTML tag OK |
| 4. Define style attributes. |
In Category : Type
Save file and preview in Netscape. Now take a look at the style codes produced. Copy everything between the <style> ... </style> tags in the <head> section into the blog entry .
Question 2: Does the background stop where the text stops? Does the background stay a fixed width when you move the right side of the browser window in to the center? |
| 5. Define styles for <h2> and <h3> |
Repeat the process to redfine heading tags h2 and h3.
Now notice how all the headings are set to the same style. |
| 6. Padding & borders |
OPTIONAL Now let's tart up the <h2> style. In Design : CSS Styles, double-click on h2 to bring up the edit box. Now choose:
Cool! |
| 7. Style whole page - body |
Q 3a: What has changed about the text?
Q 3b: What happens (if anything)?
Q 3c: What happens now? |
| 8. Styling Image box | We can see that the text is rather cramped up next to the graphic images. Why don't we put some padding around each graphic?
The graphics now have a 5 pixel margin. But this is difficult to see. Let's draw a box border. In Design : CSS Styles, double-click img
Q 4: Does anything show in the DW Design pane? Now copy all the styles in the <style>...</style> section into the Extended Entry pane of your blog entry. |
| 9. Styling Links | If you have time
Now save, and Preview in Netscape. |
| Questions for blog |
Styling <h1> Set text color to White: Copy everything between the <style> ... </style> tags in the <head> section into the blog entry . Question 2: Does the background stop where the text stops? Answer: Style whole page Q 3a: What has changed about the text? Ans: Preview in I.E, View —> Text Size (change) Ans: Preview in Netscape, View —> Text Zoom (change) Ans: Styling Image box Q 4a: Does anything show in the DW Design pane? Preview with Netscape. Q4c : What do you conclude? Now copy all the styles in the <style>...</style> section into the Extended Entry pane of your blog entry. |