1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

input controls aren't using full width of container

Discussion in 'CSS' started by les_stockton, Apr 4, 2017.

  1. #1
    I'm using bootstrap, as well as some css supplied to my project when it was created via Visual Studio.
    My input controls, such as text, textarea, and selects are not expanding to the width available in the container control which is under a boostrap class.

    Here's an excerpt:
    <section>
    <div class="row">
    <div class="col-md-12">
    <div class="form-group">
    <label for="txtJobSafety">Job Safety Topic For the Day:</label>
    <input type="text" id="txtJobSafety" />
    </div>
    </div>
    </div>
    </section>
     
    les_stockton, Apr 4, 2017 IP
  2. Rokis

    Rokis Member

    Messages:
    60
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    45
    #2
    input {
    width: 100%;
    }
    
    Code (markup):
    That doesn't work?
     
    Rokis, Apr 12, 2017 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #3
    ... and answered his own question.
     
    deathshadow, Apr 25, 2017 IP
  4. malky66

    malky66 Acclaimed Member

    Messages:
    3,996
    Likes Received:
    2,248
    Best Answers:
    88
    Trophy Points:
    515
    #4
    He might as well have started the thread with " I smeared myself in dogshit".
     
    malky66, Apr 25, 2017 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #5
    You mean like the SECTION tag that's probably not a SECTION (not that SECTION even has a reason to exist as a tag), endless pointless DIV for nothing, no name on the input, XML closures whilst likely not even in a XML document, and endless pointless garbage classes for nothing?

    Probably doesn't even have a FIELDSET either.

    Bootcrap, teaching people how NOT to write HTML or leverage CSS since 2011.
     
    deathshadow, Apr 25, 2017 IP