![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Being deliberately deceptive is not in the interests of the user. |
|
Normally I would agree, but this is going to be an application for a closed circle of users. (Replacement for a software they used locally). I think (in this case only!) it would be more confusing for the user, to explain why this here is a button and that there is a link ... It is not meant for tricking the user but to give him something he remenbers. |
#12
| |||
| |||
|
|
Tim <admin (AT) sheerhell (DOT) lan> wrote: I think (in this case only!) it would be more confusing for the user, to explain why this here is a button and that there is a link ... It is not meant for tricking the user but to give him something he remenbers. Food for thought: Unless it works as a direct replacement (in exactly the same way), |
|
or in an immediately intuitive manner, you might be creating a new problem. |
#13
| |||
| |||
|
|
This is one I used recently: #button { margin:0; display:inline; color:#fff; background-color:#f00; text-decoration:none; font-family: tahoma; font-weight:900; border:1px solid #fff; } a.button { color:#fff; background-color:#f00; text-decoration:none; font-size:1em; font-weight:900; font-family: tahoma; padding: 0.5ex 1ex; border:1px solid #fff; } I'd like to know what shortcomings it has - if any in your application. |
#14
| |||
| |||
|
|
This is one I used recently: #button { margin:0; display:inline; color:#fff; background-color:#f00; text-decoration:none; font-family: tahoma; font-weight:900; border:1px solid #fff; } a.button { color:#fff; background-color:#f00; text-decoration:none; font-size:1em; font-weight:900; font-family: tahoma; padding: 0.5ex 1ex; border:1px solid #fff; } I'd like to know what shortcomings it has - if any in your application. |
#15
| |||
| |||
|
|
Hello, for a project I am currently working at, I have to use form-buttons and normal links (a href...) in the same pages together. Both should look the same. No problem with IE and Opera but I cannot get this to work with Mozilla. If anyone would like to give me an hint, he can find an example here: http://www.wiesodenn.de/problem/problem.html dummy1 and dummydummy2 are form-buttons, dummy3 is the href-link. The text for the buttons and the links is generated with php and that is the reason why Ido not want to use images with grafic text as buttons. Does anyone know how to make this work with the main browsers? All three buttons should have the same size and that small border half way round... (by the way, I cannot check this on a Mac, I f anyone would be so nice..., thank you) Thank you in advance for any answer.. Klaus |
#16
| |||
| |||
|
|
for a project I am currently working at, I have to use form-buttons and normal links (a href...) in the same pages together. Both should look the same. No problem with IE and Opera but I cannot get this to work with Mozilla. If anyone would like to give me an hint, he can find an example here: http://www.wiesodenn.de/problem/problem.html All three buttons should have the same size and that small border half way round... I don't understand why you use padding in the stylesheet. Use: vertical-align:middle; text-align:center |
|
Anyway if your targent audience is very small you could also ask them to work with Javascript enabled and display the links as <button onClick="...">. |
#17
| |||
| |||
|
|
"Markus Ernst" <singlewohnung (AT) gmx (DOT) ch> schrieb: for a project I am currently working at, I have to use form-buttons and normal links (a href...) in the same pages together. Both should look the same. No problem with IE and Opera but I cannot get this to work with Mozilla. If anyone would like to give me an hint, he can find an example here: http://www.wiesodenn.de/problem/problem.html All three buttons should have the same size and that small border half way round... I don't understand why you use padding in the stylesheet. Use: vertical-align:middle; text-align:center my problem is not the alignment of the text, it is the size of the button. The picture under the text is 120px in width but in Mozilla it is shown (much) smaller if the text is only a few characters. Therefore I tried to use padding and margin to stretch the button to the picture-size. Anyway if your targent audience is very small you could also ask them to work with Javascript enabled and display the links as <button onClick="...">. I do not like to use Javascript and more important, customer does not want me to use Javascript. Thanks Klaus |
#18
| |||
| |||
|
|
my problem is not the alignment of the text, it is the size of the button. The picture under the text is 120px in width but in Mozilla it is shown (much) smaller if the text is only a few characters. Maybe it would be just a good idea to simplify. I don't see a reason for parallel definitions of a general .button class and a special one for the links. |
|
I am quite sure that the padding stuff can produce problems or differences at least. |
|
BTW the correct notation for pseudo classes is AFAIK a.button:hover and not a:hover.button. |
![]() |
| Thread Tools | |
| Display Modes | |
| |