Solved

form-group bootstrap configuration

Posted on 2015-01-20
3
216 Views
Last Modified: 2015-01-21
Hi there!

Through bootstrap tutorials I was able to put the code below to work as expected:

------------------

<div class="form-group has-warning has-feedback">
          <label class="control-label" for="inputGroupWarning1"> </label>
          <div class="input-group">
          <span class="input-group-addon"><%=(myRecordSet.Fields.Item("PgQuestAltA").Value)%></span>
          <input type="text" class="form-control" id="inputGroupWarning3" aria-describedby="inputGroupWarning3Status">
          </div>
          <span id="inputGroupWarning3Status" class="sr-only">(warning)</span>
          </div>
------------------

It also works with the "has-error" and the "has-success" classes, but I wonder what should I do, in the code above, to let the result be exactly as it is now, but without any color involved (nor orange for warning, green for success, red for error).

In other words, what should I change/omit in the above code to "take out" any color related to the form-group item, please?

Thanks a lot,
fskilnik.
0
Comment
Question by:fskilnik
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40560071
You need to modify the declarations where the colors are being assigned, or drop the bloatware classes and define your own.  If you don't know how to do that the you need to ask yourself why you are handing over control of your work to code you don't understand.

If you are going to rely on code written by someone else, you need to learn enough about the underlying code to understand it, or you have no real control of your work.

Cd&
0
 

Author Comment

by:fskilnik
ID: 40560979
Dear Cd&,

I will try to proceed as you indicated here: modify the declarations where the colors are being assigned. This is more compatible to my (limited-) skills.

(I am not a professional programmer. I learned - and keep learning - while updating/creating my own site.)

In (say) approx. 24h I will be back, to ask something more specific related to my trial or, I hope, to give you full marks.

Thanks for your support.

Regards,
fskilnik.
0
 

Author Comment

by:fskilnik
ID: 40561081
Perfect, Cd& !

Of course I should have thought about that... but I am very glad you did!   :)

Now the "warning" is neutralized (as shown in the image attached).

Regards,
fskilnik.

P.S.: just for the record (for my future reference and for other potential users):

I changed only the following properties in one file only: the "bootstrap.css" file present at the "css" folder (created right-from-root):

.has-warning .help-block,
.has-warning .control-label,
.has-warning .radio,
.has-warning .checkbox,
.has-warning .radio-inline,
.has-warning .checkbox-inline {
      color: #000;
}
.has-warning .form-control {
      -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
      box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
      border-top-color: #000;
      border-right-color: #000;
      border-bottom-color: #000;
      border-left-color: #000;
}
.has-warning .form-control:focus {
      -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;
      box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b;
      border-top-color: #000;
      border-right-color: #000;
      border-bottom-color: #000;
      border-left-color: #000;
}
.has-warning .input-group-addon {
      color: #000;
      border-top-color: #000;
      border-right-color: #000;
      border-bottom-color: #000;
      border-left-color: #000;
}
.has-warning .form-control-feedback {
}
warning-changed.gif
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

911 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

21 Experts available now in Live!

Get 1:1 Help Now