Textbox style

Posted on 2011-04-22
Last Modified: 2012-05-11
The following code does not seem to work:

parameterStyle {border-width:1;border-style:solid;border-color:red;}
<input type='text' class='parameterStyle' style='width: 17px' onchange='checkParameter1(this);' />

Please let me know what is wrong.

Question by:dshrenik
    LVL 5

    Accepted Solution

    Please refer below code if you have difficulty in applying style class u have provided.

    OR describe in detail what exactly you wanna achieve?

    <style type="text/css">
    .parameterStyle {border-width:3px;border-style:solid;border-color:red;}
    <script type="text/javascript">
    function checkParameter1(obj){}
    <input type='text' class='parameterStyle' style='width: 17px' onchange='checkParameter1(this);' />

    Open in new window


    Author Comment

    Can we inlcude "style='width: 17px'" in the CSS?
    LVL 5

    Expert Comment

    by:Ronak Patel

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: HTML5 Mobile App Development with PhoneGap

    PhoneGap can help you leverage your already existing HTML5, JavaScript, and CSS skills in order to create and deploy cross-platform mobile apps.This program comprehensively covers HTML5 mobile app development from top to bottom.

    This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
    Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
    In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now