Solved

form-group bootstrap configuration

Posted on 2015-01-20
3
236 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

710 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