Top 3 Products & Services


Dated: Sep. 04, 2005

Related Categories

CSS - Styles Sheets

By Najmi

Background Image For Block Elements

Using CSS, you can now give any block element a background image. A block element simply refers to elements that define a rectangular area, such as a paragraph <p>, a header <h>, or div <div>. Elements such as <font> and <span> are NOT block elements. To give block elements a background image, simply insert the below CSS code into the element's tag:

<div style="background-image:url('yourimage.gif')">.....

CSS Tricks

Two Classes Together

Usually attributes are assigned just one class, but this doesn't mean that that's all you're allowed. In reality, you can assign as many classes as you like! For example:

<p class="text side">...</p>

Using these two classes together (separated by a space, not with a comma) means that the paragraph calls up the rules assigned to both text and side. If any rules overlap between the two classes then the class which is below the other in the CSS document will take precedence.

  Page 1 of 6
  First | Previous | Next | Last

Now that you've gotten free know-how on this topic, try to grow your skills even faster with online video training. Then finally, put these skills to the test and make a name for yourself by offering these skills to others by becoming a freelancer. There are literally 2000+ new projects that are posted every single freakin' day, no lie!

Previous Article

Next Article

vrashesh's Comment
your article are very helpfull
01 Sat Dec 2012
Admin's Reply:

Thanks vrashesh.

Amjid Ali's Comment
Nice articles written in very simple English,especially for those whose mother language is language except ennglish
01 Thu Sep 2011
Admin's Reply:

 thank you amjid :)


PS : We need your support and suggestion please read this article "We need your help