Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

form-group bootstrap configuration

Posted on 2015-01-20
3
Medium Priority
?
269 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

688 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