Prime Keyboard Component Size

UI Components for JSF
Post Reply
User avatar
baddog
Posts: 10
Joined: 05 Apr 2012, 19:51
Location: Calgary Alberta Canada
Contact:

03 May 2012, 20:32

Hello

SO i have implemented a prime keyboard component and was wondering how to make the keyboard itself bigger ?? I'm not a big CSS guru so i tried to set the "width" attribute of style but that only affected the input field that is displayed.

how do I keep the input field as is and make the keyboard that appears at least 3x larger than the default ???

any help is greatly appreciated!!



Primefaces is the shizzlenizzle !!!
David Matrai | Propagator of all that is awesome! [PF 3.2 - Glassfish + Liferay 6.1 JSF2 Portlets] [PHP + PrimeUI]

User avatar
T.dot
Expert Member
Posts: 620
Joined: 01 Feb 2012, 15:39
Location: Vienna/Austria

04 May 2012, 09:06

Check out the generated html/css using your browsers development tools (Firebug, ...).

For the start you can try the following css:

Code: Select all

.keypad-key {
    font-size: 3em !important;
    width: 48px !important;
}
rest should be easy to find.

User avatar
baddog
Posts: 10
Joined: 05 Apr 2012, 19:51
Location: Calgary Alberta Canada
Contact:

04 May 2012, 16:45

Excellent !!!

Thank you !!!!

Code: Select all

.keypad-key {
	font-size: 3em !important;
        width: 48px !important;
}
.keypad-row {
	width: 260px !important;
}
.keypad-close {
	font-size: 3em !important;
	width:100px !important;
}
.keypad-clear {
	font-size: 3em !important;
	width:100px !important;
}
.keypad-back {
	font-size: 3em !important;
	width:100px !important;
}
that was just what i needed to get started .. I hope the above code helps others as well

:D
David Matrai | Propagator of all that is awesome! [PF 3.2 - Glassfish + Liferay 6.1 JSF2 Portlets] [PHP + PrimeUI]

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 38 guests