CSS

CSS

Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language. Although most often used to set the visual style of web pages and user interfaces written in HTML and XHTML, the language can be applied to any XML document, including plain XML, SVG and XUL, and is applicable to rendering in speech, or on other media. Along with HTML and JavaScript, CSS is a cornerstone technology used by most websites to create visually engaging webpages, user interfaces for web applications, and user interfaces for many mobile applications.

CSS is designed primarily to enable the separation of document content from document presentation, including aspects such as the layout, colors, and fonts. This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple HTML pages to share formatting by specifying the relevant CSS in a separate .css file, and reduce complexity and repetition in the structural content.

This separation of formatting and content makes it possible to present the same markup page in different styles for different rendering methods, such as on-screen, in print, by voice (when read out by a speech-based browser or screen reader) and on Braille-based, tactile devices. It can also be used to display the web page differently depending on the screen size or device on which it is being viewed. Readers can also specify a different style sheet, such as a CSS file stored on their own computer, to override the one the author has specified.

Changes to the graphic design of a document (or hundreds of documents) can be applied quickly and easily, by editing a few lines in the CSS file they use, rather than by changing markup in the documents.

The CSS specification describes a priority scheme to determine which style rules apply if more than one rule matches against a particular element. In this so-called cascade, priorities (or weights) are calculated and assigned to rules, so that the results are predictable.

The CSS specifications are maintained by the World Wide Web Consortium (W3C). Internet media type (MIME type) text/css is registered for use with CSS by RFC 2318 (March 1998). The W3C operates a free CSS validation service for CSS documents.

Online by J&S Code

CSS3 has evolved into a technology which, when combined with HTML5 and JavaScript, may end up being a Flash-killer. In this article, we will cover the key additions to CSS3. Today, we will start with the layout properties. Even though CSS3 is not supported on all browsers yet, many web developer have started to use some of the techniques that...

Online by J&S Code

CSS or Cascading Stylesheets complete the defining language of design rules for our web. Artists everywhere are using CSS on a daily basis to create, organize, and encode sets of rules for basic website layouts. This has become the most popular language for front-end design and provides amazing abilities with the recent release of CSS3. The language itself has been...

Online by J&S Code

CSS brings 16,777,216 colors to your disposal. They can take the form of a name, an RGB (red/green/blue) value or a hexcode. The following values, to specify full-on as red-as-red-can-be, all produce the same result: red rgb(255,0,0) rgb(100%,0%,0%) #ff0000 #f00 Predefined colour names include aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white and...

Online by J&S Code

Whereas HTML has tags, CSS has selectors. Selectors are the names given to styles in internal and external style sheets. In this Semantic HTML5 section tags we will be concentrating on HTML selectors, which are simply the names of HTML tags and are used to change the style of a specific type of element. For each selector there are “properties”...

Online by J&S Code

It’s time to demonstrate some real-world technical applications of the responsive web design and build a real responsive website. Objectives Let’s start with defining the objectives of this new series, and highlight what you’ll learn. Thanks to this tutorial… You’ll learn how to create a responsive design mockup, taking into account the main features of a website, the users’ needs,...