| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.

View
 

21-CSS-Example-1

Page history last edited by PBworks 13 years, 2 months ago

See the original PBwiki blog entry

 

 

The following code adds a background image before every single top level header:

 

<style>
#displaycontent h1, #embcontent h1 {
  background-image: url(/f/header-bg.gif);
  background-position: top left;
  background-repeat: no-repeat;
  padding-left: 45px;
  line-height: 32px;
}
</style>

 

One heading

 

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur ullamcorper enim et diam. Quisque aliquet tempus lacus. Nulla ornare. Nullam vitae risus. Suspendisse potenti. Quisque congue pede eu nisi. Morbi eget urna eu nisi accumsan blandit. Vivamus ultricies nisl quis ipsum. Mauris quam turpis, laoreet sed, auctor at, lobortis in, erat. Vestibulum ornare, mauris eget porttitor pellentesque, risus ipsum posuere lectus, a dapibus sem massa in purus. Quisque dolor diam, tincidunt ac, egestas in, cursus ut, eros. Curabitur eget massa at magna lobortis congue. Fusce scelerisque, ligula at placerat tincidunt, orci neque varius lacus, eu lobortis lectus ipsum vitae augue. Sed et tortor. Morbi a lectus quis massa consectetuer cursus. Nulla eu nunc. Integer ut dui eget tortor bibendum dictum.

 

Two headings

 

Proin sit amet quam ornare elit pretium bibendum. Duis libero quam, mattis vitae, placerat ac, pulvinar in, metus. Aliquam orci metus, lacinia at, iaculis quis, venenatis at, lacus. Duis mattis. Nulla vel risus. In sit amet neque. Praesent a ante. Integer tempor. Donec lacus diam, fringilla sit amet, fringilla at, placerat id, turpis. In elementum orci quis mauris congue interdum. Suspendisse potenti.

Comments (0)

You don't have permission to comment on this page.