Advanced CSS.

Slides:



Advertisements
Similar presentations
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
Advertisements

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.
CSS provides a way to stray away from the traditional methods of using tables to lay out pages. Success with this technique depends on understanding of.
WEB DESIGN Multimedia and Web. Today’s Objectives  Quick review selector types  Layout and positioning.
Web Design Transparent Backgrounds. Why : Allow text to appear clearly above a graphic background image that still can be seen in the background. Without.
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".
Basics of Web Design 1 Copyright © 2016 Pearson Education, Inc., Hoboken NJ.
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.
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.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 11: Deeper into CSS - Spring 2011.
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
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.
Web Foundations MONDAY, OCTOBER 7, 2013 LECTURE 7: CSS LINK COLORS, INTERMEDIATE CSS.
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.
Cascading Style Sheets (CSS) Part II IT210: Web-based IT.
CONTROLLING Page layout
Advanced CSS. Display  Hiding an element can be done in two ways  display:none  Element is hidden and will no longer take up space on the page  Can.
CS134 Web Design & Development Web Page Layout Mehmud Abliz.
Loops Pretest var i=1, sum=0; while (i
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:
NAVIGATION USING HTML TO SET UP THE BASIC STRUCTURE OF A NAV BAR.
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 solve a problem External.
CSS Crash Course By Daniel D'Agostino First drafted: 19 th June 2007 Written on: 19 th October 2008.
Semester - Review.
WebD Introduction to CSS By Manik Rastogi.
CSS Box Model.
CSS HTML and website development.
Website Development Cascading Style Sheets
CSS: Cascading Style Sheets
Cascading Style Sheet.
Table Styling.
Table Styling.
Semester - Review.
Google fonts CSS box model
CSS Layouts: Grouping Elements
Table Styling.
Unit 3 - Review.
CSS Cascading Style Sheets Brief Introduction
CSS3 Style of the HTML document CSS2+New Specifications Differences
Advanced CSS & CSS3.
Creating Your Book Review Web Site
Lecture 3 Sarsenova Zhibek.
Box model.
Cascading Style Sheets (Layout)
Chapter 7 Page Layout Basics Key Concepts
COMP 101 Review.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Table CSS Create a new CSS called tablestyle.CSS Green Background
The Website Foundation
CSS Box Model.
MORE Cascading Style Sheets (The Positioning Model)
Cascading Style Sheets
The Website Foundation
Grids, Floats & Flex Boxes
محمد احمدی نیا CSS محمد احمدی نیا
Book / movie report Web design.
Web Design & Development
Box Model.
CSS and Class Tools.
Laying out Elements with CSS
Gradients.
CSS Box Model.
CSS Box Model.
Gradients.
Cascading Style Sheets
Kanida Sinmai CSS – Cascading Style Sheets Kanida Sinmai
Cascading Style Sheets
Presentation transcript:

Advanced CSS

CSS Backgrounds You already know: background-color:#BBDDFF; Some of you know how to use a picture: background-image:url('paper.gif'); You may know how to control if it repeats: background-repeat:repeat-x; or repeat-y, no-repeat Or if it’s fixed and doesn’t scroll: background-attachment:fixed;

CSS Backgrounds How about background-position? body{ background-image:url('img_tree.png'); background-repeat:no-repeat; background-position:right top; margin-right:300px; }

CSS Links Get rid of underline to make the page look cleaner (except on hover/active): a:link {text-decoration:none;} a:visited {text-decoration:none;} a:hover {text-decoration:underline;} a:active {text-decoration:underline;}

CSS Tables Borders for the inside/outside of all tables: table, th, td { border: 1px solid black; } And collapse the borders to a single line: table { border-collapse:collapse; }

CSS Positioning Lock an element so it’s not affected by scrolling: #mydiv { position:absolute; left:100px; top:150px; }

CSS Overflow Show scroll bars if the content doesn’t fit within a DIV: div.scroll { background-color:#00FFFF; width:100px; height:100px; overflow:scroll; }

CSS Transparency/Opacity .whitebox   {   width:400px;   height:180px;   margin:30px 50px;   background-color:#ffffff;   border:1px solid black;   opacity:0.6;   }