Doncho Minkov Telerik Web Design Course html5course.telerik.com Technical Trainer

Slides:



Advertisements
Similar presentations
LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties-- List properties –Table properties-- Classification properties.
Advertisements

LIS650 lecture 4 Thomas Krichel today CSS Properties –Box properties-- List properties –Table properties-- Classification properties –(Audio.
LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties –List properties –Classification properties Fun with selectors.
CSS Layout Crash Course An Advance CSS Tutorial. Inline vs. Block Many HTML elements have a default display setting of Block. Block elements take up the.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
Client-Side Internet and Web Programming
With CSS, a color is most often specified by: a HEX value - like "#ff0000" an RGB value - like "rgb(255,0,0)" a color name - like "red“ Example h1.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Navigation Bars Level 2 Extended Certificate Unit B12 Doing Business Online.
Today’s objectives Site performance Padding, Margins, Borders
CSS: Class 1 Background Images, Controlling Position of Background Images, Add Padding to Page Elements, Add Borders to Elements on a Page.
CS4370/6370 Web Development Cascading Style Sheets (CSS)
Web Design & Development Cascading Style Sheets (CSS)
TUTORIAL 4: CREATING PAGE LAYOUT WITH CSS Session 4.3.
Using CSS for Page Layout. Types of HTML Elements Block-Level Element –Creates blocks of content e.g. div, h1..h6, p, ul, ol, li, table, form –They start.
Web-based Application Development Lecture 9 February 7, 2006 Anita Raja.
MORE Cascading Style Sheets (The Positioning Model)
Svetlin Nakov Telerik Web Design Course html5course.telerik.com Manager Technical Training
Slide 1 of 83 Table Borders To specify table borders in CSS, use the border property. The example below specifies a black border for table, th, and td.
Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile.
Cascading Style Sheets Billy Toy Cascading Style Sheets Syntax review How to Implement style sheets Background properties Text properties.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Doman’s Sections Information in this presentation includes text and images from
Copyright © Terry Felke-Morris CSS Flow & Positioning 1 Copyright © Terry Felke-Morris.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorials 3 & 4: Working With CSS.
Today’s objectives  Assignment 1  Padding, Margins, Borders  Fluid Layout page  Building accessible Table  Element size with padding and border 
 Website development process  CSS  Javascript.
 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.
LITTLE BOXES Controlling size of boxes Box model for borders, margin and padding Displaying and hiding boxes.
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.
INTRODUCTORY Tutorial 4 Exploring Graphic Elements and Images.
CSS Layout Arrangement and Positioning of the HTML Elements Svetlin Nakov Technical Trainer Software University
Svetlin Nakov Telerik Corporation
>> The “Box” Model. Pre-requisite Create a new project in Netbeans called Week5 Create a new html file and name it box.html Create a new css file and.
CSS Class 2 -Add margins to elements on a page. -Set width and height of elements. - CSS shorthand properties for box model. -Style links. -Style tables.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
THE BOX MODEL Putting layouts together with CSS. The Box Model  How would you describe a box?  Container?  Tags or elements are “containers”  puts.
Web Development & Design Foundations with HTML5 7th Edition
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
CSS Fun damentals The Document Hierarchy Element Relationships The Box Model.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  float & clear  display & visibility.
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.
3.2 Cascading Style Sheets. 2 Positioning Elements Normally, elements are laid out on the page in the order that they are defined in the XHTML document.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ CSS Training.
CSS Layout Arrangement and Positioning of the HTML Elements SoftUni Team Technical Trainers Software University
CONTROLLING Page layout
Tutorial 4 Creating Page Layouts with CSS
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring 2016 CSS Positioning 1.
Doncho Minkov Telerik School Academy schoolacademy.telerik.com Technical Trainer
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 15: Lists.
HTML and Dreamweaver November 11th. Agenda Box Model Displaying and positioning elements – Padding – Margin – Float – Display – Position HTML Demo.
Tutorial #5 Working with the Box Model. Tutorial #4 Review - CSS Create a homework page Final Project Discussion Exam on Blackboard Styling Lists (List-style-type,
Creating Image Based Rollovers with CSS Mike Takahashi Office of Instructional Development.
CS 120: Introduction to Web Programming Lecture 10: Extra Features and Website Design Part 1 Tarik Booker CS 120 California State University, Los Angeles.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 4 Formatting Text and Links.
CSS.
Laying out Elements with CSS
Cascading Style Sheets Boxes
CSS Layouts: Grouping Elements
The Internet 10/25/11 XHTML Tables
CSS Borders and Margins.
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.
Floating and Positioning
CSS Boxes CS 1150 Fall 2016.
Positioning Boxes Using CSS
Presentation transcript:

Doncho Minkov Telerik Web Design Course html5course.telerik.com Technical Trainer

 Borders  Overflow  Margins and Paddings  The Box Model  Width and Height  Other CSS Properties 2

 overflow : defines the behavior of element when content needs more space than you have specified by the size properties or for other reasons. Values:  visible (default) – content spills out of the element  auto - show scrollbars if needed  scroll – always show scrollbars  hidden – any content that cannot fit is clipped 4

Live Demo overflow-rule.html

6

 margin and padding define the spacing around the element  Numerical value, e.g. 10px or -5px  Can be defined for each of the four sides separately - margin-top, padding-left, …  margin is the spacing outside of the border  padding is the spacing between the border and the content  What are collapsing margins? 7

 margin: 5px ;  Sets all four sides to have margin of 5 px;  margin: 10px 20px;  top and bottom to 10px, left and right to 20px ;  margin: 5px 3px 8px;  top 5px, left/right 3px, bottom 8px  margin: 1px 3px 5px 7px;  top, right, bottom, left (clockwise from top)  Same for padding 8

Live Demo margins-paddings-rules.html

10 Margin Border Padding Content

 When using quirks mode (pages with no DOCTYPE or with a HTML 4 Transitional DOCTYPE) 11 Internet Explorer violates the box model standard!

 width – defines numerical value for the width of element, e.g. 200px  height – defines numerical value for the height of element, e.g. 100px  By default the height of an element is defined by its content  Inline elements do not apply height, unless you change their display style 13

Live Demo size-rules.html

For Ordered and Unordered Lists

 List properties are used to define the look and feel of the list items  Mainly to change the list item marker  Normal styles:  List-style-type  Values for : circle, square,…  Values for : upper-roman, lower-alpha  Values for both: none ul { list-style-type:none; } list-style-type:none; }

Live Demo 17

 We can set a image for the bullets of a list  With the property list-style-image  Does not work equally for all browsers  IE puts less space between the bullet and the content  Shorthand property ul { list-style-image: url('images/blue-dot.jpg'); list-style-image: url('images/blue-dot.jpg');} ul { list-style: bullet url('images/blue-dot.jpg'); list-style: bullet url('images/blue-dot.jpg');}

 We can place a background in the left-most  It looks like a image-bullet ul{ list-style-type: none; list-style-type: none; padding: 0px; padding: 0px; margin: 0px; margin: 0px;}li{ background-image: url("images/blue-dot.png"); background-image: url("images/blue-dot.png"); background-repeat: no-repeat; background-repeat: no-repeat; background-position: 0px 5px; background-position: 0px 5px; padding-left: 14px; padding-left: 14px;}

Live Demo

In 5 minutes

 What a menu has?  Some buttons that are arranged from right to left  We need to make it extensible  Create a list  Adding new list item is easy  No worries when disabling the styles

23 ul.menu{ list-style-type: none; list-style-type: none; padding: 0px; padding: 0px; margin: 0px; margin: 0px;}li.menu-item{ float: left; float: left; margin: 10px; margin: 10px;} Menu-example

Live Demo

25

 cursor : specifies the look of the mouse cursor when placed over the element  Values: crosshair, help, pointer, progress, move, hair, col-resize, row- resize, text, wait, copy, drop, and others  white-space – controls the line breaking of text. Value is one of:  nowrap – keeps the text on one line  normal (default) – browser decides whether to brake the lines if needed 26

Live Demo 27

Questions?

29 1. Add a border to all the exercises from the previous presentation (CSS Overview)

30 2. Implement the following video player  Use tables for the layout  List tags for the playlist items and the controls

3. Create a web page that looks like the Windows calculator in Programmer view  It should look exactly the same  Implement hover effects for the buttons  The calculator should not have any functionality 31

32 4. Implement the following with using tables for the layout and CSS for the styles