End User Computing More on HTML and CSS Sujana Jyothi Department of Computer Science

Slides:



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

CSS Styling CSS Box Model & CS110: Computer Science and the Internet.
Cascading Style Sheets
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.
Today CSS HTML A project.
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
Very quick intro HTML and CSS. Sample html A Web Title.
FORMATTING IN CONTEXT. FOLLOW UPS ANCHOR POINTS MUST BE UNIQUE  If you have more than one, how does it know where to go?  They can be repeated across.
CSS Menus and Rollovers. Agenda foil Separating style from content 3 pages in one file Rollovers in CSS Horizontal drop-downs Vertical drop-downs.
Session 4: CSS Positioning Fall 2006 LIS Web Team.
SM5312 week 11: CSS Menus & Navigation Bars1 An Introduction to Cascading Style Sheets CSS Menus and Navigation Bars Nick Foxall.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
Navigation Bars Level 2 Extended Certificate Unit B12 Doing Business Online.
1 Dreamweaver CS5 intermediate class by Cookie Setton Build a CSS website WITHOUT TABLES Just when you thought you were starting to understand HTML coding,
CSW131 Steven Battilana 1 CSW 131 – Chapter 5 (More) Advanced CSS Prepared by Prof. B. for use with Teach Yourself Visually Web Design by Ron Huddleston,
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Diliev.com & pLOVEdiv.com  DIliev.com.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
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
Lecture Cascading Style Sheets (CSS) Internal Style Sheets Classes.
Art 128 Interface Programming 1 In-class Presentation Week 11B.
Web Page Creation Part II ST: Introduction to Web Interface Design Prof. Angela Guercio.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
INFSCI  Start with a skeleton outline: copy and paste:  Warning sometimes copy and paste of quote marks from PowerPoint doesn’t work correctly.
Eat Your Words! Creating webpage Layout. CONTENT The Layout of a Webpage HEADER FOOTER Each of these sections represents a ‘div’ (or divider). By linking.
CSS – Presentation of Information. Types of Style Sheets External Embedded h1{color:red; font-family: Arial;} Inline Text is here.
CSS The Definitive Guide Chapter 8.  Allows one to define borders for  paragraphs  headings  divs  anchors  images  and more.
MCS 270 Cascading Style Sheets (CSS) Gustavus Adolphus College.
Cascading Style Sheets Class 1, Lecture 1 Rachel A Ober
IDs versus Classes Naming Your Tags for Maximum Functionality.
WRT235: Writing in Electronic Environments CSS Classes, IDs, divs.
 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.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
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.
Moving Boxes The CSS ‘box’ Model and moving elements around the page 1.
Web Design I Spring 2009 Kevin Cole Gallaudet University
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
Lecture 2: Cascading Style Sheets (CSS) Instructor: Dr. M. Anwar Hossain.
HTML and CSS HTML is used for the content of web pages CSS is used for the style of the web pages You are going to learn how they can be combined to create.
Coding with HTML/CSS Quiz { } Play as a PowerPoint slideshow for answers.
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
BEGINNER WEB DESIGN. INTRODUCTION Vocabulary Design Tools of the Trade HTML CSS.
Review First – on your own... Go to Day 5 Grab the contents of position review file Place in DW Add styles to recreate – get something close to
Cascading Style Sheet (CSS) SAMPLE IT133 Pengembangan Web.
Nesting and Floating. Nesting and Floating Elements To make our page content appear the way we want, and to make the best use of screen space, we can.
End User Computing Applied CSS: Building our course homepage Sujana Jyothi Department of Computer Science
 Add one element at a time  If it doesn’t do what you want, › Delete it › DON’T just keep piling on more items.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, we’ll cover:  Brief CSS review  Creating sections with the tag  Creating inline.
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,
Unit 3 - Review. Topics 1. Tag, Attribute, Value 2. CSS Rule Syntax + link 3. Categories of Selectors 4. Inline vs Block Tags 5. CSS Layout 6. CSS Box.
NAVIGATION USING HTML TO SET UP THE BASIC STRUCTURE OF A NAV BAR.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
CCT260H - Christopher Evan Jones
Nesting and Floating.
CSS Layouts: Positioning and Navbars
Nesting and Floating.
Breaking the mold with CSS
Cascading Style Sheets (Layout)
Styles and the Box Model
Float Property Elements that seem to “float" on the right or left side of either the browser window or another element are often configured using.
BUILDING A WEBSITE 7.4.3: Applying a Layout.
Nesting and Floating.
Web Programming and Design
Presentation transcript:

End User Computing More on HTML and CSS Sujana Jyothi Department of Computer Science

Recap Monday 1 st February 2010: Introduction to HTML Wednesday 3 rd February 2010: Introduction to simple styling using CSS Today: Positioning objects in a webpage and how to divide a page into sections. End User Computing

Positioning in CSS If you want a picture or a section to be on the left or right hand side of a page, you set it to “float” right (or left). To further control positioning you can use “margins”. Let’s try an example End User Computing

Float Example Task: Move an image to the left of the page and have some text displayed alongside it. img { float:left; } End User Computing

Float Example End User Computing img { float:right; margin: 20px 15px 15px 15px; } Margin: T-R-B-L (trouble)‏ Move an image to the right hand side of the page and have text displayed alongside: it. Simple_html

Float Example Let us begin to build our page: Put a background colour Some more text A list Start_example.html Example.css

Menu Example End User Computing A Menu is generally just a list of links li { margin: 0px 0px -5px -40px; padding: 4px 3px 4px 12px; width: 180px; color: #4169E1; list-style-type: none; } Margin: T-R-B-L (trouble)‏

Menu Example End User Computing li { display: block; margin: 0px 0px -5px -40px; padding: 4px 3px 4px 12px; width: 180px; color: #4169E1; border-bottom: 1px solid #efefef; list-style-type: none; }

Dividing a page into sections End User Computing There are HTML tags called div's which are used to divide a page into different sections: Example text This makes development go much faster and allows you to create a template of each webpage very easily. These div's can then be styled in CSS to be positioned in a certain area of the page or to have a certain width or height and so on.

Dividing a page into sections End User Computing Header Footer Content Left Menu

In HTML End User Computing..... Hi I'm..... Home.... Holography.... Home...

The “id” End User Computing Sections of your webpage can be styled in CSS, this is done using id's. Each section can reference an id which is styled in CSS but each id must be UNIQUE in the CSS. So for example you can style links in a menu with blue text, and links in the main content page with orange text. Or you can have a paragraph with normal sized text and a paragraph with large text.

id Example End User Computing This is a normal paragraph with normal text This is a paragraph where the font size has been changed to a larger text. p { font-size: 12px; } p#LargeIntro { font-size: 24px; }

Develop a page from scratch: Part 1 End User Computing So now I'm going to show you how to develop a simple page from scratch using CSS and HTML. If at any stage you don't understand what I've done or want a more thorough explanation just stop me and ask.

Dividing the site End User Computing Final_example.html example.css

Dividing the site End User Computing Inside the we will have the division: 1) main Inside main we will have the divisions: i) header ii) content iii) menu example.html example.css

Final result End User Computing

Recap End User Computing -- 7 th February 2008 Ok, so we've covered today some of the ways you can position things with CSS (using floats/margins/padding). We've seen how a page can be broken down into sections using divisions This was a lot to cover in one lecture, on Monday we will be going through some more advanced CSS and using this we will finish off creating a homepage.