Original Post
I'm trying to make a special sort of paragraph for my web page. The paragraph will have the style of an announcement - it will be bordered. It looks a lot like the "quote box" here on gamedev. Here's the definition of that "paragraph" (announcement) as it appears in my < style > tag: p.announce {background-color: #35417f; margin: .5cm 1cm .5cm 1cm; text-align: center; font-weight: bold; font-size: 10px; border-style: solid; border-color: #ffffff; border-width: 1px; padding: .25cm 1cm} It works fine, up to a point. A nice border is drawn, and everything is formated quite nicely, however, the second I try to put a heading (< h1 > - < h6 >) or a horizontal rule (< hr >) inside the announcement paragraph, it's no longer considered a "paragraph", and that totally kills the formatting, making the announcement appear as regular text on the page (the only thing remaining of the actual announcement are the borders). How can I revise my defenition to suit headings and lines? What is a good alternative? I don't prefer tables because I want ease of use. If I need an announcement, I just add a class="announce" to my paragraph tag, and I have a nicely formatted announcement. Rewriting tables every time is a pain - I'm sure you understand why. Thanks for any help! [Edited by - v0dKA on October 10, 2004 11:08:56 AM]