Mary Shuboy

Main Site Root Folder

About the main site root folder: this is where all of the work is kept. It is important that this stays in one place so dream weaver knows where it is. The folder consists of items such as images, downloads, and css. The Site Root Folder is key to your projects success. Computers are very sensitive to the placement of files. Every time you link a file to an HTML page, code is written identifying the location of that file on your web page. If the file is later moved, the computer will not find the linked file and some of your web page will not function. For these reasons, please commit to keeping the Main Site Root Folder in one place and never moving it. It can be saved to any form of storage, as long as Dreamweaver can easily see the folder when it opens. I suggest a flash drive. It is also very wise practice to backup this folder on another form of storage in case the original is lost. (You do not want to build your site over from scratch!) Next, if you are using the SVSU Lab Computers every time you turn on Dreamweaver, you will have to identify where the Site Root Folder is. I have named the Site Root Folder we are using for the Work Site, the Main Site Root Folder.

HTML Sandwich

About the HTML Sandwich notes: the html sandwich consists of he document type at the top, the metadata is in the top of the sandwhich with the html. The body makes up the inside of the sandwich and html make up the bottom of it. - HTML is linear - It goes from top to bottom - It includes four sections 1. doctype 2. html 3. head 4. body The HTML Sandwich Structure - Flag in top of sandwich; begins with Doctype HTML - Top bun of sandwich; begins the html - Head portion / Meta data head /head This is known as simply metadata. - Fillings of sandwich; Body, which is what is visible on the page body /body - Bottom bun of sandwich; ends with /html

HTML Structure and Content

About the HTML Structure and Content: html content and structure is the images and the text. It can consist of the header, body, main, and footer. Margins and padding are also used in the structure. 1) WATER (no CSS - content fills screen - no controls) 2) FLOAT (using CSS with float left, and width persentages to organize layout) 3) GRID (new CSS - verticle columns of equal width) 4) FLEXBOX (new CSS - verticle columns of unequal widths)

CSS = Style

About the CSS = Style: there are three ways to use css. You can make a seperate css sheet, put the css inside the head section of html or, apply it in line. In css the last guy wins. Type phase is normally part of the style / css. float: Almost every structural element on your web page will have a float attribute. If you forget to add this, the element will probably not end up on the screen where you intend it to be. I again strongly suggest you always use float: left. When you do so, all elements respond to one another and it's easier to make corrections. width: Use percentages (%) for widths. Always think about 100% being the magic number. If a space is shared by several elements inside a main element, figure out how to make the grand total of the elements equal 100%. Do remember that padding and margins contribute to the overall width. Some experimenting and math is required. height: Normally "auto" is the best setting here (meaning you don't have to use this property at all!) If you don't include it (thus, setting it to default height: auto) then the element will expand or contract with the content inside the element. More text/pictures equals a bigger box, less content equals a smaller box. On the rare occasion when you want to set a strict height, do so in pixels (ex. height: 100px). This elements height will probably have to be adjusted in media screens to work properly on different devices. background: You can set an image or a color as background. You can do this more specifically with… background-color: aliceblue; (or any other color). or background-image: url("../images/Review.jpg"); (of course you can set the background image to be any form of properly formatted pixel image) padding: (Remember: Padding pushes in) margin: (Remember: Margin marches out) boarder: (this applies to all four sides) border-top: 5px solid red; border-left: 24px solid blue; border-right: 10px solid blue; border-bottom: 10px solid blue; max-width: There are times this is very useful. For example you don't want your elements holding text to become so wide that you have a line-length error (remember the 72 character rule?). Although it is more difficult to control we can still experiment, setting our max-width and confirming in a browser that the lines aren't too long. Another possible problem is that others are viewing your website with the text displayed larger or smaller than you are setting it to. So again, we can't control all the variables, but we can make some general perammiters. max-height: display: pseudo-classes: Uncommon CSS flex: Can be used to make columns of equal height, but often interferes with other standard CSS attributes. Rounded Corners: (not approved by World Wide Web Consortium yet, but approved by browsers. So we have to use different code for the browsers) Rounded Corners - Approach 1: All corners the same border-radius: 10px; /* future proofing */ -moz-border-radius: 10px; -webkit-border-radius: 10px; Rounded Corners - Approach 2: Corners different border-radius: 10px 20px 30px 0; /* future proofing */ -moz-border-radius: 10px 20px 30px 0; -webkit-border-radius: 10px 20px 30px 0; opacity: Rare position: z-index: outline:

Mary Shuboy - Step 1