Background inline horizontal rule with image
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title></title> <style type="text/css" media="Screen"> * .myStyle { padding-top: 5px; margin-top: 25px; margin-bottom: 0; width: auto; margin-left: 76px; margin-right: 76px; border: none; background: repeat-x left center url("http://www.java2s.com/style/logo.png"); background-color: transparent; } </style> </head> <body> <p> <span class="myStyle"></span>Background inline horizontal rule. </p> </body> </html>