Blue Theme Orange Theme Green Theme Red Theme
 
Home | Forums | ASP.NET 2.0 Tutorials | Web Services | How Do I...? | Class Browser | WPF Quick Starts | Advertise with Us
 | Consulting  
Submit an Article Submit a Blog 
Search :       Advanced Search »
Home » Blogs Home » Blog Detail

Repeat Background image using style in html tag.

 by Purushottam Rathore on Sep 17, 2009

Here I am giving a simple example to Repeat Background image using style in html tag.
Comments: 0 Views: 9686 Printable Version 

Example:
 
<html xmlns="http://www.w3.org/1999/xhtml">
 <head> <title>Comment Style</title>
</head>
<body> 
<table cellpadding="0" cellspacing="0" width=618px>
    <tr>
        <td style="padding-left: 35px; width: 618px; height: 28px;  background: url(img_top.png') no-repeat;">
Hi          
        </td>
    </tr>
    <tr>
        <td style="padding-left: 35px; padding-right: 40px; width: 618px; background: url(img_middle.png') repeat-y;">Hi this purushottam rathore.
        </td>
    </tr>
    <tr>
        <td style="width: 618px; height: 13px; background: url(img_bottom.png') no-repeat;"></td>
    </tr>
</table>
</body>
</html>

Images used in this example:

comment_top.png

Image 1: img_top

comment_middle.png

Image 2: img_middle

comment_bottom.png

Image 3: img_bottom


OutPut:

CommentImg.JPG

Image 4: Output.

In this example img_middle is repeat in y axes
Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
 
What do you say about this post? Post a comment here
*Title:
*Comment:
 
Comments not available.
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor

 Blogger's Profile
Age: Not Available
Location:
Title: Developer
Joined: Apr 19, 2007
Education: Masters Degree
 More Blogs from this Blogger
Play Background music on your website using asp.net
Repeat Background image using style in html tag.
Difference between datagrid datalist
Benefits and limitations of using Cookies
LINQ
View all »
 Latest Blogs
[Video] OnClose Handler
[Video] Storing and Loading the Window and Toolbar position
The Euclidean Algorithm
Swapping Exe Process
How Exe file is Generated by VS2005 C++ Project?
What is Exe
Header files: Multiple Inclusion problem - Solution B
Header files: Multiple Inclusion problem - Solution A
Header files: Multiple Inclusion problem - Reason
Header files: Multiple Inclusion problem
View all »
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 
Team Foundation Server Hosting
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.