Applying style to content
Video: Applying style to contentOnce you've all the text content you want on the page, you can then start to style it, including changing the font. Maybe I want to change the background. Maybe I want to put an image in the background. Well, that's really the next step is applying a basic styling to this page. And this index_html page I can apply all of those appearance styles to it using the Page Properties button. So in the Properties panel down at the bottom, if I just click Page Properties, it will open up that Page Properties dialog box.
Viewers: in countries Watching now:
Creating a First Web Site with Dreamweaver CS4 shows the basics of doing just that—building a first web site. Adobe Certified Instructor Paul Trani walks through the important steps of creating a web site from concept to publishing, using Dreamweaver CS4. He teaches how to create basic web pages, add text and image content, use Cascading Style Sheets for design and layout, create a photo gallery, and even check the final site for browser compatibility. He also demonstrates how to create a contact form to encourage viewer feedback on the site. Exercise files accompany the course.
- Exploring the Dreamweaver workspace for first-time users
- Linking to external web pages and sites
- Improving the presentation of text and images on the site
- Building a layout using Cascading Style Sheets
- Making navigation reusable across multiple pages
- Displaying content using the Accordion widget
- Creating a contact form and sending data from it
- Making the final site search engine-friendly
Applying style to content
Once you've all the text content you want on the page, you can then start to style it, including changing the font. Maybe I want to change the background. Maybe I want to put an image in the background. Well, that's really the next step is applying a basic styling to this page. And this index_html page I can apply all of those appearance styles to it using the Page Properties button. So in the Properties panel down at the bottom, if I just click Page Properties, it will open up that Page Properties dialog box.
And the first thing I'd like to do in the Appearance section is change the page font. So I can change the page font to any sort of system font and again these are the standard fonts that 90+% of the computers out there have and in this case I'm going to change it to an Arial or Helvetica. So I can change the page font, I can change the color of the text, I can even change the Background color, and I'll change it to a medium blue and click Apply, just to see how that's going to look.
And that makes a world of difference in and of itself with just those three changes. But again, I can take this to the max level by adding abackground image. So that's what I want to do. I'm going to click Browse and I'm going to go into the images folder and I'm going to select this bkgdHome.jpg. So I'm going to put this big JPEG in the background, choose it, and I'm going to click Apply. Oh yes. In fact let me move that out of the way. You can see the page is really coming together now.
That's looking really good. Okay. I'm going to select OK. Now if I select this text here, you can see that this header text has a format of Heading 1. So I want to keep that in mind because if I want to change this I can change that. Even if I wanted to change this line underneath it, I can always change the format to say for instance Heading 2 and it applies that sort of basic style to it.
So I bring that up so you've an understanding of how the hierarchy of information should be. Again your first header line, your secondary line is Heading 2 and if I go back into Page Properties, I can change those styles using the Headings CSS. So again in here I can change the page font. I can change the Heading size, so the size of that text, say for instance, Heading 1 could be 24 pixels.
I can change Heading 2 to be about 18 and I'll click Apply and we can see how that changes. And again, you can adjust that all you want. In fact, I'll go about 28 there and click Apply. But you can see how I can modify the headings as well in the Page Properties. I can even go in here and change the color for Heading 2, a gold, and click Apply, something like that. And lastly, what I want to do is I want to focus on the link color.
I'm going to select OK. And right here, you can see that this text is blue. And the link color really isn't going to work for this page. So I want to go ahead and change that. So again, Page Properties and I'm going to the Links CSS and in here again, I can choose the font. I can choose the link color, so this is what I'm going to do. I'm going to choose the link color and maybe I want to change that to white. I'll click Apply. That changes the link color to white.
I can change the rollover color, so when you move your mouse over any one of these links, it's going to change to a different color. In this case, again, I'm going to change it to that orange color. The visited, for the pages I've already visited, maybe I want to change that to a medium gray. And then active is when you click on the link it's going to change to a different color. So I'm going to go to a little more drastic here. I'm going to go to a red. When you rollover the text would turn orange. When you click on it, it will turn red briefly and then if you ever view a visited link, it's going to be in the medium gray.
So I'm going to select OK and now let's see that in action. So in order to do that, I'm going to go to File, down to Preview in Browser and I'm going to preview this in Firefox. It does ask me to save the file. I'll just go ahead and say Save. Sure enough, when I roll over those links, I can see that it changes the color and even when I click on a link, it's going to change it to red. So I'm holding down the mouse button and then when it goes there, obviously it's going to go to that page, which currently doesn't have any styles.
So you can see that Rollover, I get a different color. If I click, it's going to go to that page. And this is really good comparison showing you what a page looks like for adding a style and then what it could look like after. And if I go back in Dreamweaver, again, all this is done through your Page Properties. You're allowed to and able to effectively define a whole new style to this page through one dialog box.
Find answers to the most frequently asked questions about Creating a First Web Site with Dreamweaver CS4 .
Here are the FAQs that matched your search "" :
- Q: After creating the website as instructed in the tutorial, and uploading the site to the internet, the website does not seem to work for every browser. How can one make sure that the website will work for all browsers?
- A: An important step when creating a website is to check for browser compatibility. To do so in Dreamweaver, go to Window > Results > Browser Compatibility. Click the Play icon in the left corner then go to Settings and target the browsers you¹re after. Then hit the Play button to run it and check the page that’s open. If there’s an issue, best-case scenario, it should show you what the issue is and link out to a solution. Worst case is that it’s a pretty unique issue, in which case further troubleshooting would be needed.
- Q: The background image is tiling, instead of being one large image. How is this corrected in Dreamweaver?
- A: This can be corrected by using a larger image, something around 1024x768 that will fill up most of the monitor space. The issue is that the background image is just too small. Note that tiling of the background image can be turned off in the CSS Panel, but that would only result in a single small image. So it’s better to just use a larger image for the background.
- Q: When trying to import SWF content, I get a message: “This file is outside the root folder of site ‘xxxxx’ and may not be accessible when you publish the site.” What is causing this?
- A: Make sure your SWF file (and all files you put on a page) are located in your local site. Basically make sure you set up a local site in the site panel. It will ask where to put your local site on your computer. Just make sure you SWF is in that folder and you won’t get that error.
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.