HighDots Forums  

Firefox - Tables & tr, td "bgcolor" attribute

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Firefox - Tables & tr, td "bgcolor" attribute in the Macromedia Dreamweaver forum.



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

Default Firefox - Tables & tr, td "bgcolor" attribute - 09-20-2006 , 02:30 PM






hello,

The following is an example of "works in IE but not in FF":

<table cellspacing="0" cellpadding="0" border="1" width="150">

<tr>
<td bgcolor="FF0000" height="18" width="150">&nbsp;<font
color="#000000">Test</font></td>
</tr>

</table>

Is there a way in Dreamweaver8 to create tables/cells with colored
backgrounds?


Reply With Quote
  #2  
Old   
Walt F. Schaefer
 
Posts: n/a

Default Re: Firefox - Tables & tr, td "bgcolor" attribute - 09-20-2006 , 02:47 PM






Quote:
Is there a way in Dreamweaver8 to create tables/cells with colored
backgrounds?
Yes, CSS.

Quote:
font color="#000000">Test</font
You should also use CSS here as the <font> tag is deprecated.

Walt

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

Quote:
hello,

The following is an example of "works in IE but not in FF":

table cellspacing="0" cellpadding="0" border="1" width="150"

tr
td bgcolor="FF0000" height="18" width="150">&nbsp;<font
color="#000000">Test</font></td
/tr

/table

Is there a way in Dreamweaver8 to create tables/cells with colored
backgrounds?




Reply With Quote
  #3  
Old   
Walt F. Schaefer
 
Posts: n/a

Default Re: Firefox - Tables & tr, td "bgcolor" attribute - 09-20-2006 , 02:50 PM



BTW bgcolor="FF0000 doesn't work in FF because it is invalid HTML. Colors
must include the octothorpe character (#). IOW bgcolor="#FF0000.

Before you go further devote some time to learning HTML & CSS. Here's a good
start:
http://www.amazon.com/XHTML-Sixth-Vi...e=UTF8&s=books

Walt

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

Quote:
hello,

The following is an example of "works in IE but not in FF":

table cellspacing="0" cellpadding="0" border="1" width="150"

tr
td bgcolor="FF0000" height="18" width="150">&nbsp;<font
color="#000000">Test</font></td
/tr

/table

Is there a way in Dreamweaver8 to create tables/cells with colored
backgrounds?




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

Default Re: Firefox - Tables & tr, td "bgcolor" attribute - 09-20-2006 , 03:39 PM



Walt,

Thanks for your suggestions, have been looking at CSS solutions and that is
an area I need to review. Have been out of this for several years. Right now I
am in the process of developing my own site, and I have been using code from a
project I developed a few years back. The mystery I am trying to figure out is
why this code from my previous work which uses the standard Table tags (and
bgcolor attribute without #) displays properly in Firefox, and then moving it
into a Dreamweaver or text generated HTMl doc it does not work.

Still trying to track down what is making the difference. My guess right now
is it is possibly related to the browser detection code. Although I produced
the site before Firefox was around.


Reply With Quote
  #5  
Old   
Walt F. Schaefer
 
Posts: n/a

Default Re: Firefox - Tables & tr, td "bgcolor" attribute - 09-20-2006 , 04:25 PM



Again, bgcolor="FF0000 doesn't work in FF because it is invalid HTML. Colors
must include the octothorpe character (#). IOW bgcolor="#FF0000.

IE will render the color correctly even though the # is missing, but the
code is still invalid. FF does not render the color. Add the # and all will
be well.

Walt

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

Quote:
Walt,

Thanks for your suggestions, have been looking at CSS solutions and that
is
an area I need to review. Have been out of this for several years. Right
now I
am in the process of developing my own site, and I have been using code
from a
project I developed a few years back. The mystery I am trying to figure
out is
why this code from my previous work which uses the standard Table tags
(and
bgcolor attribute without #) displays properly in Firefox, and then
moving it
into a Dreamweaver or text generated HTMl doc it does not work.

Still trying to track down what is making the difference. My guess right
now
is it is possibly related to the browser detection code. Although I
produced
the site before Firefox was around.




Reply With Quote
  #6  
Old   
unavailableID
 
Posts: n/a

Default Re: Firefox - Tables & tr, td "bgcolor" attribute - 09-20-2006 , 11:10 PM



Not a kludge, just code based on standards from five years ago when it was
written (with a corrresponding five year old Doc Type definition), and it still
works in today's browsers if kept intact. Why things work and don't work is
often equaly as important to know and understand as the "standards" in and of
themselves. It is a bit surprising but also encouraging to see this still
holding up given the ongoing changes in browser compatibillity and standards.
It is also interesting how IE and Firefox differ in handling it.


I just got back from Border's with Peachpit's Quick Reference, thanks again
for the recomendation. Had a chance to review a couple of others, and get some
resources out of them as well.




Reply With Quote
  #7  
Old   
unavailableID
 
Posts: n/a

Default Re: Firefox - Tables & tr, td "bgcolor" attribute - 09-20-2006 , 11:12 PM



Not a kludge, just code based on standards from five years ago when it was
written (with a corrresponding five year old Doc Type definition), and it still
works in today's browsers if kept intact. Why things work and don't work is
often equaly as important to know and understand as the "standards" in and of
themselves. It is a bit surprising but also encouraging to see this still
holding up given the ongoing changes in browser compatibillity and standards.
It is also interesting how IE and Firefox differ in handling it.


I just got back from Border's with Peachpit's Quick Reference, thanks again
for the recomendation. Had a chance to review a couple of others, and get some
resources out of them as well.




Reply With Quote
  #8  
Old   
unavailableID
 
Posts: n/a

Default Re: Firefox - Tables & tr, td "bgcolor" attribute - 09-20-2006 , 11:27 PM



Walt just in case you are still concerned, I agree with you and will come up with something different based on current practice.

Reply With Quote
  #9  
Old   
Walt F. Schaefer
 
Posts: n/a

Default Re: Firefox - Tables & tr, td "bgcolor" attribute - 09-21-2006 , 12:27 AM



KEWL! Good to see that you are moving forward. :-)

Walt

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

Quote:
Walt just in case you are still concerned, I agree with you and will come
up with something different based on current practice.



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 - 2008, Jelsoft Enterprises Ltd.