HighDots Forums  

Background images

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Background images in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kezele
 
Posts: n/a

Default Background images - 07-07-2004 , 11:07 AM






Can someone explain why, when I select an image from file as a page background, it doesn't show when previewing in IE or Safari. (F12)

Thanks.

Reply With Quote
  #2  
Old   
Scott Horvath
 
Posts: n/a

Default Re: Background images - 07-07-2004 , 11:13 AM






Try using CSS like:
<body style="background-image:url(/images/background.jpg)">

Scott

"darrel" <notreal (AT) hotmail (DOT) com> wrote

Quote:
Can someone explain why, when I select an image from file as a page
background, it doesn't show when previewing in IE or Safari. (F12)

Not without more information.

Here are some wild guesses:

- you are not using a valid file format
- you are not linking to the correct location of the image
- you have a syntax error in your HTML

-Darrel





Reply With Quote
  #3  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Background images - 07-07-2004 , 11:25 AM



Ugh. Don't use good technology with deprecated methods.


<style type="text/css">
<!--
body { background-image:url(/images/background.jpg); }
-->
</style>

would be a much better method.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Scott Horvath" <horvats (AT) onr (DOT) navy.mil> wrote

Quote:
Try using CSS like:
body style="background-image:url(/images/background.jpg)"

Scott

"darrel" <notreal (AT) hotmail (DOT) com> wrote in message
news:cch3ml$3ms$1 (AT) forums (DOT) macromedia.com...
Can someone explain why, when I select an image from file as a page
background, it doesn't show when previewing in IE or Safari. (F12)

Not without more information.

Here are some wild guesses:

- you are not using a valid file format
- you are not linking to the correct location of the image
- you have a syntax error in your HTML

-Darrel







Reply With Quote
  #4  
Old   
Kezele
 
Posts: n/a

Default Re: Background images - 07-09-2004 , 04:24 AM



Have tried the following:
<style type="text/css">
<!--
.bckgrd {
background-image:
url(file:///Macintosh%20HD/Users/username/Sites/site_name/1A9020.hires.jpg);
}
-->
</style>

Tried to view using preview and still have a blank page.
Any ideas?


Reply With Quote
  #5  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Background images - 07-09-2004 , 07:40 AM



Well yeah - the link to the image is broken (it's pointing to the file on
your hard drive), and you have created a custom class called "bckgrd" but
I'm guessing you have not applied it to anything on the page.

To have a page background image automatically applied, redefine the body
tag, as I showed in my previous post. Then you don't need to do anything.

But if you show me your page code, I can confirm why you are not seeing a
background image.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Kezele" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Have tried the following:
style type="text/css"
!--
.bckgrd {
background-image:

url(file:///Macintosh%20HD/Users/username/Sites/site_name/1A9020.hires.jpg);
}
--
/style

Tried to view using preview and still have a blank page.
Any ideas?




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.