RE: Increase height of aui:input type="text" in liferay

thumbnail
Karthik V S, modifié il y a 12 années. Regular Member Publications: 106 Date d'inscription: 21/12/11 Publications récentes
hi

I awant to increase the height of a textbox in liferay in aui:input type="text". How can we achive it. I have used size property but it is increasing only the width of a textbox but not the height. If we use style, it is not working. If we put say height="30", then alos it is not working.

Need help with this regard.

Thanks in advance.

With regards,

V S Karthik
thumbnail
meera prince, modifié il y a 12 années. Liferay Legend Publications: 1111 Date d'inscription: 08/02/11 Publications récentes
Hi
Use Google chrome inspect element feature and look for what are the css have been used by input. then override those CSS.

or else try

<aui:input type="text" id="name" name="name" style="height:30px;"/>


Regards,
Meera Prince
thumbnail
Karthik V S, modifié il y a 12 années. Regular Member Publications: 106 Date d'inscription: 21/12/11 Publications récentes
hi meera,

Thanks for the solution which can be done through firebug (inspecting Element).
But by using style="height:30px; in aui:input property, it is not working.

With Regards,

V S Karthik
thumbnail
Pankaj Kathiriya, modifié il y a 12 années. Liferay Master Publications: 722 Date d'inscription: 05/08/10 Publications récentes
Use cssClass attribute to aui:input tag.

<aui:input cssclass="abcClass" name="abc">
		</aui:input>


And have css defined for that class.

.abcClass{
height:30px;
}
thumbnail
Karthik V S, modifié il y a 12 années. Regular Member Publications: 106 Date d'inscription: 21/12/11 Publications récentes
hi pankaj,

I had done the method that you had specified but it is not working. i.e it is not reflecting to the TextBox when css class is added.

With Regards,

V S Karthik
thumbnail
meera prince, modifié il y a 12 années. Liferay Legend Publications: 1111 Date d'inscription: 08/02/11 Publications récentes
Hi
yes when we pass css class that will used for <span> tag not for <input/> element that is why its not effected.

But direct style tag should work i don't know why its not worked..check its once again
<div id="mycontainer">
<aui:input type="text" id="name" name="name" style="height: 30px;"/> it should work

</div>

or ovveride css properties in ur local jsp
<style>
#mycontainer .aui-field-input-text{
height: 30px;
}
</style>

Regards,
Meera Prince