PDA

View Full Version : Placing bars behind a heading


Wizard1693
07-31-2007, 08:08 PM
I was wondering if there was a way to make Bars behing a heading such as the bars behind certain heading in these sites.

http://www.theldersbox.com/

http://bonesonline.org/

http://kelly-element.net/

http://so-charmed.net/

In the main content section, every time there is a new entry, the heading for the entry is surrounded by a bar of a chosen color, how can i do this using html or css? If i do it via css i need to know what text exactly to put in the css and what to put in the html so it would work properly, thanks.

Pegasus
07-31-2007, 08:31 PM
The easiest way to do that is to use the <h1> tag for your headings. You put this inside the <style> tags:

h1 {display: block; background-color: #a1b2c3; }

And your headings are written as:

<h1>Heading</h1>

Does that help any?

Peg