What you need to know about CSS

In: Web Design

18 Dec 2010


As HTML grew, but it can come about a greater variety of stylistic capabilities include the needs of web developers’ needs. With such capabilities, style sheets became less important, and an external language for defining style attributes was not widely accepted until the development of CSS.

Up problems for the implementation of CSS

Many implementations of CSS are full of inconsistencies, errors and other oddities. The authors have often had to use hacks and solutions to achieve results in all web browsers and platforms.

One of the known bugs CSS bug in Internet Explorer box model, box widths interpreted incorrectly in several versions of the browser, which expects to blocks that appear in most browsers, but are too narrow when viewed in Internet Explorer. The error can be avoided, but not without cost in terms of functionality.

This is one were hundreds of CSS bugs in various versions of Internet Explorer, Netscape, Mozilla, Opera and many factors that have been documented to reduce the readability of documents. The spread of such bugs in implementations CSS has made it difficult for designers to create a consistent look and platforms get.

Currently there are using a strong competition between Mozilla’s Gecko engine, Opera Presto engine layout and the KHTML engine in both Apple’s Safari and Konqueror Linux – each is a leader in various aspects of CSS. Internet Explorer is to make the worst, according to standards of the World Wide Web Consortium’s 2005 adjusted CSS.

Some breakthroughs …

These problems led the W3C standard CSS2 CSS2.1 preisely working as something like a snapshot of current CSS support can be considered work. CSS2 properties which no browser had successfully implemented were dropped, and in some cases defined behaviors were modified to make the standard consistent with the predominant existing implementations ..

What makes style sheets big enough?

and representsStyle a breakthrough for the Web. The separation is not given away more of the content and presentation between HTML and style sheets, the Web must be of the ideal of independence platform, the solid support with his first impulse was popular. Authors may ultimately affecting the presentation of documents without pages unreadable to users

A style sheet consists of style rules that tell a browser how to present to you a document. There are several ways of linking these style rules to your HTML documents, but the easiest way to start is the HTML style element. This article is provided in the document head, and it contains the style rules for the page.

Functionality and the use of CSS

CSS was developed to allow the separation of presentation and structure. Before CSS, the quasi-totality of the presentation of an HTML document on the Internet were included in the HTML, all font colors, styles, background, element alignments, borders and sizes had to be explicitly described, often repeatedly, in the middle of HTML code.

CSS allows authors to move much of this information in a style sheet that is in the HTML code much easier. HTML documents have become much smaller and Web browsers are usually stylesheet cache sites’ CSS. This leads to a reduction of network traffic and page downloads much faster.

For example, the HTML element h2, that is the text it contains a level two positions. It has a low level of importance that h1 headings, but considerably higher than h3 headings. This aspect of the H2 element is structural.

Usually the titles are made in order of size, with h1 as the largest, because the headlines are generally interpreted as a greater priority than smaller ones. The securities are generally even ventured to give them more weight. The H2 element can be shown in bold, larger, and in a font size than h3 but smaller than H1. This aspect of the H2 element is the presentation.

Before CSS document authors who wanted to assign to a particular color, font, size or other characteristics of all securities h2, had to use the HTML font-element for each occurrence of such section.

In addition, CSS can be used with XML, these documents are structured to be a stylistic control over layout, typography, color, and displayed so on for a user agent or a suitable Web browser.

CSS has its share of inconsistencies and

CSS can sometimes be abused, particularly by the author of Web documents. Some developers who are used to HTML documents strictly design may overlook or ignore the properties of CSS. For example, choose an author of this document, which mixes easily with HTML markup, with a presentation structure, only CSS styles in all documents. While this may be outdated an improvement over the use of HTML markup presentation, it suffers from some of the same problems as HTML has mixed this specifically implies a similar amount of maintenance document.

Deviations: CSS vs. programming languages

CSS also shares some of the pitfalls of programming languages. In particular, visit the problem of selecting suitable names for CSS classes and identifiers CSS authors. to choose when attempting to meaningful names for CSS classes, the authors could not associate the name of the class with the desired characteristics of the presentation, for example, a CSS class to text applications could be called concentrated “bigred” which means that in a large red font is rendered.

If such a choice of the name may intuitively to the author of the document, it can lead to problems if the author decides later that the text should focus more fairly green, and the author is left with a CSS class called “bigred” that describes what is green. In this case was a class name would have been appropriate, “he said,” better to describe the purpose or intention of the class rather than the appearance of items in this category.

In a programming language, such a diversion similar to using a variable name “five” for a variable that contains the value 5, but if the value changes of variables to 7, means the name is more appropriate.

CSS shortly

CSS is used by authors and readers of web pages to define colors, fonts, layout and other aspects of the presentation of documents. It is mainly due to the separation of document structure (written in HTML or similar markup language) permit from the document presentation (written in CSS) equipment.

This separation provides a number of advantages, including content accessibility, greater flexibility and control in the presentation of the characteristics and reduce the structural complexity of the content. CSS is also the location, type of document in other rendering methods, such as (if they read from a speech-based browser or screen reader) on the screen in the press, by voice and Braille-based haptic devices.

CSS allows complete and total control over the design of a hypertext document. The only way, in a way that people are excited to show what he can really be, once the reins in the hands of those who create in a position to beauty from structure, are shown placed.

Related Post

Other Post

Incoming Search Term from visitor


Advertise

Comment Form

You must be logged in to post a comment.

About this site

Fnhsite.com post about variety Search Engine Optimalization and Website Design information.

Sponsor