Skip to main content

Cascading Style Sheets (CSS)

IntroductionCascading Style Sheets (CSS) are a collection of formatting rules that control the appearance of content in a web page. They are very useful for maintaining a web site since its appearance (controlled by properties of HTML tags) can be managed from just one file. CSS Styles also enhance your site's look, accessibility and reduces file size. Another main advantage is reusability - instead of defining the properties of fonts, backgrounds, borders, bullets, uniform tags, etc. each time you use them you can just assign the corresponding css style in the class property. You can store CSS styles directly in each document or, for more control and flexibility, in an external style sheet.

There are 3 types of CSS Styles:

Custom CSS (Class) styles: create a customized style with the set attributes. These class styles can be applied to any tag.
HTML Tag styles: redefine the formatting for a particular tag, such as . All text formatted with the h1 tag is immediately updated.
Advanced CSS Selector styles: redefine the formatting for:

1.A particular combination of tags (for example, td h2 applies whenever an h2 header appears inside a table cell) and pseudo-class styles (for example, a:link, a:hover, a:visited)

2.A specific ID attribute (for example, #myStyle applies to all tags that contain the attribute-value pair id="myStyle")

Comments

Popular posts from this blog

Recession is ending, Signaling Shift in the Economy

The most hopeful jobs report since last summer suggested Friday that the recession was ending, but the recovery will be marked by a still-rising unemployment rate and tens of thousands of job losses each month until next year. The American economy shed 247,000 jobs last month, the smallest monthly toll since last August, the government reported on Friday. While businesses are expected to keep cutting positions through the rest of the year, the Labor Department’s latest figures offered hopeful signs for the American worker and a measure of relief to the Obama administration, which has faced rising criticism as unemployment blew past its earlier projections. “The trend lines are positive,” said Mark Zandi, chief economist at Moody’s Economy.com. “We are going from massive job losses to just big job losses on our way to a stable job market, I think by next spring.” The length of the workweek increased, albeit slightly, for the first time since August, a sign that businesses were not scali

Which Windows 7 is right for you?

Windows 7 officially will be released to the public on Thursday, and judging by our poll, most readers have already decided to upgrade. For those who haven't, or for those who want a bit more information on just what you're getting with your Windows 7 Starter, Home Premium, Professional, or Ultimate, take a look at the chart and explanation below. . Starter Home Premium Professional Ultimate . 32-bit and 64-bit versions 32-bit only Both Both Both . Maximum physical memory (64-bit mode) N/A 16 GB 192 GB 192 GB . Maximum physical CPUs supported 1 1 2 2 . Home Group (create and join) Join only Yes Yes Yes . Backup and Restore Center Cannot back up to network Cannot back up to network Yes Yes . Multiple monitors No Yes Yes Yes . Fast user switching No Yes Yes Yes . Desktop Wallpaper Changeable No Yes Yes Yes . Desktop Window Manager No Yes Yes Yes . Windows Mobility Center No Yes Yes Yes . Windows Aero No Yes Yes Yes . Multitouch No Yes Yes Yes . Premium Games Included No Yes Yes

The Future of the Desktop

Everything is moving to the cloud. As we enter the third decade of the Web we are seeing an increasing shift from native desktop applications towards Web-hosted clones that run in browsers. For example, a range of products such as Microsoft Office Live , Google Docs , Zoho , ThinkFree , DabbleDB , Basecamp , and many others now provide Web-based alternatives to the full range of familiar desktop office productivity apps. The same is true for an increasing range of enterprise applications, led by companies such as Salesforce.com , and this process seems to be accelerating. In addition, hosted remote storage for individuals and enterprises of all sizes is now widely available and inexpensive. As these trends continue, what will happen to the desktop and where will it live? This is a guest post by Nova Spivack , founder and CEO of Twine. This is the final version of an article Spivack has been working on in his public Twine . Is the desktop of the future going to just be a web-hoste