![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
| http://www.julietremblay.com/portfolio/i I wanted to put both img and text in one anchor element, but the default underline on the anchor runs into the image, something that I'd like to change. I'd rather not turn off underlining altogether for the sake of usability. I removed the white space, and assigned a margin to the image, but, well, you see the results. Is there anything else I should try? |
#2
| |||
| |||
|
|
On Mon, 17 May 2004 17:10:53 -0400, Brian usenet3 (AT) julietremblay (DOT) com.invalid> wrote: http://www.julietremblay.com/portfolio/i I wanted to put both img and text in one anchor element, but the default underline on the anchor runs into the image, something that I'd like to change. I'd rather not turn off underlining altogether for the sake of usability. I removed the white space, and assigned a margin to the image, but, well, you see the results. Is there anything else I should try? Brian, I'm not sure I see the problem in Opera 7.23 or IE6. Both render a good space between the image and the text. Underlining looks good. What is it you want to change? |
#3
| |||
| |||
|
|
Neal wrote: On Mon, 17 May 2004 17:10:53 -0400, Brian usenet3 (AT) julietremblay (DOT) com.invalid> wrote: http://www.julietremblay.com/portfolio/i I wanted to put both img and text in one anchor element, but the default underline on the anchor runs into the image, something that I'd like to change. I'd rather not turn off underlining altogether for the sake of usability. I removed the white space, and assigned a margin to the image, but, well, you see the results. Is there anything else I should try? Possible solution (not tested), remove the underline of the link, and put underline on the text only. You won't see the difference ;-) |
#4
| |||
| |||
|
|
Els wrote: Brian wrote: http://www.julietremblay.com/portfolio/i I wanted to put both img and text in one anchor element, but the default underline on the anchor runs into the image Try this in your default.css: [code snipped] Works here on Firefox. Much thank for writing and testing code. I think I'm going to have to take a pass on the idea, though. It would make my css much more complicate (I'd have to link and hover selectors for just that page); it would not work on MSIE/Win; and the html would be about as complicated as it would for having 2 anchor elements. I'll probably go with 2 anchor elements. |
#5
| |||
| |||
|
|
Els wrote: Oops, didn't realise it doesn't work in IE. I'm sure it can be made to work though Don't be too sure. IE/Win does not do :hover for any element but <a>. |
![]() |
| Thread Tools | |
| Display Modes | |
| |