Solved

form-group bootstrap configuration

Posted on 2015-01-20
3
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

622 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