Before you start, you need a basic understanding of Cascading Style Sheets (CSS) and X/HTML code. This tutorial will NOT teach you those skills.
In a previous tutorial Converting a Theme Based - Shared Border Web to DWT, I showed you how a table based layout using shared borders and the FrontPage navigation bots was converted to a Dynamic Web Template (DWT) using the FrontPage include web component and an external style sheet. Now lets take the same site and convert it into a css positioned layout using Expression Web. The menu will still use an include as it changes with the various sections of the site.
Original Site http://freepages.genealogy.rootsweb.com/~monroenys/
View screenshot of original site
View screenshot of source code for original site (you may have to click on the image to enlarge it)
Analyze the layout of your site and decide if you want the same "look" or a whole new look. The current site uses three tables as well as nested tables for the layout. Draw it out on paper so you know what goes where.
View screenshot with tables/cells outlined in red and green.
Pick a layout that most closely resembles the look you want. The current Monroe County New York site has five main areas, the masthead, the top navigation bar, the side navigation, the content, and the footer. I chose the two-column-left-sidebar with masthead and footer. I set the container width at 90%. Download it to your computer in a newly created web and work on a COPY so that if you mess it up, you can start again. The css is included as an embedded style sheet. I work with it like that and convert to an external style sheet when I have completed the template. Video tutorial on external style sheets
View screenshot of Layout-O-Matic Preview
View screenshot of Layout-O-Matic Source Code
The source code is embedded in the head section and the five main <divs> or sections are coded for you to start. You will need to add another one for the top menu <div>if you want to use one. I also tend to rename the sidebar <div> to left navigation. So what you have now is each section in its own <div>
View screenshot of Layout <div> tags
I first move the styles that have been created for the basic layout to an external sheet and add additional styling for each of the <div> sections as well as the body styles. Your style sheet will now contain the styles for:
Add the styling for your hyperlinks and h1-h6 tags and any others you think you will be using. Don't worry if you don't define all of your styles, you can add new styles as they are needed. You can also add comments to your styles so that you can remember what sections they are for. The style sheet for the layout for the Monroe County NY site.
Once you have created your basic layout, validate both the x/html coding and the css coding and save it as a dynamic web template (dwt). Expression Web DWT fr*ee Ebook by Tina Clarke
Monroe County New York
Final template before converting to dwt
External Style sheet
You are now ready to convert your site from tables to the css positioned layout. How much work that will entail will depend on how much formatting is within your x/html coding. Tips to use to clean up your current page:
Once you get the page cleaned up delete everything between the <body> </body> tags EXCEPT your main content. You can then attach your DWT to the clean content maintaining your current meta tags.
Monroe County New York Revised index page
Gertner Family Page shows how a sectional menu would be used.
My thanks to Linda Gutiérrez for again allowing me to use her Monroe County New York site as an example.
Planning a Genealogy Website 2nd Edition is available as a 42 page EBook in pdf format for you to download. It has been totally revised and updated with new content. The EBook is zipped for faster download. Save it to your desktop, extract the file and it is ready to use.
April 2007 - April 2013
Disclosure: This is an affiliate link, which means that if you visit Bluehost.com through this link and purchase this product, I’ll get a commission.
Microsoft® and FrontPage® and Expression Web® are registered trademarks of Microsoft® Corporation.
Genealogy Computer Tips | Expression Web Tutorials & Templates