![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Also sprach Els: As the borders (on hover) add to the height of the picure, there's a green line between the bottom of the photo and the frame. (repetition of the bgm.gif) Just alter the height of the picture or the bgm.gif, and the green line will disappear as well. Ah yes, I am aware of that. The example page I put online was actually just for trying out this border hover thing. When I realized the "green line problem" I thought it was not worth doing anything about it at this point, because the "real" page would use completely different graphics. Meanwhile I have tested on IE5,6, OP5,6,7, NN4,6,7 and Mozilla 1.1 and all is well (only OP5,6, and NN4 refuse to show borders). B.T.W. isn't there a shorter way to write my border definitions (if possible combining those with the same color, so I need to specify the colors just once)? |
#12
| |||
| |||
|
|
Yes, you can write them together, separated by a comma (,): body,h1,p,span,div {color: red; background: yellow;} |
|
I think you can do that with the link-borders as well: td a:link,visited img {border: 2px solid green;} td a:hover,active img {border: 2px solid blue;} |
|
Haven't tried that, though, have a go at it, and see if it works :- |
#13
| |||
| |||
|
|
Els <els.aNOSPAM (AT) PLEASEtiscali (DOT) nl.invalid> wrote: Haven't tried that, though, have a go at it, and see if it works :- What a foolish advice. Especially since it might appear to "work" (i.e., do what you mean, even though the specifications clearly imply that a conforming browser must do something else) on some faulty browsers. First check what the specifications say. Then start checking how widespread browser support is, and draw your conclusions. |
#14
| |||
| |||
|
|
Did you learn to use css fluently just by memorizing the specs, Jukka?? |
#15
| |||
| |||
|
|
Experience comes with trying out not from reading specs. |
#16
| |||
| |||
|
#17
| |||
| |||
|
|
Els wrote on 21 aug 2003 in comp.infosystems.www.authoring.stylesheets: You are absolutely right. Won't give that advice anymore. No, Els, he is not right. |
|
Trying out is the essence of programming. |
#18
| |||
| |||
|
|
What I'd like to know is if I can somehow combine the two statements below into a single one. I know I can specify all for border sides at once and I can specify them one by one as shown below, but can I specify two adjacent ones together? border-right:1px solid white; border-bottom:1px solid white; |
#19
| |||
| |||
|
|
Els wrote on 21 aug 2003 in comp.infosystems.www.authoring.stylesheets: You are absolutely right. Won't give that advice anymore. No, Els, he is not right. Trying out is the essence of programming. Inducing that is a good cause in itself. |
|
Laat je niet overdonderen. |
#20
| |||
| |||
|
|
What I'd like to know is if I can somehow combine the two statements below into a single one. I know I can specify all for border sides at once and I can specify them one by one as shown below, but can I specify two adjacent ones together? border-right:1px solid white; border-bottom:1px solid white; |
![]() |
| Thread Tools | |
| Display Modes | |
| |