An Article on Css [By: Megha Shrivastava]

Similar documents
CST 150 Web Design I CSS Review - In-Class Lab

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

Responsive Web Design: Media Types/Media Queries/Fluid Images

CSS. CSS - cascading style sheets CSS - permite separar num documento HTML o conteúdo do estilo. ADI css 1/28

Web Authoring CSS. Module Descriptor

CSS for Page Layout. Key Concepts

Coding HTML Tips, Tricks and Best Practices

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

Web layout guidelines for daughter sites of Scotland s Environment

CSS 101. CSS CODE The code in a style sheet is made up of rules of the following types

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

JJY s Joomla 1.5 Template Design Tutorial:

How To Create A Web Page On A Windows (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook (

Web Design and Development ACS Chapter 9. Page Structure

COMMONWEALTH OF PENNSYLVANIA DEPARTMENT S OF Human Services, INSURANCE, AND AGING

CHAPTER 10. When you complete this chapter, you will be able to:

Create Your own Company s Design Theme

Kentico CMS, 2011 Kentico Software. Contents. Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1

Contents. Downloading the Data Files Centering Page Elements... 6

Web Design with CSS and CSS3. Dr. Jan Stelovsky

Introduction to Adobe Dreamweaver CC

Web Design and Databases WD: Class 7: HTML and CSS Part 3

Using Style Sheets for Consistency

ICE: HTML, CSS, and Validation

{color:blue; font-size: 12px;}

Designing HTML s for Use in the Advanced Editor

Dreamweaver Domain 2: Planning Site Design and Page Layout

Appendix H: Cascading Style Sheets (CSS)

Basic tutorial for Dreamweaver CS5

Web Design I. Spring 2009 Kevin Cole Gallaudet University

What is CSS? Official W3C standard for controlling presentation Style sheets rely on underlying markup structure

MCH Strategic Data Best Practices Review

Outline of CSS: Cascading Style Sheets

Positioning Container Elements

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

Stylesheet or in-line CSS CSS attributes, used in stylesheets or in-line, can define:

Microsoft Expression Web Quickstart Guide

USD WEB SERVICES ADOBE DREAMWEAVER CSS DEVELOPMENT

Further web design: Cascading Style Sheets Practical workbook

Web Developer Jr - Newbie Course

The Essential Guide to HTML Design

Introduction to Web Development

Creating a Resume Webpage with

ADOBE DREAMWEAVER CS3 TUTORIAL

OPENTABLE GROUP SEARCH MODULE GETTING STARTED ADD RESERVATIONS TO YOUR WEBSITE

This document will describe how you can create your own, fully responsive. drag and drop template to use in the creator.

You can use percentages for both page elements and text. Ems are used for text,

Style & Layout in the web: CSS and Bootstrap

Create a Poster Using Publisher

HTML TIPS FOR DESIGNING

A send-a-friend application with ASP Smart Mailer

HTML CSS Basic Structure. HTML Structure [Source Code] CSS Structure [Cascading Styles] DIV or ID Tags and Classes. The BOX MODEL

Level 1 - Clients and Markup

BLACKBOARD 9.1: Text Editor

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

Creating Web Pages with Dreamweaver CS 6 and CSS

Creative Guidelines for s

New Perspectives on Creating Web Pages with HTML. Considerations for Text and Graphical Tables. A Graphical Table. Using Fixed-Width Fonts

Blueball First Class Sandvox Designs v2.0 Works with Sandvox 2+ only!

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

Development Perspective: DIV and CSS HTML layout. Web Design. Lesson 2. Development Perspective: DIV/CSS

WEB DEVELOPMENT IA & IB (893 & 894)

Cascading Style Sheets

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

GUIDE TO CODE KILLER RESPONSIVE S

Using Microsoft Word. Working With Objects

01/42. Lecture notes. html and css

Getting Started with WebSite Tonight

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

Building Your First Drupal 8 Company Site

Dreamweaver and Fireworks MX Integration Brian Hogan

Web Development I & II*

Microsoft Excel 2013 Tutorial

ITNP43: HTML Lecture 4

Using Adobe Dreamweaver CS4 (10.0)

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Web Design in Nvu Workbook 2

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

The Training Floor s. Webmaster s. Bible

Creating Newsletters in Microsoft Word

CSS - Cascading Style Sheets

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

Microsoft Word Tips and Tricks

Interactive Data Visualization for the Web Scott Murray

Make a Joomla Template in 5 Easy Steps A Beginners Guide

Introduction to web development and JavaScript

HTML and CSS. Elliot Davies. April 10th,

Responsive Web Design Creative License

Microsoft Office Word 2007 Training

The Essential Guide to HTML Design

<Insert Picture Here>

COH Web Standardization Style Guide

Caldes CM2: Marketing s Support Document v1.12

Simply download Beepip from and run the file when it arrives at your computer.

Chapter 7 Page Layout Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Microsoft FrontPage 2003

Create Webpages using HTML and CSS

Macromedia Dreamweaver 8 Developer Certification Examination Specification

Web Design & Development - Tutorial 04

Creating Accessible Word Documents

Slicing and Coding the Navigation Background in CSS

Transcription:

An Article on Css [By: Megha Shrivastava]

Cascading Style Sheets Introduction History Cascading Style Sheet Generally Known As CSS. As Name Identifies Used for Giving Style for Webpage.if we break the meaning of CSS. Then we can easily understand the use and need of CSS. Let s we do it below: Cascading: An arrangement of a lightweight fabric in folds falling one over Another in Random or zigzag fashion. Style: Method, or Approach, or Way, or Manner, or Fashion, or Technique, or Mode. Anyone you can take Sheet: Piece, or Page, or Leaf, or Slip, or Pane. Anyone you can take Now together and technically we can say CSS is basically a sheet which gives style to webpage in a cascading manner. Creator of Css is Hakon Wium Lie (working for Opera Software as Chief Technology Officer) and Bert Bos (working for The World Wide Web Consortium on style sheets and math.) authored the original CSS1 Specification. Versions of Css: we have basically three versions of Css. Each Version of CSS CSS 1: An official W3C Recommendation is CSS l, published in December 1996. CSS1 is a simple style sheet mechanism that allows authors and readers to attach style colors and spacing to HTML documents. The CSS1 language is just like a simple English language. One of the fundamental features of CSS is that style sheets cascade; authors can attach a preferred style sheet, while the reader may have a personal style sheet to adjust for human or technological handicaps. Features Supported by CSS1 for: Font Colors Spacing between words, letters, and lines of text. Alignments of text, images, tables and other elements. Margin, border, padding, and positioning for most elements. Unique identification and generic classification of groups of attributes.

CSS 2: A superset of CSS1, CSS 2 was published as a Recommendation in May 1998, included number of new capabilities. Features Supported by CSS2: CSS 3 Absolute Relative Fixed positioning of elements: it allows Font selection, Tables (allow you to define any element as a table element (and all the related table elements)), Bidirectional text, Cursors (now you can define how you want your cursor to respond to various actions.) The concept of media types: allow you to specify different style rules depending upon how your document is going to be displayed. There are many different types you can specify, including: aural, Braille, handheld, screen, print, and TV Paging: it is possible to define how pages should be displayed or printed. This means that you can specify the size of the page to be printed, add things like crop marks and register marks, or how the page should layout on double- and single-sided printings. Aural: if a customer comes to your Web page with a screen reader that is CSS2 enabled, you can define how your page will sound. And this isn't just useful for blind customers. And many more features. Browser Support A superset of CSS1and CSS 2, included number of new capabilities now under construction. To be master of the full power of Cascading Style Sheets, you need to understand the CSS browser support. No other Web-related technology has been more limited by poor browser implementation than Cascading Style Sheets. For understanding why browser is not compatible with Css first we take a look how browser deal with Css document when browser encounters in a Css code it has three choice if it is programmed to understand the functionality, it will work as written

if it is not programmed to understand the functionality, it ignore that code and no response This option is the least desirable the browser can do wrong things this is the main cause of our problems. But page will still be usable and the content accessible. Because we've separated presentation from content, our content should be able to seen but not as stylish way as we designed. Now we take a look in the resigns on incompatibility of web-browsers with Css the major issues are listed below: Launched before Css: some older browser which are launched before Css launched so they totally don t understand the functionality that s why they totally ignore the Css code.e.g. Netscape 3 Some browsers are support only subset of Css means some properties of Css. Example of this kind of browser are Microsoft s WebTV and EmacSpeak. The third category of browser are worst category.the basic difference between older browser and this kind of browser is that the older browser doesn t try to go through in Css they simply avoid the Css but these kind of browser tried and fail horribly. I think this the most dangerous category of browsers. Example of this category is Internet Explorer 3. At the time there are no browsers that completely support all of the Cascading Style Sheets Level 2 specification. But we are improving day by day hopefully in ear future we ll have browsers that completely support Css and we can enjoy working with Css. Advantages of using CSS Reusability: for using Css there is no need to type code again and again, write that in a class and applied that class for particular element.u can also inherit the class with in another class. It time saving also. Faster Download: less code is the resign for faster downloading. Maintenance: for changing the style of a document, u just changes it in Css file in one place.there is no need to change it for each element.

Ways to applying CSS We have four ways to put Css in our document You can create a separate Css file with extension.css. and add this file to your html page <link rel="stylesheet" href="xxx.css" type="text/css"> where xxx.css is your file name. You can also apply Css properties with style tag on a particular element o <p style="color: blue">css Style on a paragraph. </p> You can also Embed CSS style into an HTML document using the 'style' tag o <style type="text/css" > P {color: green ;} h1 {color: red ;} o </style> You can also import another Css file in the <head>...</head> tags of HTML documents that you want to add o @import "xxx.css"; o @import URL ("xxx.css"); After this brief introduction of Css, I just wanted to share some problem which I faced while working in a content management project and I got very simple solution by using Css. Problem I: As I wrote above while working on content management project which was under construction so most of the time we have to design new pages on the site with having same look and field with different functionality so. It s very different to edit page for designing issues. Using Web standards also makes it extremely easy to maintain visual consistency throughout the site. Since pages use the same CSS document for their layout, they are all formatted the same. And I can easily maintain some standard Css files having global standard of the site designs, and individual Css file for each web page. On which we can easily inherit and modify the Css issues with out affecting the global Css. And easily use global issues with local modifications. Use of Css here gives me freedom of design and functionality with consistency, clarity in less timing.

Problem II: The second major problem I faced in this project while working with tables. Problem I faced using <table> tag of HTML is below: Mixes presentational data in with your content. This makes the file sizes of your pages unnecessarily large, as users must download this presentational data for each page they visit. Bandwidth isn t free. This makes redesigns of existing sites and content extremely labor intensive (and expensive). It also makes it extremely hard (and expensive) to maintain visual consistency throughout a site. Table-based pages are also much less accessible to users with disabilities and viewers using cell phones and PDAs to access the Web. Creating table through Css <ul> tag short out all the above problems one by one and make project so much easy to design and flexible to change. Here I paste screen shot of the table which I used.

HTML for this page is: 1. <html> 2. <head> o <link rel="stylesheet" type="text/css href="xxx.css" /> 3. </head> 4. <body> o <div id="tabs" >

5. <dl id="tab-links"> 6. <dt>coloum1</dt> 7. <dt>coloum2</dt> 8. <dt>coloum3</dt> 9. <dt>coloum4</dt> 10. <dt>coloum5</dt> 11. </dl><br> <dl id="tab-links1"> 12. <dt>data 1</dt> 13. <dt>data 2</dt> 14. <dt>data 3</dt> 15. <dt>data 4</dt> 16. <dt>data 5</dt> </dl> <dl id="tab-links1"> 17. <dt>data 6</dt> 18. <dt>data 7</dt> 19. <dt>data 8</dt> 20. <dt>data 9</dt> 21. <dt>data 10</dt> 22. </dl> <dl id="tab-links1"> 23. <dt>data 11</dt> 24. <dt>data 12</dt> 25. <dt>data 13</dt> 26. <dt>data 14</dt> 27. <dt>data 15</dt> 28. </dl> 29. </div> </body> </html> CSS for this page is: 1. #tab-links dt 2. { 3. float: left; 4. padding: 20px; 5. color: white;

6. background-color: #33CCFF; 7. border-right: 1px solid white; 8. border-bottom:1px solid gray; 9. border-top: 5px solid gray; 10. font-size: 18px; 11. font-color: white; 12. width : 58px; } 13. #tab-links1 dt 14. { 15. float: left; 16. padding: 20px; 17. color: #003300; 18. background-color:#ccff99; 19. border-right: 1px solid white; 20. border-bottom: 1px solid white; 21. font-size: 18px; 22. font-color: blue; 23. width : 58px; 24. } 25. #tabs 26. { 27. width: 500px; 28. align: center; 29. } Another web page which I designed using Css.

HTML for this page is: 1. <html> o <head> <link rel="stylesheet" type="text/css"href="tst1.css" /> o </head> o <body bgcolor = "#FFCCFF"> <div id="tabs" > 2. <dl id="tab-links"> 3. <dt >Coloumn1</dt>

4. <dt>coloum1</dt> 5. <dt>coloum2</dt> 6. <dt>colom3</dt> 7. <dt>colom4</dt> 8. <dt>colom5</dt> 9. </dl><br> </div> <div id ="tab-left"> <dt></dt> 10. <dt></dt> 11. <dt></dt> 12. <dt></dt> 13. <dt></dt> 14. <dt></dt> 15. <dt></dt> 16. <dt></dt> 17. <dt></dt> 18. <dt></dt> 19. <dt></dt> 20. <dt></dt> 21. <dt></dt> 22. <dt></dt> 23. <dt></dt> </div> 24. <div id = "footer"> <P> This is footer</p> </div> </body> CSS for this page is #tab-links dt { 1. float: left; 2. padding: 5px; 3. color: white; 4. background-color: #33CCFF;

5. border-right: 2px solid white; 6. border-bottom:1px solid gray; 7. border-top: 5px solid gray; 8. font-size: 18px; 9. font-color: white; 10. width : 145px; } #tab-left dt { 11. padding: 20px; 12. color: white; 13. background-color: gray; 14. border-bottom:2px solid white; 15. font-size: 18px; 16. font-color: white; 17. width : 115px; 18. margin-left: 50cm 19. height :107cm; } #footer { 20. bottom: 0; 21. position: absolute; 22. background-color: #33CCFF; 23. color: #000; 24. width:100%; 25. text-align: center; }