Ask Search:
Megan MoogMegan Moog 

Is there a way to change the width of an input field in Visualforce?

I am creating a visualforce page that requires a 9 column 8 row input field data table. I have the table created but every input field is the same length and I need to make some shorter to fit the table in my page perameters.

The Qty box should be smaller than the Description box, etc.

Does anyone know a way i can adjust the width of these fields (CSS, etc)
Best Answer chosen by Megan Moog
Kishore B TKishore B T
Megan,
try this
<apex:inputField value="{!account.name}" style="width:10px;"/>

 

All Answers

Kishore B TKishore B T
Megan,
try this
<apex:inputField value="{!account.name}" style="width:10px;"/>

 
This was selected as the best answer
Kishore B TKishore B T
Megan did the solution help or stuck anywhere.
Please mark the relevant solution as best answer so that it'll keep the community clean and help others when they are stuck
Megan MoogMegan Moog
It worked! Thank you so much. This message was Classified as Confidential Reference.