Solved

form-group bootstrap configuration

Posted on 2015-01-20
3
209 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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 …

743 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

17 Experts available now in Live!

Get 1:1 Help Now