![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
Add a CSS style to the cell, either in a remote stylesheet or in the head section of the page, or put this in the cell tag: td onMouseOver="this.style.backgroundColor='#CC0000'" onMouseOut="this.style.backgroundColor='#000000'" -- Dan Vendel - *GOF* Contact me directly at http://contact.vendel.info Formmail tutorial at http://www.vendel.info/tut/formmail.html Nested table demonstration at http://www.vendel.info/tabletut/ Search Engine Optimization & Rank Control Utility at http://awr.vendel.info Search Dreamweaver newsgroup at http://www.vendel.info/google.html |
#22
| |||
| |||
|
|
Dan - the html below works perfectly - but how would you code this if this referred to a linked style sheet, or a style set in the header. It seems to get way more complex. There's no mouseOver in CSS and hover doesn't seem to work. |
#23
| |||
| |||
|
|
Anthony LeBaron wrote: Dan - the html below works perfectly - but how would you code this if this referred to a linked style sheet, or a style set in the header. It seems to get way more complex. There's no mouseOver in CSS and hover doesn't seem to work. Frankly, I don't think you can make it work the normal CSS way (hence the discussion among many others in this thread). At least not if you really need to make the color shift in the *entire* cell, regardless of line height and other stuff. There are ways with to achieve the same effect with "block", but if the user increase the font size too much (and I think it really need to be *too* much), there will be spaces between the block that's shifting color and the upper/lower cell border. If I don't recall wrong.... -- Dan Vendel - *GOF* Contact me directly at http://contact.vendel.info Formmail tutorial at http://www.vendel.info/tut/formmail.html Nested table demonstration at http://www.vendel.info/tabletut/ Search Engine Optimization & Rank Control Utility at http://awr.vendel.info Search Dreamweaver newsgroup at http://www.vendel.info/google.html |
#24
| |||
| |||
|
|
Thanks Dan. I hit the same brick wall. Although I was able to get close with a linked CSS, I was never able to completely fill the cell and format the text in the cell the way I wanted. I couldn't make the cell and the 'block' work together without some conflict. Your solution was by far the simplest and best. Your first post indicated that it could be done - so I thought I'd ask to clarify. But again, thanks. "Dan Vendel *GOF*" <see_my_signature_ (AT) _the_bottom_of_the_post (DOT) org> wrote in message news:c8g8ks$h49$2 (AT) forums (DOT) macromedia.com... Anthony LeBaron wrote: Dan - the html below works perfectly - but how would you code this if this referred to a linked style sheet, or a style set in the header. It seems to get way more complex. There's no mouseOver in CSS and hover doesn't seem to work. Frankly, I don't think you can make it work the normal CSS way (hence the discussion among many others in this thread). At least not if you really need to make the color shift in the *entire* cell, regardless of line height and other stuff. There are ways with to achieve the same effect with "block", but if the user increase the font size too much (and I think it really need to be *too* much), there will be spaces between the block that's shifting color and the upper/lower cell border. If I don't recall wrong.... -- Dan Vendel - *GOF* Contact me directly at http://contact.vendel.info Formmail tutorial at http://www.vendel.info/tut/formmail.html Nested table demonstration at http://www.vendel.info/tabletut/ Search Engine Optimization & Rank Control Utility at http://awr.vendel.info Search Dreamweaver newsgroup at http://www.vendel.info/google.html |
#25
| |||
| |||
|
|
check this page - http://www.great-web-sights.com/kennard/page_noborder.html Note how that top menu is done. -- 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 ================== "Anthony LeBaron" <user (AT) macromediaforums (DOT) com> wrote in message news:c8g90f$mfc$1 (AT) forums (DOT) macromedia.com... Thanks Dan. I hit the same brick wall. Although I was able to get close with a linked CSS, I was never able to completely fill the cell and format the text in the cell the way I wanted. I couldn't make the cell and the 'block' work together without some conflict. Your solution was by far the simplest and best. Your first post indicated that it could be done - so I thought I'd ask to clarify. But again, thanks. "Dan Vendel *GOF*" <see_my_signature_ (AT) _the_bottom_of_the_post (DOT) org> wrote in message news:c8g8ks$h49$2 (AT) forums (DOT) macromedia.com... Anthony LeBaron wrote: Dan - the html below works perfectly - but how would you code this if this referred to a linked style sheet, or a style set in the header. It seems to get way more complex. There's no mouseOver in CSS and hover doesn't seem to work. Frankly, I don't think you can make it work the normal CSS way (hence the discussion among many others in this thread). At least not if you really need to make the color shift in the *entire* cell, regardless of line height and other stuff. There are ways with to achieve the same effect with "block", but if the user increase the font size too much (and I think it really need to be *too* much), there will be spaces between the block that's shifting color and the upper/lower cell border. If I don't recall wrong.... -- Dan Vendel - *GOF* Contact me directly at http://contact.vendel.info Formmail tutorial at http://www.vendel.info/tut/formmail.html Nested table demonstration at http://www.vendel.info/tabletut/ Search Engine Optimization & Rank Control Utility at http://awr.vendel.info Search Dreamweaver newsgroup at http://www.vendel.info/google.html |
#26
| |||
| |||
|
|
check this page - http://www.great-web-sights.com/kennard/page_noborder.html Note how that top menu is done. |
#27
| |||
| |||
|
|
.oO(Murray *TMM*) check this page - http://www.great-web-sights.com/kennard/page_noborder.html Note how that top menu is done. Hmm (Mozilla 1.5) ... http://www.mfesser.de/temp/gws1.jpg> (8KB) Hmmmm (IE 5) ... http://www.mfesser.de/temp/gws2.jpg> (11KB) Hmmmmmm! http://www.delorie.com/web/lynxview.cgi?url=http%3A%2F%2Fwww.great-web-sigh |
|
Hmmmmmicha |
#28
| |||
| |||
|
|
Anthony LeBaron wrote: Dan - the html below works perfectly - but how would you code this if this referred to a linked style sheet, or a style set in the header. It seems to get way more complex. There's no mouseOver in CSS and hover doesn't seem to work. Frankly, I don't think you can make it work the normal CSS way (hence the discussion among many others in this thread). At least not if you really need to make the color shift in the *entire* cell, regardless of line height and other stuff. There are ways with to achieve the same effect with "block", but if the user increase the font size too much (and I think it really need to be *too* much), there will be spaces between the block that's shifting color and the upper/lower cell border. If I don't recall wrong.... |
#29
| |||
| |||
|
|
come on guys, it's simple: .trbg { background-color: #666633; } tr class="trbg" td onmouseover="this.style.backgroundColor='#550033'; " onmouseout="this.style.backgroundColor='#666633'" and you're done. Dan Vendel *GOF* wrote: Anthony LeBaron wrote: Dan - the html below works perfectly - but how would you code this if this referred to a linked style sheet, or a style set in the header. It seems to get way more complex. There's no mouseOver in CSS and hover doesn't seem to work. Frankly, I don't think you can make it work the normal CSS way (hence the discussion among many others in this thread). At least not if you really need to make the color shift in the *entire* cell, regardless of line height and other stuff. There are ways with to achieve the same effect with "block", but if the user increase the font size too much (and I think it really need to be *too* much), there will be spaces between the block that's shifting color and the upper/lower cell border. If I don't recall wrong.... |
#30
| |||
| |||
|
|
I think that solution was one of the first posted in this thread by Dan Vendel. But the rest of the thread was a discussion of how to do it without using non-browser compliant CSS. Your solution (and Dan's) fails in NN4x. |
![]() |
| Thread Tools | |
| Display Modes | |
| |