HighDots Forums  

css background image not appearing

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss css background image not appearing in the Macromedia Dreamweaver forum.



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

Default css background image not appearing - 07-10-2004 , 01:06 AM






Hello

I'm attempting to have an internal style sheet within a template
define a background image to be used within a td tag. I'm using
Dreamweaver MX. The image appears nowhere: not in dreamweaver layout
nor in any browser. I've tested this particular style with other
settings and they seem fine, and I am stumped as to what
troubleshooting steps to take next. Any advice would be greatly
appreicated. A page that accesses the template can be found at:

www.bucerias.com/test/index.htm


Thanks in advance for any assistance.

Reply With Quote
  #2  
Old   
bonehead
 
Posts: n/a

Default Re: css background image not appearing - 07-10-2004 , 02:28 PM







"Robin S" <rsenor (AT) earthlink (DOT) net> wrote

Quote:
Hello

I'm attempting to have an internal style sheet within a template
define a background image to be used within a td tag. I'm using
Dreamweaver MX. The image appears nowhere: not in dreamweaver layout
nor in any browser. I've tested this particular style with other
settings and they seem fine, and I am stumped as to what
troubleshooting steps to take next. Any advice would be greatly
appreicated. A page that accesses the template can be found at:

www.bucerias.com/test/index.htm


Thanks in advance for any assistance.
You have defined a class, TD.backgroundimage but which cell /s do you want
it to appear in? You appear to have various definitions for TD and you are
trying to use css and format the table with html at the same time.
In this line, <TD bgcolor=#deeeee colspan=6><IMG height=1 src="" width=1>,
you have not specified the source of the file. I know it's just a spacer but
it is superfluous. If you want to use css for this you have to define the
class and not use html i.e. <td class="td001">

<HEAD>
<TITLE>Untitled Document</TITLE>
</HEAD>

The head tag is in the wrong place. Move it down to the correct place
before the body tag.

Try and get into the habit of using lower case as well. When you have
learned a bit more and step up to xhtml you will find that uppercase won't
validate.

I haven't been able to look any further than this yet but no doubt one of
the experts will explain things a lot better then me.

B




Reply With Quote
  #3  
Old   
Robin S
 
Posts: n/a

Default Re: css background image not appearing - 07-17-2004 , 02:42 PM



"bonehead" <w7udim402 (AT) sneakemail (DOT) com> wrote

Quote:
"Robin S" <rsenor (AT) earthlink (DOT) net> wrote in message
news:8f97cb00.0407092106.10e9bb16 (AT) posting (DOT) google.com...
Hello

I'm attempting to have an internal style sheet within a template
define a background image to be used within a td tag. I'm using
Dreamweaver MX. The image appears nowhere: not in dreamweaver layout
nor in any browser. I've tested this particular style with other
settings and they seem fine, and I am stumped as to what
troubleshooting steps to take next. Any advice would be greatly
appreicated. A page that accesses the template can be found at:

www.bucerias.com/test/index.htm


Thanks in advance for any assistance.

You have defined a class, TD.backgroundimage but which cell /s do you want
it to appear in? You appear to have various definitions for TD and you are
trying to use css and format the table with html at the same time.
In this line, <TD bgcolor=#deeeee colspan=6><IMG height=1 src="" width=1>,
you have not specified the source of the file. I know it's just a spacer but
it is superfluous. If you want to use css for this you have to define the
class and not use html i.e. <td class="td001"

HEAD
TITLE>Untitled Document</TITLE
/HEAD

The head tag is in the wrong place. Move it down to the correct place
before the body tag.

Try and get into the habit of using lower case as well. When you have
learned a bit more and step up to xhtml you will find that uppercase won't
validate.

I haven't been able to look any further than this yet but no doubt one of
the experts will explain things a lot better then me.

B
Hi B,

Thanks for your response.

The TD with the class applied is located in line 55; or as shown here
within a table:

<table width="700" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td><img src="../image/address.gif" width="688" height="66"></td>
</tr>
<tr>
<td class="backgroundimage"><!-- TemplateBeginEditable
name="flash_region" -->flash_region<!-- TemplateEndEditable --></td>
</tr>
</table>


A couple of your comments confused me (easy to do...so bear with me):

I am using HTML and CSS to define the page at the same time. I can
definitely see how it would be easier to just use CSS. Is it a
potential problem to have two td styles, even though one defines a
background image, and the other is just a standard style? Basically,
should the definition still work anyway?

With the head tag, I have it opening at line 4 and closing at line 47,
after the title declaration, style and javascript declaration. Do you
see it appearing to close earlier? I'm a little confused about moving
it down to right before the body tag...as everything that is included
within it needs to be...does that question make sense?

Also, on the all caps...I have written this in lowercase. Is it
possible the source would open in uppercase elsewhere?

Thanks for your help-


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.