Skip to Content
author's profile photo Former Member
Former Member

Fixed Font on Input fields

Anyway to have the text people enter be FIXED FONT. Basically so the letter "W" and the letter "i" take up the same amount of space.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 14, 2004 at 06:24 AM

    I dont know of a standard way but you can use bsp:findandreplace to add <b>style="font-family: Fixedsys"</b> to your input tag.

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 14, 2004 at 06:29 AM

    One way to accomplish that:

    <% replace_string = `<input style="font-family:courier new;"`. %>
    <bsp:findAndReplace
    	find    = "<input"
    	replace = "<%= replace_string %>" >
    <htmlb:inputField
    	id          = "zeitv"
    	value       = "//model/vorschlag.zeitv" />
    </bsp:findAndReplace>
    

    If you want to have that for all input fields in your application you could also think about altering the design by using your own css file.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.