JSF inputText and inputSecret differ in size

again just short:

I made a JSF login page that contains inputText for username and inputSecret for password. The size is 20 for both.

FF manages to show this correctly, IE shows them in different sizes. Is there a way to make them look alike in both?

Rgds,

           KB
+3
source share
1 answer

Perhaps you can show us the code snippet of these two inputs ... The best way to determine the size of these elements is to use CSS classes:

.myInput {
    width: 60px;
}

and then use this class in JSF components:

<h:inputText ... styleClass="myInput"/>
...
<h:inputSecret ... styleClass="myInput"/>
+2
source

Source: https://habr.com/ru/post/1711924/


All Articles