Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

can't insert a BG image on DWMX using CSS function

0 views
Skip to first unread message

Display Name

unread,
Aug 20, 2003, 9:56:40 PM8/20/03
to
I can't insert an image using the "add a new stylesheet" function- the
function, on dreamweaver MX (i'm on Windows 2k Pro) seems to work as it
generates the code... but the image never shows up in the background. I've
tried it on multiple HTML pages.
I've even tried taking the BG image out and seeing if just setting a black
BG color works - it doesn't.

If I add in the BACKGROUND="" to the BODY tag manually, it works fine.
Everything else in DW seems to be working fine. I can insert images, etc..
no problem.

Here's the code DW generates:
<!--
.OilSlickBG {
background-image: url(images/BG_oil_slick.jpg);
background-repeat: no-repeat;
background-color: #FFFFFF;
}
-->

Even if I have this code in there along with EITHER-
< BODY BACKGROUND="image.gif">
OR if i type in this...
BODY {background:url(images/BG_oil_slick.jpg) background-repeat: no-repeat;}
...within the stylesheet tags, the image will appear but will still
tile/repeat if i go up to screen resolution 1152x864

Any ideas as to what could help me here?
Thanks in advance,
Matt


Toby A Inkster

unread,
Aug 21, 2003, 2:58:38 AM8/21/03
to
Display Name wrote:

> Newsgroups: alt.html.editors.webedit,alt.html.tags,alt.html.webedit,
> comp.infosystems.www.authoring.stylesheets,macromedia.dreamweaver,
> microsoft.public.webdesign.html,
> microsoft.public.windows.inetexplorer.ie55.programming.css,
> netobjects.authoringserver2000.conn

A little excessive, don't you think? I would have suggested that only
comp.infosystems.www.authoring.stylesheets,macromedia.dreamweaver are
needed. (Why all the alt.html.*? The question is about CSS, not HTML. Why
microsoft.*? The question is about a Macromedia product, not a Microsoft
one.)

> BODY {background:url(images/BG_oil_slick.jpg) background-repeat: no-repeat;}

You are missing the semi-colon before 'background-repeat'.

--
Toby A Inkster BSc (Hons) ARCS | mailto:tob...@goddamn.co.uk | pgp:0x6A2A7D39
aim:inka80 | icq:6622880 | yahoo:tobyink | jabber:t...@jabber.linux.it
http://www.goddamn.co.uk/tobyink/ | "You've got spam!"
playing://(nothing)

Matt Miklas

unread,
Aug 30, 2003, 11:56:16 AM8/30/03
to
Yeah, maybe it was a little excessive. Thanks for the help, Toby, it's appreciated.
Matt

Toby A Inkster <UseTheAddr...@deadspam.com> wrote in message news:<pan.2003.08.21....@goddamn.co.uk>...

0 new messages