1 CS428 Web Engineering Lecture 10 Images, Tables, Forms, Border-Radius (CSS – V)

Slides:



Advertisements
Similar presentations
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Advertisements

Chapter 6 More CSS Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Very quick intro HTML and CSS. Sample html A Web Title.
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.
Floating Elements CS380.
กระบวนวิชา 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.
Unit 20 - Client Side Customisation of Web Pages
Week 9 Using the Box Properties. 9-2 The CSS Visual Formatting Model Describes how the element content boxes should be displayed by the browser –Based.
Tutorial 4: Creating page layout with css
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts 1.
Text Properties, Line Box, CSS. Text Properties Properties related to the display of text. Text-align : left, right, center I like FSU!
CSS to Know And this is just the beginning. What to What?  Tags = regular HTML  Ids = #id, only one hashtag per page  Class =.class, many as you want.
Tutorial #8 – Creating Data Tables. Tutorial #6 Review – Layouts Two Column Fixed Width, Three Column Fixed Width Class VS. ID Container Universal Selector.
Lecture 16: SQL and HTML tables
Web Design Transparent Backgrounds. Why : Allow text to appear clearly above a graphic background image that still can be seen in the background. Without.
Bayu Priyambadha, S.Kom. for long documents, you can even have links to other locations in that same document  … where ident is a variable for identifying.
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.
LING 408/508: Programming for Linguists
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
Technologies for web publishing Ing. Václav Freylich Lecture 7.
By Tuyet Le & Madhura Pitale. Seating Chart with CSS3.
CSS The Definitive Guide Chapter 8.  Allows one to define borders for  paragraphs  headings  divs  anchors  images  and more.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 2.
CHAPTER 10 Formatting Tables and Forms. Using Tables the Right Way  HTML and XHTML have a LOT of tags dedicated to building a table  If you have only.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
CHAPTER 3 CSS & CSS3 อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
COMP213 – Web Interface Design
CSS Table Properties.
LITTLE BOXES Controlling size of boxes Box model for borders, margin and padding Displaying and hiding boxes.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Tutorial 5: Tables Session OBJECTIVES Marking row groups Marking column groups Setting the table frame Specifying the table’s internal gridlines.
INTRODUCTORY Tutorial 4 Exploring Graphic Elements and Images.
Part 4 Introduction to CSS. CSS Table Table Borders table, td, th { border:1px solid black; } Firstname Lastname Bader Ali Paul Manuel The example below.
Creating Your Own Webpage COSC Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.
Floating Elements CS The CSS float property (reference) 2 img.headericon { float: right; width: 130px; } CSS  removed from normal document flow;
Cascading Style Sheets Eugenia Fernandez IUPUI. CSS Purpose CSS allow you to specify the style in which your XML elements are displayed. CSS were originally.
26 HTML Tables … surround table … surround each row … surround each cell … like, but bold and centered by default (for table headings) … table title No.
1 CS428 Web Engineering Lecture 08 Border, Margin, Padding … (CSS - III)
LING 408/508: Programming for Linguists Lecture 10 September 30 th.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
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.
CSS – Cascading Style Sheets
CSS properties Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan 1.
Tutorial 4 Creating Page Layouts with CSS
CSE 154 LECTURE 4: PAGE SECTIONS AND THE CSS BOX MODEL.
CSS Table Styling. Up to this point, as we haven't applied any CSS styling to our tables, our example tables have not been too pleasing to the eye. CSS.
Chapter 7.  Change body and link styles  Create a drop-down menu  Change color and font styles in the menu  Create a pop-up effect using CSS  Utilize.
CS 120: Introduction to Web Programming Lecture 10: Extra Features and Website Design Part 1 Tarik Booker CS 120 California State University, Los Angeles.
1 CS428 Web Engineering Lecture 07 Font, Text & Background (CSS - II)
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,
CSS.
CSS Layouts CH 13.
CSS Layouts: Grouping Elements
Creating Your Own Webpage
Chapter 6 More CSS Basics Key Concepts
Style Sheet Create a new CSS called Cameras.CSS TD Web Authoring
Table CSS Create a new CSS called tablestyle.CSS Green Background
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Cascading Style Sheets
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
How to use the CSS box model for spacing, borders, and backgrounds
Principles of Web Design 5th Edition
CS3220 Web and Internet Programming More CSS
CS3220 Web and Internet Programming More CSS
CS3220 Web and Internet Programming More CSS
Presentation transcript:

1 CS428 Web Engineering Lecture 10 Images, Tables, Forms, Border-Radius (CSS – V)

CSS Images CSS play a good role to control image display, you can set following image properties:  The border property is used to set the border of an image.  The height property is used to set the height of an image.  The width property is used to set the width of an image.  The opacity property is used to set the opacity of an image.

3 border Output: Possible values: can have a value in length or in %, pt, px

4 height <img style=“border: 1pt solid red; height: 200px;” src=“images/css.gif” /> Output: Possible values: %, pt, px

5 width <img style=“border: 1pt solid red; width: 200px;” src=“images/css.gif” /> Output: Possible values: %, pt, px

opacity The opacity property is used to create transparency of an element or an image. The opacity value is a floating point number from 0.0 to 1.0. A lower value makes element more transparent. The opacity value of 0 defines the element as fully transparent.

Example img { opacity: 0.4; }

Regular Image: The same image with transparency: 8

Rounded Corners: border-radius The border radius property lets you create rounded corners. #box1 { border: 2px solid red; width: 150px; height: 70px; border-radius: 25px; } HTML5 & CSS3

10

11 border-top-left-radius #box1 { border: 2px solid red; width: 150px; height: 70px; border-top-left-radius: 5px; } HTML5 & CSS3 Output: Possible values: number in pixels

12 border-top-right-radius #box1 { border: 2px solid red; width: 150px; height: 70px; border-top-right-radius: 10px; } HTML5 & CSS3 Output: Possible values: number in pixels

13 border-bottom-right-radius #box1 { border: 2px solid red; width: 150px; height: 70px; border-bottom-right-radius: 15px; } HTML5 & CSS3 Output: Possible values: number in pixels

14 border-bottom-left-radius #box1 { border: 2px solid red; width: 150px; height: 70px; border-bottom-left-radius: 40px; } HTML5 & CSS3 Output: Possible values: number in pixels

15 Forms: input[type=control] You can also change the form appearance. Input[type=control] is used to change the default form appearance.

16 input[type=submit] input[type=submit] { color: #FF00CC; background-color: blue; border-radius: 10px; font-weight: bold; } Output:

CSS Tables You can set following table properties:  The border property is used to set the border of a table.  The border-collapse property sets whether the table borders are collapsed into a single border or separated.  The width property is used to set the width of a table.  The height property is used to set the height of a table.

–The text-align property is set the horizontal alignment. –The vertical-align property is set the vertical alignment. –The padding property is used to control the border and contents in a table. –The color property is set the text color. –The background-color property is set the background color of a table. 18

border table, th, td { border: 1px solid black; } Comany Country The Big Cheeze USA Island Trading UK 19

border-collapse property The border-collapse property sets whether the table borders are collapsed into a single border or separated: Possible values: collapse, separate 20

border-collapse table { border-collapse: collapse; } table, th, td { border: 1px solid black; } Comany Country The Big Cheeze USA Island Trading UK 21

22 width & height property table { width: 50%; } th { height: 50px; }

text-align table { width: 50%; } td { text-align: right; }

vertical-align table { width: 50%; } td { height: 50px; vertical-align: middle; }

padding table { width: 50%; } th { height: 50px; padding: 15px; }

color table { width: 50%; } th { height: 50px; background-color: green; color: white; }

caption-side table { caption-side: bottom; } th { height: 50px; background-color: green; color: white; } Possible values: left, right, top and bottom