change the css to
.bannerbox
{
background-image: url
(img/bannerboxmaroon.gif);
width: 850px;
top:2%;
}
On 22 Mar 2007 09:47:44 -0700, rutledj < jrutledge%40triad.rr.com">jrutledge
triad.rr.com> wrote:
>
> I'm trying to display a background image in a div I'm using as a
> header.
> I'm using Themes in Visual Studio and have a themes folder with an
> img folder inside that containing the image. In web.config I have
> told it to use this theme.
> I can change fonts, background color, etc in the stylesheet (inside
> the theme folder) but cannot make the image display.
>
> If I don't use themes and use a stylesheet in the root folder with
> the background-image property still pointing to the image in the
> Themes folder, it works.
>
> Here is my code:
>
> <body>
> <form id="form1" runat="server">
> <div>
> <div class="bannerbox">
> <h5>2020 South Park Drive</h5><br />
> <h5>Reidsville, NC 27320</h5>
> <img alt="Reidsville Christain Church"
> src="images/churchbuilding.jpg" />
> </div>
> <asp:contentplaceholder id="ContentPlaceHolder1"
> runat="server">
> </asp:contentplaceholder>
> </div>
> </form>
> </body>
>
> Here is the css:
>
> body
> {
> margin: 0 auto;
> text-align: center;
> font-family: Verdana;
> }
>
> .bannerbox
> {
> background-image: url
> (App_Themes/Maroon/img/bannerboxmaroon.gif);
> width: 850px;
> top:2%;
> }
>
> .bannerbox h5
> {
> float: left;
> left: 5%;
> position: relative;
> top: 60%;
> }
> .bannerbox img
> {
> float:right;
> margin-right:2%;
> }
>
> Here is a link to what the page looks like:
> [URL="http://www.cooltoneamps.com"]http://www.cooltoneamps.com[/URL]
>
>
>
--
Dean Fiala
Very Practical Software, Inc
Now with Blogging...
http://www.vpsw.com/blogbaby
Microsoft MVP
[Non-text portions of this message have been removed]
.