3 replies [Last post]
earph
earph's picture
Offline
Enthusiast
Austin, TX
Last seen: 12 years 7 weeks ago
Austin, TX
Joined: 2003-11-12
Posts: 62
Points: 0

I notice that when I set a background image of a DIV using CSS, the background comes up grey in the preview panel of Dreamweaver MX. Is there any way to fix this? Maybe a setting somewhere?

The image displays fine when I test in a browser, it just won't show up in the dreamweaver panel, which makes it hard when I need to line up something with the background.

Thanks!

Tags:
co2
co2's picture
Offline
Leader
UK
Last seen: 13 years 3 weeks ago
UK
Joined: 2003-09-17
Posts: 721
Points: 0

Dreamweaver and displaying BG images.

Are you sure Dreamweaver has correct reference to the image file? Depending how you work (with the site management within DW) your previewing server may be in a different location to the testing server (I think that's right!)

In other words, it may be on one of the testing locations (where the browser checks) but not in the location where DW gets its files.

The next sentence is true. The previous sentence is false. Discuss...

earph
earph's picture
Offline
Enthusiast
Austin, TX
Last seen: 12 years 7 weeks ago
Austin, TX
Joined: 2003-11-12
Posts: 62
Points: 0

Dreamweaver and displaying BG images.

Well, after much experimentation, I found that deleting the quotation marks around the image page solved the problem.

Only question is... What is the correct sytax for a background-image? Quotes or no quotes?

co2
co2's picture
Offline
Leader
UK
Last seen: 13 years 3 weeks ago
UK
Joined: 2003-09-17
Posts: 721
Points: 0

Dreamweaver and displaying BG images.

Ah right I see...

Use the form:

background-image: url(image/image.gif);
or

background: url(image/image.gif) #fff no-repeat;

Though quotation marks can be used, they seem to throw up problems occasionally.

The next sentence is true. The previous sentence is false. Discuss...