Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / August 2003



Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Display Name - 21 Aug 2003 02:56 GMT
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 - 21 Aug 2003 07:58 GMT
> 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'.

Signature

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

Matt Miklas - 30 Aug 2003 16:56 GMT
Yeah, maybe it was a little excessive. Thanks for the help, Toby, it's appreciated.
Matt

> > Newsgroups: alt.html.editors.webedit,alt.html.tags,alt.html.webedit,
> > comp.infosystems.www.authoring.stylesheets,macromedia.dreamweaver,
[quoted text clipped - 11 lines]
>
> You are missing the semi-colon before 'background-repeat'.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.