Thank you Jonathan. That worked! Rui
On Oct 1, 5:24 pm, "Jonathan Vanherpe (T & T NV)" <jonat...@tnt.be> wrote: > well, if you don't underline your links, you only really needed to > define text-decoration: none once in your css. If you add > .underlinelinks before whatever the selector you used for that, it will > be overridden in most cases. > > so your css would be something like: > > #content a { > text-decoration: none; > > } > > .underlinelinks #content a { > text-decoration: underline; > > } > > if you really want to force it, you can use text-decoration: underline > !important; , but note that internet explorer 6 doesn't know about > !important. > > Jonathan > > > > SmiThiCowrote: > > > Thanks. I'll give it a try. > > I didn't tried this before because in the inner divs of the body I > > sometimes override the text decoration value. > > So in terms of css priority I not sure if this is going to work. But > > I'll tell you later. > > > Thanks! > > > On Oct 1, 1:11 pm, "Jonathan Vanherpe (T& T NV)"<jonat...@tnt.be> > > wrote: > >>SmiThiCowrote: > > >>> Hi all, > >>> Till now I din not found and an clean solution for my problem. > > >>> I have a button in my web site "underline links" that changes all the > >>> links and affects its text decoration to 'underline'. From this point > >>> all the links of the website should be underline. The problem is that > >>> I can only make it work for the current DOM. If I introduce new links > >>> into the DOM I need to select them specifically to change its text > >>> decoration. Is there something similar to the "live" function in > >>> jquery? For instance for every links introduced in the DOM I want to > >>> check if the website is in underline mode. Case its true, the text > >>> decoration will be changed! > > >>> Thanks in advance! > > >>>SmiThiCo > > >> I obviously meant: > > >> .underlinelinks a { > >> text-decoration: underline; > >> } > > >> -- > >> Jonathan Vanherpe - Tallieu& Tallieu NV - jonat...@tnt.be > > -- > Jonathan Vanherpe - Tallieu & Tallieu NV - jonat...@tnt.be