cancel
Showing results for 
Search instead for 
Did you mean: 

Fixed Font on Input fields

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Any other suggestions? I'm limited on what I can do on the screen code wise. Because of an SAP short dump. Can I change SAP Style Sheets?

Former Member
0 Kudos

Hi Anthony

You can't change SAP Style sheet but you can apply your own theme to override standard style sheets.

check the following link

http://help.sap.com/saphelp_47x200/helpdata/en/4e/7feef553415e4fb357e80f7a6223b1/frameset.htm

Naresh

Answers (1)

Answers (1)

maximilian_schaufler
Active Contributor
0 Kudos

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.