PDA

View Full Version : [SOLVED] CSS - Browser won't load background image



Kinetic_lord
December 20th, 2008, 12:12 PM
I am building a site and, i edited a few pictures to use as menu's, buttons, etc... The problem is, i have placed the background of the main header using: background-image: url('menu/bar_menu'); When i see the preview in Quanta plus, the background appears, but in Firefox, i can only see the buttons and a white background. This is the CSS:

#header {
top: 0px;
left: 0px;
width: 800px;
background-image: url('menu/bar_menu.png');
}

#left_menu {
top: 250px;
left: 0px;
width: 250px;
background-image: url('menu/bar_left.png');
}

#content {
top: 250px;
left: 250px;
}
So what is the problem? The Web Developers toolbar in Firefox shows no CSS errors.

Kinetic_lord
December 20th, 2008, 08:23 PM
Found the problem! Thanks for the help! :)

TreeFinger
December 21st, 2008, 02:34 AM
so what was the problem?

Kinetic_lord
December 22nd, 2008, 07:14 PM
I wrote: <link type="text/css" href="style.css" />

i should've wrote: <link type="text/css" rel="stylesheet" href="style.css">