![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| www.amazon.co.uk is sending me HTML which (rendered down) amounts to: head style type="text/css" INPUT {font-family:fixed} /style /head body form input type="text" value="" /form They presumably wanted "monospace" where they had "fixed". My system doesn't have a fontface named "fixed" so both Opera and Firefox happily display <INPUT> controls with no font at all, i.e. white space with a minuscule cursor that indicates where the text would have been. |
|
Opera has a "User CSS" style sheet (I believe I can even specify a distinct one for each site). I tried adding: INPUT {font-family!important:monospace} … but that didn't make any difference. |
#3
| |||
| |||
|
|
head style type="text/css" INPUT {font-family:fixed} /style /head body form input type="text" value="" /form Can you reproduce the problem with a simple test case like the one above, or do you only see it on actual Amazon pages? |
#4
| |||
| |||
|
|
Ben C wrote: head style type="text/css" INPUT {font-family:fixed} /style /head body form input type="text" value="" /form Can you reproduce the problem with a simple test case like the one above, or do you only see it on actual Amazon pages? The test case above is at http://swiftys.org.uk/amazon.html and fails (in my case) to display text in the input area for both Opera 9.23 and Firefox 2.0.0.10 (which I would consider to be a bug in both cases). IE6/7 and Safari(Windows) work correctly. It is, however, system dependant, and I'm fairly sure it depends on what fonts you have (or probably don't have) installed. |
#5
| |||
| |||
|
|
input { font-family: monospace !important; } |
#6
| |||
| |||
|
|
Beauregard T. Shagnasty wrote: input { font-family: monospace !important; } Thanks for that. It certainly fixes the immediate problem, I can now see what I'm typing at www.amazon.co.uk For some reason it now uses a font that looks like Times New Roman and all my attempts to persuade it to use Verdana, Consolas, Bitstream Vera Sans (or any of my other favourite fonts) fail miserably, but I can live with this. My PC is, as far as I'm capable, a "Times New Roman"-free zone. |
#7
| |||
| |||
|
|
If Consolas, the only monospace among those you listed, is what you want, make it your monospace default in your browser settings. If somehow that fails, try: input {font-family: consolas !important} in your user stylesheet. |
![]() |
| Thread Tools | |
| Display Modes | |
| |