twitter-bootstrap

Bootstrap 4 navbar active class

我只是一个虾纸丫 提交于 2020-07-05 09:12:03
问题 I have started learning web programming as a project and I've been having a hard time with getting my links to show as active on the navbar. I did start by looking for similar questions asked in the past but none of the answers seemed to fix my problem. Here is my code <div> <hr> <nav class="container-fluid navbar navbar-expand-sm bg-dark navbar-dark" style="padding-left: 75px; margin-top: -16px;"> <ul class="navbar-nav"> <li class="active nav-item"> <a class="nav-link active" style =

Bootstrap 4 navbar active class

空扰寡人 提交于 2020-07-05 09:09:07
问题 I have started learning web programming as a project and I've been having a hard time with getting my links to show as active on the navbar. I did start by looking for similar questions asked in the past but none of the answers seemed to fix my problem. Here is my code <div> <hr> <nav class="container-fluid navbar navbar-expand-sm bg-dark navbar-dark" style="padding-left: 75px; margin-top: -16px;"> <ul class="navbar-nav"> <li class="active nav-item"> <a class="nav-link active" style =

Change arrow colors in Bootstraps carousel

强颜欢笑 提交于 2020-07-04 05:47:29
问题 I'm obviously missing something stupidly simple here. I have images with a white background so I want to be able to edit the arrows on the Bootstraps Carousel so they are visible. So many changing the color of the arrows (NOT the background like I've done). CSS .carousel-control-prev-icon, .carousel-control-next-icon { height: 100px; width: 100px; outline: black; background-color: rgba(0, 0, 0, 0.3); background-size: 100%, 100%; border-radius: 50%; border: 1px solid black; } Carousel HTML

Bootstrap navbar margins

被刻印的时光 ゝ 提交于 2020-06-27 08:20:15
问题 I'd like to make the left and right margins of the navbar conetnt smaller so the "brand" (left most component) appears more on the left then the default and same for the right component. Can somebody point me to relevant less variables to modify? Thanks 回答1: With a basic layout, the CSS selector you want is body > .navbar .brand Play with margin-left and margin-right until you get the result you want. Depending on how you are calling your CSS styles, you may need to add !important as well, eg

Validation of form input fields in React

大憨熊 提交于 2020-06-27 08:09:48
问题 <div className="form-group"> <label className="col-sm-0 control-label"> Name :   </label> <input type="text" value={this.state.UserName} onChange={this.handleChangeUserName} placeholder="Name" pattern="[A-Za-z]{3}" className="form-control" /> </div> Hi, I am trying to validate a form input field in React using pattern validation. But it's not working. I am using validation as simple as pattern="[A-Za-z]{3}" . Kindly let me know how to work this out. Putting validation in React Bootstrap

Validation of form input fields in React

橙三吉。 提交于 2020-06-27 08:09:47
问题 <div className="form-group"> <label className="col-sm-0 control-label"> Name :   </label> <input type="text" value={this.state.UserName} onChange={this.handleChangeUserName} placeholder="Name" pattern="[A-Za-z]{3}" className="form-control" /> </div> Hi, I am trying to validate a form input field in React using pattern validation. But it's not working. I am using validation as simple as pattern="[A-Za-z]{3}" . Kindly let me know how to work this out. Putting validation in React Bootstrap

Accessibility Questions on best practices for aria-describedby and form fields

天大地大妈咪最大 提交于 2020-06-27 06:26:46
问题 The following example is a typical form field for collecting a first name. I have an aria-describedby on the input referencing two different text-areas that help describe the inputs function. The first aria-describedby reference is what I called "Hint" and is basically the placeholder attribute text on the input (aka the shadow text you see in the back of the text box). The “Hint” text area is a span with a class to visibly hide it but will still be read by screen readers. The second aria

How to delete local storage items of browser on logout using php

时光怂恿深爱的人放手 提交于 2020-06-26 06:14:08
问题 How to delete local storage items of browser on logout using php. I want to delete all saved browser data on logout using php. Because I want to show bootstrap alert box only on every login but not on every page refresh. When user logout it will again reset. When user again login it will show. My code is shown below $(document).ready(function() { if (localStorage.getItem('message1') != 'shown') { $('#message1').toggleClass('in'); window.setTimeout(function() { $("#message1").fadeTo(500, 0)

How to evenly space Navbar elements in Bootstrap 4

对着背影说爱祢 提交于 2020-06-25 09:00:29
问题 Building a bootstrap naviation for website. I'm having some trouble working out how best to space out the nav link elements on my navbar (and continue to look good for mobile). My navbar code is: <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet"/> <nav class="navbar navbar-toggleable-md"> <div class="container"> <div class="collapse navbar-collapse" id="navbarNav"> <ul id="menu-main-nav" class="navbar-nav"> <li id="menu-item-42" class=

How to evenly space Navbar elements in Bootstrap 4

血红的双手。 提交于 2020-06-25 08:59:29
问题 Building a bootstrap naviation for website. I'm having some trouble working out how best to space out the nav link elements on my navbar (and continue to look good for mobile). My navbar code is: <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet"/> <nav class="navbar navbar-toggleable-md"> <div class="container"> <div class="collapse navbar-collapse" id="navbarNav"> <ul id="menu-main-nav" class="navbar-nav"> <li id="menu-item-42" class=