Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Increase height of aui:input type="text" in liferay
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
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
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
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
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
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
Use cssClass attribute to aui:input tag.
And have css defined for that class.
<aui:input cssclass="abcClass" name="abc">
</aui:input>And have css defined for that class.
.abcClass{
height:30px;
}
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
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
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
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
Community
Company
Feedback