Defining Your Site and StructurePackin' Up and Heading OutGetting dropped off at basic can be hard on mom, but let's get going. If you're going to make it through boot camp, there are certain things you've gotta bring with you, and web design is no different. While coffee is always a great start, there are a few other things you need to prep and packnamely, you need to define a Dreamweaver site and organize your structure.Before we start, Dreamweaver should be running, with no open files. With nothing open, you should be looking at Dreamweaver's Start Page. Ready? Okay, let's get started. Defining the SiteIf you recall from Chapter 4, the first thing you have to do before anything else happens is define a site in Dreamweaver. When we looked at this topic before, it was pre-basic training. Now you're actually in the field with your boots on the ground, so you'll see how site definition works with a real site.Before anything else happens, you have to define a site in Dreamweaver.Stowin' gear starts right here:
Creating Site FoldersOnce your site is defined, Dreamweaver's Files panel loads your site (choose Window > Files if you don't have the Files panel open). However, because your site is empty, there isn't a whole lot to look atso we'll create a basic site structure directly in the Files panel. In fact, this site structure will be the same one suggested back in Chapter 3.You can create a site's structure directly in the Files panel.If defining a site is like packing up your gear, then creating the site structure is like getting your footlocker, duffle bag, and backpack readyyou're getting containers ready to hold your site's content. Leave the suede designer suitcases at homethey don't cut it in the army, son!In addition to defining your site structure in Dreamweaver's Files panel, you can define it in Windows Explorer (Windows) or the Finder (Mac). Just make sure to refresh the Files panel when you come back to Dreamweaver.Here's how to create a site structure: Designing Your Site Using Dreamweaver Design FilesThe moment has arrived: It's finally time to create your first page. To get started, you'll use Design Files, which are prebuilt pages that come with Dreamweaver. Each Design File provides a layout, plus sample graphics and text, all ready for you to work withthey're the perfect place to start if you're new to the web design world. There are lots of Design Files to choose from, but we'll keep things simple here by sticking with a straightforward example.Chapter 13.So are you ready to go? Saddle up your gear and fasten that chin strap!Check out dreamweaver-templates.org, where you'll find tons of prebuilt Dreamweaver pages to help you get started.To use a Design File, follow these steps:
| ||||||||||||||||||||||||||||||||
5. | In the Copy Dependent Files dialog box, click Copy to bring all the dependent files into your site.The Files panel will now list your 83 file, but it may not list the dependent files you just copied. That's because the panel needs to be refreshed. | |||||||||||||||||||||||||||||||
6. | Click the Refresh button at the top of the Files panel to have the dependent files appear.![]() | |||||||||||||||||||||||||||||||
7. | On the Document toolbar, highlight the Untitled Document text in the Title field, type a new title, and then press Enter (Windows) or Return (Mac).![]() |
The particular Design File that you've created uses something called layers to help control your page layout. Layers are areas on a page that are isolated from other content, and they make controlling and managing your page layouts really easy. There's lots more to know about layers, so we'll take a closer look at them in the next chapter.Now, with a page created and a title added, you'll want to take a look at how your page and title will appear in your visitor's browser. In a moment, you'll preview your page in your web browser. But first, a little bit of housekeeping is in order.
Starting From Scratch: Creating a Blank PageOften, you won't be starting your work with a Dreamweaver Design File, but creating your pages from scratch instead. Creating a page from scratch may seem a bit daunting at first, because it's hard to know where to start, especially if you're new to web site design. At least with a Design File, you have something to work with. Now you're staring down a page that looks like the Winnipeg frontier in July.But fear not. In the next chapter, you'll find out how to build your own layouts from scratch using Dreamweaver's CSS layers. In the meantime, though, you may want to know how to create a brand-new, blank document.To create a blank page, follow these steps:
Dreamweaver allows you to work with many document types and technologies, but nine times out of ten, you can stick with the Basic Page category and choos89 for the pages you create. |
Organizing Your Files
When you copied those dependent files when you set up your Design File page, Dreamweaver dumped them all into the top level of your site. In other words, you've got some loose gear, so you'd better stop and tie it down.Sort your pages and images directly in Dreamweaver's Files panel.For the Halo Left Nav Design File, you should see one CSS file, six GIF files, and two JPG files. The GIF and JPG files are images, so they should be moved into your img folder. As for the CSS file, that's your Cascading Style Sheet file that's helping to format the text on the page and control the page layout. You can leave it where it is for now. You can sort your pages and images directly in Dreamweaver's Files panel.Here's how to organize your site files:
1. | Ctrl+click (Windows) or Command+click (Mac) each of your GIF and JPG files.![]() |
2. | Drag the files into your img folder.The Update Files dialog box appears. Because the images you're moving are referenced from both the emx _ nav _ left.css file and the 83 file, Dreamweaver asks if you want to update the links.![]() |
3. | In the Update Files Dialog box, click Update. |

Previewing Your Page
Even though Dreamweaver's Design view approximates the way your pages will appear in a browser, it's just not the real thing. So as you build your pagesadding text, graphics, and other page elementsyou'll want to check periodically to see how your pages will appear in an actual web browser.Follow these steps to preview your work:
1. | To preview your page, choose File > Preview in Browser; then select your browser.![]() |
2. | You may be prompted to save. Make sure you do so.Dreamweaver opens the page in your browser, giving you a much clearer idea of what your visitors will see when they view your page. You'll also see the title that you added to your page earlier in the web browser's title bar. |
After you've previewed your page, don't close your browser windowkeep it open in the background as you work in Dreamweaver. Then you can make changes to your page in Dreamweaver, save your page, and flip back to your browser and click the Refresh button to see how your changes turn out.It's always a good idea to preview your work in a web browser to see how it will render for your visitors. In fact, keep your browser running in the background as you're working in Dreamweaver. That way, when you save your page, you can simply flip back to your browser and click the Refresh button to see how things are looking.[View full size image]

![]() | I like to keep the page I'm working on open in my browser as I go. I also sometimes run several browsers simultaneously, all with the same page open, so I can see how the page is being treated by each browser. |
![]() | Previewing your work is an absolute must. Remember: Users don't blame their browsers when a web page doesn't workthey blame the web page. |

Adding Browsers to DreamweaverPopular Web Browsers" in Chapter 3). Then follow these steps to add more browsers to Dreamweaver:
[View full size image] ![]() |