Text Image Background


CSS Tips : Text with Image Background

In addition to color can also be used as a background image of a text. The trick simply by changing the background color property on the style-image CSS. Script as follows.


<html> <head> <title> Text Background Image </ title> </ head> <body> <h1 style="color:#FFFFFF"> <span style = "background-image: url (image.jpg)" > Tips CSS </ span> </ h1> </ body> </ html>

Sample Program:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Background Image</title>
</head>
<body>
<h1 style="color:#FFFFFF">
<span style="background-image:url(latarteks.jpg)">CSS Tips</span></h1>
<h2 style="color:#00FF00">
<span style="background-image:url(latarteks.jpg)">CSS Tutorial</span></h2>
</body>
</html>

Text Background Image: with CSS text styles can be created background images.

0 comments:

Post a Comment