Simple Website Layout Tutorial Using HTML 5 and CSS 3 Ref: layout-tutorial-html-5-css-3/

Slides:



Advertisements
Similar presentations
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
Advertisements

Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Layout using CSS. Using multiple classes In the head:.important{font-style:italic;}.title{color:red;} In the body: Here's a type of paragraph that is.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Very quick intro HTML and CSS. Sample html A Web Title.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Session 4: CSS Positioning Fall 2006 LIS Web Team.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
Diliev.com & pLOVEdiv.com  DIliev.com.
Class four: the box model and positioning. is an HTML tag which allows you to create an element out of inline text. It doesn’t mean anything! try it:
Unit 20 - Client Side Customisation of Web Pages
Tutorial 4: Creating page layout with css
CIT 256 CSS Divs & Buttons Dr. Beryl Hoffman. CSS for Layout We now can make our own divs to divide up a web page : Header Header Navigation Navigation.
Tutorial 6 Creating Fixed-Width Layouts
Murach’s ASP.NET 3.5/C#, C5© 2008, Mike Murach & Associates, Inc.Slide 1.
4.01 Cascading Style Sheets
PART II dmfd. Digital Media: Communication and DesignF2007 Comments Remember: make a homepage using CSS Next Tuesday: guest lecture on Web.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
CSS Box Model. What is the CSS Box Model? The “Box Model” is a tool we use to lay out our web pages in a number of individual "boxes" or "containers".
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
Creating A Simple Web Page. Step 1- Open Dreamweaver & Create A New Page (File New) and blank.
Interface components is a term for all the supporting elements of a page’s content. Lists Menus Forms Tables This chapter focuses on using proper, valid.
Cascading Style Sheet Basics Pepper. Looking at the HTML See the surrounding tags See head, body, paragraph, header See the ending tags See the list.
ITP 104.  While you can do things like this:  Better to use styles instead:
HTML and CSS- Layout. HTML Layout Frame Table – Block HTML5 layout elements.
Web Development & Design Foundations with XHTML
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Css ( CASCADING STYLE SHEETs ) CSS Box Model. All HTML elements can be considered as boxes. In CSS, the term "box model" is used when talking about design.
Web Foundations WEDNESDAY, OCTOBER 2, 2013 LECTURE 5: INTRODUCTION TO CSS CONTINUED.
 Word doc for you to download › Link at the beginning of class › 10 Questions › Answers to be added inline  Post to Sakai when completed › No resubmits.
 Remember that HTML is just text  Need to point to pictures  Use the img tag  alt: › screen reader › REQUIRED for this class and to validate.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Ch 10 HTML and CSS Web Standards Solutions A Web Standardistas’ Approach.
Lesson 03 // Cascading Style Sheets. CSS Stands for Cascading Style Sheets. We’ll be using a combination of Html and CSS to create websites. CSS is a.
WRA HTML & CSS – BUILDING WEBPAGES. TODAY’S AGENDA Review: external stylesheets Review: transforming a list Intro: the object Intro: the.
Interface Programming 1 Week 3. Interface Programming 1 CALENDAR.
IT Introduction to Website Development Welcome!
CSW131 Steven Battilana 1 CSW 131 – Chapter 6 Laying Out Pages Prepared by Prof. B. for use with Teach Yourself Visually Web Design by Ron Huddleston,
Web Design I Spring 2009 Kevin Cole Gallaudet University
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
CSS – 8 Step Walk Through! Using HTML. You will use 8 steps to transform this page to…
Introduction to CSS Layout
Today’s objectives Layouts | floats Measurement units Type properties
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
CONTROLLING Page layout
CS134 Web Design & Development Web Page Layout Mehmud Abliz.
Stylizing a Navigational Menu Web Design Section 6-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
PERSPECTIVES: TUTORIAL 4 CREATING PAGE LAYOUTS WITH CSS.
INT222 – Internet Fundamentals Week 8: Using New HTML features 1.
Web Page Layout. table vs. div table –Pros: supported by all browsers –Cons: bind style to content; hard to maintain div –Pros: easy to maintain –Cons:
HTML & CSS Contents: the different ways we can use to apply CSS to The HTML documents CSS Colors and Background CSS Fonts CSS Text CSS box model: padding,
NAVIGATION USING HTML TO SET UP THE BASIC STRUCTURE OF A NAV BAR.
CSS Box Model.
Google fonts CSS box model
Advanced CSS & CSS3.
Box model.
Cascading Style Sheets (Layout)
Fixed Positioning.
CSS Box Model.
Grids, Floats & Flex Boxes
Web Design & Development
CSS and Class Tools.
Laying out Elements with CSS
CSS Box Model.
CSS Box Model.
Presentation transcript:

Simple Website Layout Tutorial Using HTML 5 and CSS 3 Ref: layout-tutorial-html-5-css-3/

HTML 5 Tutorial Sample

HTML Structure Your Page title 事前準備:建立一個網頁資料夾 Tools: Notepad++ Steps: 1. 開新檔案 2. 另存新檔 (*.html) 3. Key in html code 4. 執行 – in Firefox(or other browser)

Defining Header Tag HTML 5 Tutorial Sample

Defining Navigation Area Home About Us Feedback Contact

Defining Sidebar Home About Us Feedback Contact

Defining the Footer Anything you want to put in footer goes here.

CSS box model.box { width: 300px; height: 200px; padding: 10px; border: 1px solid #000; margin: 15px; }

style.css * { margin:0; padding:0; } Tools: Notepad++ Steps: 1. 開新檔案 2. 另存新檔 (*.css) 3. Key in css style 4. 執行 – in Firefox(or other browser)

CSS for body { margin:0 auto; width:960px; font-family:Arial, Helvetica, sans-serif; background: url( top left no-repeat; } 這裡可以改圖檔的網址哦 !

CSS for … a { color:#000000; text-shadow:1px 1px 1px #cccccc; } p { text-align: justify; } header, footer, aside, section { display:block; // 以區塊呈現 } h1{ font-size:26px; line-height:40px; padding:18px 0; } left :向左靠。此為預設值。 right :向右靠。 center :排在中央。 justify :兩邊對齊。會自動在文字之間加入空白,使兩邊的 字都對齊邊界。 left :向左靠。此為預設值。 right :向右靠。 center :排在中央。 justify :兩邊對齊。會自動在文字之間加入空白,使兩邊的 字都對齊邊界。

Stylizing the Navigation with CSS3 for Rounded Corners nav { width:77%; height:40px; -moz-border-radius:10px; // for Mozilla Firefox -webkit-border-radius:10px; // for Apple Safari border-radius:10px; //for opera background:#f3f3f3;:#f3f3f3 border:1px solid #cccccc; position:absolute; }

Stylizing the Navigation with CSS3 for Rounded Corners nav ul { list-style-imagelist-style-image:none; list-style-position:outside; list-style-type:none; margin:0 auto; width:940px; }

Stylizing the Navigation with CSS3 for Rounded Corners nav ul li { float:left; } nav ul li a { margin-right:20px; display:block; line-height:40px; }

CSS for aside { display: table-celldisplay: table-cell; width:300px; background:#f3f3f3; }

Stylizing the Footer footer { background:#666666; border-top:1px solid #cccccc; padding:10px; -moz-border-radius-topleft:5px; // for Mozella Firefox -moz-border-radius-topright:5px; // for Mozella Firefox border-radius:5px; // for Opera text-align:center; color:#ffffff; }

為網頁區加入區塊標籤 div Your Page title

為文章區加入區塊標籤 div Your Page title

設定 CSS for id = “content” 與 ”mcontent” #content { display:table; margin-top:40px; } #mcontent { display:table-cell; padding-right:22px; width:620px; }