Search Tutorials:

Tuesday, September 30, 2008

CSS Float Property

CSS Floating Columns


CSS Floating Elements


CSS Clear Float


CSS Floated Layout


Definition
The float property sets where an image or a text will appear in another element.

Inherited:
No

Note: If there is too little space on a line for the floating element, it will jump down on the next line, and continue until a line has enough space.

Note: Content, background, and borders of inline elements should go in front of the float. Background and borders of a block element should go behind the float, but the content of the block element should go in front of the float.

JavaScript Syntax
CSS properties can also be dynamically changed with a JavaScript.

Scripting Syntax: object.style.cssFloat="left"

In our HTML DOM tutorial you can find more details about the cssFloat property.
In our HTML DOM tutorial you can also find a full Style Object Reference.

Possible Values
left: The image or text moves to the left in the parent element
right: The image or text moves to the right in the parent element
none: Default. The image or the text will be displayed just where it occurs in the text

Source: http://www.w3schools.com/css/pr_class_float.asp

Social Bookmarking

Monday, September 29, 2008

CSS Navigation

CSS Web Designers Intro: Chapter 8


CSS Removing Bullets


CSS Image List


CSS Vertical Navigation


CSS Text Navigation


CSS Tab Navigation


Social Bookmarking

CSS Background Graphics

CSS Web Designers Intro: Chapter 7


CSS Adding Background


CSS Background Repeat


CSS Background Position


CSS Attachment


CSS Background Properties
The CSS background properties allow you to control the background color of an element, set an image as the background, repeat a background image vertically or horizontally, and position an image on a page.

Browser support: IE: Internet Explorer, F: Firefox, N: Netscape.

W3C: The number in the "W3C" column indicates in which CSS recommendation the property is defined (CSS1 or CSS2).

background
A shorthand property for setting all background properties in one declaration

background-attachment
Sets whether a background image is fixed or scrolls with the rest of the page

background-color
Sets the background color of an element

background-image
Sets an image as the background

background-position
Sets the starting position of a background image

background-repeat
Sets if/how a background image will be repeated

Source: http://www.w3schools.com/css/css_background.asp

Social Bookmarking

CSS Color and Contrast

CSS Web Designers Intro: Chapter 6


CSS Color Values


CSS Link Color


CSS Multiple Links


CSS Depth of Field


CSS Color Blind


CSS Contrast


Social Bookmarking

Wednesday, September 24, 2008

How CSS Is Applied

CSS Web Designers Intro: Chapter 3


CSS Browser Style


CSS User Style


CSS Inline Style


CSS Embedded Style


CSS Linked Style


CSS Imported Style


CSS Inheritance Style


How to Insert a Style Sheet
When a browser reads a style sheet, it will format the document according to it. There are three ways of inserting a style sheet:

External Style Sheet
An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one file. Each page must link to the style sheet using the <link> tag. The <link> tag goes inside the head section:

<head>
<link rel="stylesheet" type="text/css" href="mystyle.css" />
</head>


Internal Style Sheet
An internal style sheet should be used when a single document has a unique style. You define internal styles in the head section by using the <style> tag, like this:

<head>
<style type="text/css">
hr {color: sienna}
p {margin-left: 20px}
body {background-image: url("images/back40.gif")}
</style>
</head>


Inline Styles
An inline style loses many of the advantages of style sheets by mixing content with presentation. Use this method sparingly, such as when a style is to be applied to a single occurrence of an element.

To use inline styles you use the style attribute in the relevant tag. The style attribute can contain any CSS property. The example shows how to change the color and the left margin of a paragraph:

<p style="color: sienna; margin-left: 20px">
This is a paragraph
</p>


Multiple Style Sheets
If some properties have been set for the same selector in different style sheets, the values will be inherited from the more specific style sheet.

For example, an external style sheet has these properties for the h3 selector:

h3
{
color: red;
text-align: left;
font-size: 8pt
}


And an internal style sheet has these properties for the h3 selector:

h3
{
text-align: right;
font-size: 20pt
}


If the page with the internal style sheet also links to the external style sheet the properties for h3 will be:

color: red;
text-align: right;
font-size: 20pt


The color is inherited from the external style sheet and the text-alignment and the font-size is replaced by the internal style sheet.

Source: http://www.w3schools.com/css/css_howto.asp


Social Bookmarking

Tuesday, September 23, 2008

CSS Beginning with Markup

CSS Web Designers Intro: Chapter 2


CSS Introduction: XHTML Documents


CSS Semantic Elements


CSS Validation


What Is XHTML?
1. XHTML stands for EXtensible HyperText Markup Language
2. XHTML is aimed to replace HTML
3. XHTML is almost identical to HTML 4.01
4. XHTML is a stricter and cleaner version of HTML
5. XHTML is HTML defined as an XML application XHTML is a W3C Recommendation

XHTML: Why is Validation Important
Why you should make sure that your web pages are validated? Thats exactly what we’re going to answer in this tutorial. Hopefully you’ve heard off XHTML and HTML. HTML is the older coding and XHTML is the new generation of HTML. This is the web standard set by the World Wide Web Consortium (W3C) they set standards for the internet. This tutorial will use references to W3 quite often, so if you haven’t heard of them till now you might want to consider checking them out and seeing the work they do.

What is Validation?
Validation is a process of checking your documents against a formal Standard, such as guidelines published by the World Wide Web Consortium (W3C) for HTML and XML-derived Web pages. Consider Validation like Microsoft word for a moment. Imagine you’ve wrote a 5000 words essay and any spelling mistakes made would mark you down for that essay. To make sure this doesn’t happen you would use a spell checker to check grammar and spelling, you could also check it yourself, but a spell checker is more accurate. Validation is like a spell checker it is a precise process and is very reliable. Precise because it deals with languages in the ways browsers work as well as specific machine langauges.

Why Validate?
You should validate your web pages because by doing this, you know you are following web standards set by W3, validation in many people’s eyes is a real pain. This shouldn’t be the case. Validation is a very important factors of you code and design, I wouldn’t be able to thank it enough because it can say you from serious errors occurring in your code as well spot potential issues that don’t necessarily harm anything but pose a threat. Validation also shows to your visitors that you have taken care in coding your web pages and show that you follow standards set.

Do I have to follow standards?
You are not forced to validate your web pages but, by not validating your web pages your not correctly coding and you could potentially coding bad mark up without realizing it. People get confused with the fact that W3 set recommendations. They don’t make them, they make recommendations, they are however dedicated in setting standards for the world and do a damn good job.

Source:
http://www.w3schools.com/xhtml/xhtml_intro.asp
http://www.marcobfenda.com/2008/08/xhtml-why-is-validation-important/

Social Bookmarking

CSS Introduction

CSS Web Designers Intro


CSS Web Designers Intro : Chapter 1


CSS Web Designers Intro : Standard CSS


CSS Designer Introduction: CSS Goes Mainstream


CSS Evolution


The Future of CSS



What is CSS?
1. CSS stands for Cascading Style Sheets
2. Styles define how to display HTML elements
3. Styles are normally stored in Style Sheets
4. Styles were added to HTML 4.0 to solve a problem
5. External Style Sheets can save you a lot of work
6. External Style Sheets are stored in CSS files
7. Multiple style definitions will cascade into one

Styles Solve a Common Problem
HTML tags were originally designed to define the content of a document. They were supposed to say "This is a header", "This is a paragraph", "This is a table", by using tags like <h1>, <p>, <table>, and so on. The layout of the document was supposed to be taken care of by the browser, without using any formatting tags.

As the two major browsers - Netscape and Internet Explorer - continued to add new HTML tags and attributes to the original HTML specification, it became more and more difficult to create Web sites where the content of HTML documents was clearly separated from the document's presentation layout.

To solve this problem, the World Wide Web Consortium (W3C) - the non profit, standard setting consortium, responsible for standardizing HTML - created STYLES in addition to HTML 4.0.

All major browsers support Cascading Style Sheets.

Style Sheets Can Save a Lot of Work
Styles sheets define HOW HTML elements are to be displayed, just like the font tag and the color attribute in HTML 3.2. Styles are normally saved in external .css files. External style sheets enable you to change the appearance and layout of all the pages in your Web, just by editing one single CSS document!

CSS is a breakthrough in Web design because it allows developers to control the style and layout of multiple Web pages all at once. As a Web developer you can define a style for each HTML element and apply it to as many Web pages as you want. To make a global change, simply change the style, and all elements in the Web are updated automatically.

Multiple Styles Will Cascade Into OneStyle sheets allow style information to be specified in many ways. Styles can be specified inside a single HTML element, inside the element of an HTML page, or in an external CSS file. Even multiple external style sheets can be referenced inside a single HTML document.

Cascading Order

What style will be used when there is more than one style specified for an HTML element?

Generally speaking we can say that all the styles will "cascade" into a new "virtual" style sheet by the following rules, where number four has the highest priority:

1. Browser default
2. External style sheet
3. Internal style sheet (inside the tag)
4. Inline style (inside an HTML element)

So, an inline style (inside an HTML element) has the highest priority, which means that it will override a style declared inside the tag, in an external style sheet, or in a browser (a default value).

Source: http://www.w3schools.com/css/css_intro.asp


Social Bookmarking

Blog Disclaimer

One Stop Web Dev't Buckets is a personal blog that aims to share online video tutorials. This blog is a collaborative effort of individuals who are currently registered members of other online community sites. One Stop Web Dev't Buckets does not claim any form of ownership or copyright in the materials found in this blog. Most of the video tutorials and contents featured in this blog come from other sites. The said materials are owned by those sites where these resources are posted.

Blog Affiliates

Web Development & Design - Top Blogs Philippines