on air

CSS {background-image} property.

back home » Web Tutorials » CSS » CSS {background-image} property.


In this tutorial you'll learn how to use CSS, to set a background image for a web page.

Below are two CSS examples of the background-image property, illustrated separately.

Both are used to set background-image for the <body> element in HTML.

Inline Style Version.

The Inline style is always defined inside an opening HTML element. See illustration below.

<body style="background-image:url(bgimage.jpg)">
 	body content comes here.

<head> Section Style Version.

The <head> section style is always defined between the opening and closing <head> tags.

See illustration below.

<style type="text/css">
body {background-image:url(/images/bgimage.jpg);}

Both defined styles above will place a background image named bgimage.jpg behind your HTML document if image exist in the folder defined above.

Note: You can also use an external stylesheet to achieve the same effect as explained above.

Learn how to use external stylesheet.

For in-depth CSS knowledge check out our CSS Tutorials.

CSS Background Image Properties.


Man will give you worldly powers, and make you feel on top of all, note this is temporally and could be redrawn at anytime sending you back to the ground floor of life. However, the Lord Almighty, the one and the only rightful ruler of the Universe, blesses everlastingly.


Knowledge is Power, but Power is not Knowledge. Wisdom is the truthful Power that identifies the Knowledge within the man. And only, I repeat 3x. Only the almighty God has the power to bless the man with his Wisdom forever.

To achieve the Lord's blessings, cease not praying daily, asking for his Wisdom, and you'll be blessed abundantly...


Spyera Phone

Spyera Phone version is software that you install on a smart phone to monitor everything happening on the phone. After installation, SPYERA secretly records events (sms, call history, phone book, location, emails, What's App messages, IM, Facebook Chat, Skype, See photos taken and many more...) that happen on the phone and delivers these information to a web account, where you can view these reports 24/7 from any Internet enabled computer or mobile phone. SPYERA also allows you to listen to the surroundings of the target mobile , listen to the phone conversation and to know the location of the device.

Please, Kindly Donate What You Can, Enabling Us Pay Hosting And Domain Costing, And Do More.

Please Donate