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!
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.
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?
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.