Advanced Topics Lecture 8 Rachel A Ober

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Chapter 1: Introduction. Contents Whats New in Dreamweaver CS4? The Dreamweaver CS4 Interface Setting Up a Site Creating a Web Page Adding Text to Your.
HTML Tags and Their Functions
Chapter 3 – Web Design Tables & Page Layout
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Hypertext markup language.  Client asks for an html file  Server returns the html file  Client parses and displays it  This display is what most people.
Cascading Style Sheets
Today CSS HTML A project.
Project 8 Creating Style Sheets.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
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:
กระบวนวิชา 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.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Basic use of columns is to organize a list of navigation links down the left or right side of the page next to a main content area. (Fig. 1) Another common.
Web-based Application Development Lecture 9 February 7, 2006 Anita Raja.
© Anselm SpoerriInfo + Web Tech Course Information Technologies Info + Web Tech Course Anselm Spoerri PhD (MIT) Rutgers University
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
The Power of Tables They aren't just for sitting stuff on anymore...
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
Computer Sciences Department
Creating Tables in a Web Site Using an External Style Sheet
Structure Content Presentation Semantics.
Creating a Simple Page: HTML Overview
Structure Content Presentation Semantics.
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Dreamweaver -- CSS. Dreamweaver -- MX New icons are added in MX Most of the features commonly used in web design, and are same as FrontPage. New feature.
DAT602 Database Application Development Lecture 14 HTML.
DIY Web Development Hand Code Your Own Page (For Free!) by Bryan Brown, Indiana University Bloomington SLIS.
Basic Responsive Design Techniques. Let’s take a look at this basic layout. It has a header and two columns of text, in a box that is centered on the.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Assignment 2 Due November 4, 1:30pm. Website You are creating a website for a fictional business which must sell some sort of product You can create any.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
IDs versus Classes Naming Your Tags for Maximum Functionality.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Rev. September 14, 2010—All HTML code brought to XHTML standards. Reference for CIS127 and.
CSS. HTML: Looking Back HTML dictates order, structure, and function Does very little to specify layout or visual rendering.
WEB DESIGN AND PROGRAMMING Advanced CSS Techniques.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Definition CSS “Short for Cascading Style Sheets, a new feature being added to HTML that gives both Web site developers and users more control over how.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
Tables Web Authoring. This kind of a table THISIs aTABLE THISIs aTABLE THISIs aTABLE THISIs aTABLE.
Interface Programming 1 Week 3. Interface Programming 1 CALENDAR.
CHAPTER 5 Working with Data Tables and Inline Frames.
Web Design Part I. Click Menu Site to create a new site root.
Tutorial 3 Adding and Formatting Text with CSS Styles.
11/12/2015 Box Model Reed Crouch. 11/12/2015  HTML elements can be considered as boxes. In CSS, the term "box model" is used when referring to layout.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Review of HTML and CSS A (very) brief review of some key fundamentals to be aware of in IT-238.
Positioning Objects with CSS and Tables
CSS IS A LANGUAGE DESIGNED TO TARGET HTML ELEMENTS AND NODES BY TYPE, CLASS, ID AND VALUE, AND CHANGE THEIR VALUES CSS – change how your HTML looks and.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, we’ll cover:  Brief CSS review  Creating sections with the tag  Creating inline.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
Cascading Style Sheets for layout
Google fonts CSS box model
CSS Layouts: Grouping Elements
Advanced CSS BIS1523 – Lecture 20.
Using Cascading Style Sheets Module B: CSS Structure
Box model.
CSS.
CSS Box Model.
In Class Programming BIS1523 – Lecture 11.
Training & Development
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
CSS and Class Tools.
Presentation transcript:

Advanced Topics Lecture 8 Rachel A Ober

Tips to Writing Styled Documents Use tags already available to you: Use tags when you want to use a header and a when you want to use a paragraph. Don't over use or when you can use something else. Watch margins on objects Margins add to the over space the object takes up on the page. Even though you give the width to be 300px, if you add a 5px margin, the width changes to 310px.

More Tips Design for flexibility If you use absolute positioned elements, it's hard to design other elements around it. Don't rely on people's browsers all being the same Test in other browsers. Also, make sure to set default colors because, for example, not all browsers use white as their background!

More Tips A trick I use when I am trying to position elements is to set a border around it with a “loud” color. This way you can see a definitive boundary to your elements and can move them to where you see fit. Many people will tell you not to use hacks. Why use hacks when you can do something right the first time? Don't base your design on hacks!

Secrets of CSS Remember when we were trying to make a table but all the cells had spacing in between them? Get rid of them with this: border-collapse As we've mentioned in class, you can get something to center by making its left and right margins set to “auto” table { margin: auto 10px; }

Separating Content and Design As presented before, the purpose of CSS is to separate design from content. Even though you can put styles within HTML, it is a much better idea to keep external CSS files. It is also possible to put content in your CSS files using the :before and :after pseudo- elements, but like above, it is suggested to keep design and style separate, but it is possible to integrate the two.

Interesting Ways to Integrate JavaScript and CSS Use span blocks set to hidden When a form field is clicked on, have JavaScript turn the style to visible so a box is shown with the “message.” When the field is deselected, have JavaScript turn the visibility back to “hidden.” Example _hints_with_css_and.html _hints_with_css_and.html

“Pull Quotes” You can use JS and CSS to create “pull quotes” like you see in magazines or newspaper articles. First, wrap the text you want to pull quote in a. Use JS to copy the element in the span and insert a new blockquote somewhere on the page. Example /automatic_pullquotes_with_javascript_and_css / /automatic_pullquotes_with_javascript_and_css /

Rounded Corners A big obsession with Web 2.0 design is rounded corners. Many people have their own ways of doing it. Adding extra tags Using JavaScript Using Images

Rounded Corners The problem with some of these techniques is that they aren't following the rule of separating style from content. In some methods, designers use the tag (because it is quicker to type and is shorter therefore making a smaller document) This kind of defeats the purpose of using CSS in the first place (IMHO) s_borders/ s_borders/

Nifty Corners Nifty Corners uses JavaScript combined with CSS to assign an id to the tag you want to round the corners of. It is a good alternative because it doesn't add superfluous tags to your HTML. Also saves file size!

Other Tools of the Trade Color Picker There are some good sites out there that offer users the ability to create color schemes. Graphics Program Of course you can achieve a really great design without images, but using images is fun too! Validators Always, always validate your code, be it HTML, XHTML or CSS. Run it against the W3C validators to make sure it complies with the standards.

Other Tools of the Trade Plugins for Firefox Firebug – Edit and debug CSS, HTML and JS Colorzilla – Lets you pick out colors on the web WebDeveloper – Has a whole mess of cool toys. It's a pretty big extension though so it will slow down your power using but it is a priceless tool whenever you are in the midsts of writing a web site.

Good Links I have a bunch of links on my del.icio.us account under “css” Web Developer Handbook And of course, W3CSchools who have excellent tools and tutorials