+ All Categories
Home > Documents > BUILDING YOUR SITE

BUILDING YOUR SITE

Date post: 25-Feb-2016
Category:
Upload: neva
View: 28 times
Download: 0 times
Share this document with a friend
Description:
BUILDING YOUR SITE. ART340. Coding Your Mockup. To build your site, you will slice your images and use HTML & CSS to piece your site together. Code must be semantic and standards compliant (W3C). Shiny, Happy People. Welcome. This is my website. I hope you like it. Optimizing Images. - PowerPoint PPT Presentation
Popular Tags:
20
BUILDING YOUR SITE ART340
Transcript
Page 1: BUILDING YOUR SITE

BUILDING YOUR SITEART340

Page 2: BUILDING YOUR SITE

Coding Your Mockup To build your site, you will slice your images and use

HTML & CSS to piece your site together. Code must be semantic and standards compliant

(W3C).

Shiny, Happy People

Welcome.

This is my website. I hope you like it.

Page 3: BUILDING YOUR SITE

Optimizing Images Why Optimize?

Believe it or not, some people still use modem connections.

Not to mention, there are users that will access your site from other devices such as mobile phones, where connection and processing speeds are not as fast as desktop computers.

Page 4: BUILDING YOUR SITE

Slicing the images To build your site, there are design elements

(imagery) that will need to be created from the original design file.

These can include background images, logos, header images, text-based images do not use web fonts, special bullets, icons, etc.

Images can be sliced in Photoshop & Illustrator using the slice tool.

Page 5: BUILDING YOUR SITE

Download Time Factors that affect download

time: connection speed, computer speed, web server activity, traffic on Internet

Currently, the average connection speed in the U.S. is somewhere between 5-10mbps.

Download Time Calculator: http://cdn.articulate.com/images/blogs/wom/uploads/2008/02/downloadcalc.html

Test Your Connection Speed: http://www.speedtest.net

Page 6: BUILDING YOUR SITE

How to Optimize Images When saving images for the web:

Go to File > Save for Web & Devices Select the file type from the pop-up menu.

Use jpegs, pngs or gifs dependent on your image. Once your selections are made, click save and name

the file. All images will be saved in the selected folder.

Page 7: BUILDING YOUR SITE

Transparent Images Two types of transparency:

Binary, or index color (Both GIF & PNG): Pixels are either completely transparent or opaque.

Alpha (PNG): Image can have 254 levels of transparency. Not supported in IE6 or earlier

When would we want to use a GIF? PNG? JPEG?

Page 8: BUILDING YOUR SITE

Large background images Disable all other layers. Draw a large marquee around the design that

includes the entire element. Keep in mind that larger browsers will be able to see

past the image. Save for web.

Balance file size and quality.

Page 9: BUILDING YOUR SITE

Repeating background images For bg images that repeat, or simple gradient

backgrounds, a smaller slice can be made. In this example, the bg image would repeat-x on the

body. Set a bg color on the

body, as well.

Page 10: BUILDING YOUR SITE

Setting up your documents1. Make a folder in your web folder named “project2.” 2. Inside that folder make another folder named “images.”3. Save the .css file to your project folder. Rename to

sample.css.4. Set up your site definition in Dreamweaver.5. Create a new HTML document.6. Browse to attach stylesheet.7. Save your document as index.html.8. Copy & Paste HTML into index.html. Save.9. Ready to begin!

Page 11: BUILDING YOUR SITE

Building the HTML structure For most sites, you would set up your container divs

or markup. #container: wraps around everything #header: contains the logo or header image #navigation: unordered list #content: bulk of page content #columns #footer

For CSS Zen Garden, the HTML structure is provided.

Page 12: BUILDING YOUR SITE

CSS Zen Garden Structure #container

#intro #pageHeader #quickSummary #preamble

#supportingText #explanation #participation #benefits #requirements #footer

#linkList #linkList2

#lselect #larchives #lresources

Page 13: BUILDING YOUR SITE

#container

#intro

#supportText

#linkList

Page 15: BUILDING YOUR SITE

Liquid vs. Fixed When building a site, you will have to determine

whether you will build your site in a liquid or a fixed layout. Liquid Layouts: Adaptable and Flexible. Fills the

browser window. Content reflows when the browser window and columns resize.

Fixed Layouts: Pixel Perfect. Remains at the pixel width specified by the designer.

Page 16: BUILDING YOUR SITE

Liquid or Fluid Layouts Resizes and adapt to the changing

window size. Example: http

://htmlandcssbook.com/code-samples/chapter-15/liquid-layout.html

Image Source: http://matthewjamestaylor.com/blog/perfect-3-column-dimensions.gif

Page 17: BUILDING YOUR SITE

Fixed-width Layouts Keep the content of a particular

width, measured in pixels, regardless of the window size.

Has a wrapper or container that everything fits inside.

At most, 960px-1050px for layout width.

Example: http://htmlandcssbook.com/code-samples/chapter-15/fixed-width-layout.html

Image Source: http://www.cs.unh.edu/cit/502/resource/tutorials/fall09/sdrolet/ima

ges/Fixed_Layout.jpg

Page 18: BUILDING YOUR SITE

Floating and Positioning Once your layout is determined, you need to decide

how your columns will be positioned next to each other.

Floating moves an element to the left or right, and the following elements wrap around it. Can require the markup to be in a specific order.

Positioning is a way to specify the exact location of an element on page. Take markup out of the original flow.

Page 19: BUILDING YOUR SITE

CSS Reset As a designer, you want ultimate control over the

elements in your layout. Used to reset browser margins and padding:

html, body, div, h6, h5, h4, h3, h2, h1, p, ul, li{margin: 0;padding: 0; }

Page 20: BUILDING YOUR SITE

Where to start? Look at your layout. Look at the HTML markup. It can be helpful to find another site that uses a

similar layout & deconstruct. Tip: Print out your mockups and highlight the

sections on your mockup as they correspond to the HTML markup.

Begin!


Recommended