Skip to main content
Inspiring
January 20, 2007
Question

Problem with CSS

  • January 20, 2007
  • 12 replies
  • 627 views
Hello All,

I have the following code in my CSS sheet :

logo {font-family:Geneva, Arial, Helvetica, sans-serif;
position: absolute;
left: 0px;
top: 0px;
background-color: #FFCC99;
background-image:url(images/index_03.gif);
}


My problem is the background image index_03.gif does not appear on the page.
I have already assigned the page to use this CSS so I do not know what is
wrong.

Any help would be appreciated.

Liam


This topic has been closed for replies.

12 replies

Inspiring
January 20, 2007
You have this -

logo {font-family

But that's a redefined HTML element rule, and will look for a <logo> tag,
which doesn't exist.

Did you mean to use a custom class?

.logo {font-family

or an ID selector?

#logo {font-family

Instead?

What does the HTML for this element look like?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Macromedia Forums" <liaml1@hotmail.com> wrote in message
news:eort1h$nej$1@forums.macromedia.com...
> Hello All,
>
> I have the following code in my CSS sheet :
>
> logo {font-family:Geneva, Arial, Helvetica, sans-serif;
> position: absolute;
> left: 0px;
> top: 0px;
> background-color: #FFCC99;
> background-image:url(images/index_03.gif);
> }
>
>
> My problem is the background image index_03.gif does not appear on the
> page. I have already assigned the page to use this CSS so I do not know
> what is wrong.
>
> Any help would be appreciated.
>
> Liam
>


Inspiring
January 20, 2007
Macromedia Forums wrote:
> My problem is the background image index_03.gif does not appear on the page.
> I have already assigned the page to use this CSS so I do not know what is
> wrong.

You could try to give #logo a specified width and/or height.

hth
Martin