CSS Help...
- Started
- Last post
- 9 Responses
- stimuli
Anyone here experts in CSS? I need your help!
When I rollover my text, I currently have the background colour change but it only lasts the width of the text. How do I expand it past the end of the text to the edge of the table field?
Any help would be greatly appreciated.
- frankbb0
place the text in a table and change the bg or that table cell
- kodap0
You can place your links in TD's and add a javascript event just like PBS and NTB.
- stimuli0
Thanks guys. Any sites you know of with examples or similar effects?
- J0
- Nairn0
Does Newstoday use this method?
- stimuli0
J, that's exactly what I ws looking for! Thanks a lot!
- sp0
nt uses dom to make the change.
and it works easier if you don't use tables.
use divs. tables weren't meant to handle stylistic changes like that.
tables are for spreadsheet data display, not design and layout.
css works well if you use the right markup methods.
:)
but you can do it with this snippet:
this.style.backgroundColor=''; return true;
place this in an 'onmouseover' event in your tag.
- sp0
oh, and J, that way doesn't work in all browsers, like mozilla for example. not too mention probably not netscape or opera (haven't checked yet) or probably not in galeon or konqueror (which means it won't work in mac's new browser).
not everyone uses ie.
it all has to do with standards.
:)
- 4cY0
use display: block..
that is THE method for this!
See Zeldman.com for more info on this...
http://www.v-2.org has it as well....you could take a peek at the source file and learn...