Contact Us

|

FriendFeed FriendFeed

|

follow us on twitter Twitter

|

 Rss Feed

|

Favorites Add to Favorites

Thursday, October 23, 2008

Background Images in CSS

The background properties are

background-color, which is used to specify the color for background
background-image, which is the location of the image itself.
background-repeat, which is how the image repeats itself. This can be repeat (equivalent to a 'tile' effect across the whole background), repeat-y (repeating on the 'y-axis', above and below), repeat-x (repeating on the 'x-axis', side-by-side) or no-repeat (which shows just one instance of the image).
background-position, which can be top, center, bottom, left, right or any sensible combination, such as above.
Read more...

Sunday, October 5, 2008

@import in CSS

In CSS the only valid @rule was the @import rule. @import tells a browser to import a style sheet from elsewhere and use it in conjunction with the current style sheet. A style sheet with an @import rule is said to cascade from the imported style sheet. We cover cascading in more detail in our section on Cascade and inheritance in the advanced section of the guide.

The @import rule has the following format.
@import url(http://htmlcsstutorials.blogspot.com/style/style.css);

Alternatively, you can use also use the form.
@import "http://htmlcsstutorials.blogspot.com/style/style.css";
Read more...

@rules in CSS

You can think of an @rule as a kind of macro instruction that tells a browser something other than how to draw elements. There are a number of different types of @rules.
Read more...