Skip to main content

Posts

Showing posts with the label CSS

Cascading Style Sheets (CSS) Properties for HTML elements

CSS properties are used to control the visual display of the html elements. The following are generally used properties to html documents.  Properties:     border     border-collapse     border-color     border-spacing     background     background-color     border-style     border-bottom     border-left     border-top     border-right     background-image     background-repeat     border-top-color     border-right-color     border-bottom-color     min-height     min-width     max-height     max-width     border-left-style     border-top-width     border-right-width     border-bottom-width     border-left-width     border-width     bottom     direction     display...

Working with Cascading Style Sheets (CSS) writing Styles to html document

First we have to create a html document. and write the html elements and add contents. Then Create the Cascading Style Sheets and write the style rules to the html document. The following example will help to know how to create html with css. <html> <head> <title>Fresherstarget or your title</title> <style>   p   {   color: red;   } </style> </head> <body> <p>The Sample Document for check color</p> </body> </html> The above example is very very basic and you can start with this. Thanks

How CSS Style Sheets are Working ?

Without HTML it wont work. We can use Cascading Style Sheets in HTML document for interactivity, coloring, aligning contents in HTML pages and styling. It’s easy: 1. Start to write a HTML document(using tables or div tags). 2. Assign class or id to html elements 3. Write Style rules for the html elements, how you would like to display the perticular elements. 4. Attach the style sheet to the html document. When the browser displays the document, it follows your styles for rendering elements. How is it Please comment

Cascading Style Sheets (CSS) Introduction

Cascading Style Sheets is the W3C web standards for defining the presentation of the documents written s in HTML. Presentations refers to the way the document is displayed to the user whether on a computer, a mobile display, printed on paper. CSS is a separate language with its separate own syntax. The Uses of CSS Language 1) layout controls:  You can control the html layouts using CSS. That means width of the page and height of the page etc,. 2) Less work: You can change the display or appearance of an entire page or site by editing one style sheet or more. 3) Accessible sites: When all display are handled by CSS, you can markup content, making it accessible for nonvisual or mobile display. 4) browser support: Current Browser can supports CSS 2 and many parts of CSS 3.