![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
On the http://skroc.pl/69d8 are images in the body (# singlepage), which are given to float. The problem is that after mouse is over on them if they flee the mouse (browser IE6 and 7). |
#3
| ||||
| ||||
|
|
Peter May wrote: On the http://skroc.pl/69d8 are images in the body (# singlepage), which are given to float. The problem is that after mouse is over on them if they flee the mouse (browser IE6 and 7). Part of the problem may be floating the image, but not the containing a> element. In Firefox, a mouseover on the image shows the :hover colors in a narrow block within the text, between the words where the a> markup is. That can't be what you intended: http://www.bergamotus.ws/screenshots/powiatdrawski.png |
|
I'm curious why those floated images are links in the first place - they just link to themselves, not enlargements as I expected. |
|
So first, try floating the <a>, not just <img>. IE has plenty of bugs where it comes to floats, so that may not resolve this particular issue. Adding position:relative to the floated element often helps. |
|
You should also try simplifying the CSS. 41KB is a massive stylesheet. You'll have a much easier task debugging a smaller file. KISS rules. |
#4
| |||
| |||
|
|
Peter May wrote: On the http://skroc.pl/69d8 are images in the body (# singlepage), which are given to float. The problem is that after mouse is over on them if they flee the mouse (browser IE6 and 7). Part of the problem may be floating the image, but not the containing a> element. In Firefox, a mouseover on the image shows the :hover colors in a narrow block within the text, between the words where the a> markup is. That can't be what you intended: http://www.bergamotus.ws/screenshots/powiatdrawski.png |
|
I'm curious why those floated images are links in the first place - they just link to themselves, not enlargements as I expected. So first, try floating the <a>, not just <img>. IE has plenty of bugs where it comes to floats, so that may not resolve this particular issue. Adding position:relative to the floated element often helps. |
#5
| |||
| |||
|
|
Bergamot pisze: Peter May wrote: http://skroc.pl/69d8 In Firefox, a mouseover on the image shows the :hover colors in a narrow block within the text, between the words where the a> markup is. That can't be what you intended: http://www.bergamotus.ws/screenshots/powiatdrawski.png Still not solved this problem :-( |
#6
| |||
| |||
|
|
Peter May wrote: Bergamot pisze: Peter May wrote: http://skroc.pl/69d8 In Firefox, a mouseover on the image shows the :hover colors in a narrow block within the text, between the words where the a> markup is. That can't be what you intended: http://www.bergamotus.ws/screenshots/powiatdrawski.png Still not solved this problem :-( That's because you're still floating just the image, not the <a>. Your stylesheet adds padding and colored parts to the <a>, which don't go away just because you floated the image. Float the <a>, not the image. |
![]() |
| Thread Tools | |
| Display Modes | |
| |