Numerous Minor Hiccups Found in Bootstrap 3 (CSS)

I'm currently working on a website project and utilizing bootstrap 3, but I've encountered some issues that I need help with:

Site in Large window :

Site in small window :

1) Background image : I'm facing an issue where the background image resizes to a certain point when the window is made smaller, then stops resizing. In mobile view, there is a large overflow hidden. Is there any way to make the background image resize according to the window size?

Here's my current CSS code for the background:

#wrap {
  min-height: 100%;
  height: auto;
  /* Negative indent footer by its height */
  margin: 0 auto -50px;
  /* Pad bottom by footer height */
  padding: 0 0 50px;
  background:url("/images/bgg5.jpg") no-repeat;
  background-size: cover;
}

2) Input fields: The input fields are resizing too much in smaller browser windows. Is there a way to prevent them from resizing unless the window width is smaller than the length of the input field?

This is how it appears in a mobile view:

Below is the code for one input field:

<div class="form-group">

                <label for="inputID">Input</label>

                <div class="row">

                    <div class="col-xs-4">

                        <div class="input-group">

                            <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>

                            <input type="text" class="form-control" placeholder="Enter Input" name="login">

                        </div>

                    </div>

                </div>

            </div>

Answer №1

  1. Sorry, but your image cannot be resized further due to its insufficient height. The background-size:cover property requires the image to cover the entire screen without losing proportion. Consider setting a custom background position CSS specifically for mobile devices to display the desired portion of the background.

  2. The width of your div is determined by the class col-xs-4, which allocates 33% of the width on screens equal to or bigger than x-small. To make it full width on a phone, you may want to change it to col-xs-12 col-sm-4.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The foundation gem is encountering an issue with incompatible units: 'rem' and 'px'

After installing the foundation gem version 5.5.2.1, I encountered an error when starting the application: Showing /home/user/Scrivania/sites/store/app/views/layouts/application.html.erb where line #9 raised: Incompatible units: 'rem' and &apos ...

Dealing with conditional focus and selection in a text input using AngularJS

Looking at the code snippet provided in http://plnkr.co/l6kv7x, I am aiming to shift the focus to a text input and highlight the content when the user clicks on the edit button. However, I have been unsuccessful in achieving this functionality using Angu ...

The $digest method is refreshing the main $rootScope parent

I'm having trouble grasping the concept of how $digest functions. I came across a response on Angular $scope.$digest vs $scope.$apply that explains it as follows: " $digest() will update the current scope and any child scopes. $apply() will update ev ...

The background only partially covers the section

In a current project test using the provided template from , I encountered an issue when changing the section <section role="main" id="main"> to incorporate the carbon class as the background does not fill completely. My attempts to adjust the secti ...

The React Js mapping function causes an error stating "function is not valid"

I'm currently facing an issue where I am attempting to iterate through objects to showcase their values in my React JS assignment. Unfortunately, it seems that I am encountering difficulties accessing the values of nested objects using the map functio ...

The elements within the side navigation menu are not displaying correctly within the app component's HTML file

In my Models.ts file, I created a code that requires me to call the headers in side-nav.component.ts to app.component.html. However, when I try to call app.index.html by typing <side-nav><side-nav>, the component seems to be not specific. mode ...

Tips on choosing additional (sibling) elements with CSS?

My navbar has the following structure: <ul class="nav navbar-nav"> <li class="nav-item"><a href="#services">Services</a></li> <li class="nav-item"><a href="#work">Work</a></li> <li class ...

Enhance a React component by including additional properties when passing it into another component through props

I have a parent element with a dynamically changing height that I need to pass down to its child elements. To get and set the height of the parent element, I am utilizing a ref. The challenge lies in passing this height value from the parent component to ...

Tips for creating a hover effect on an icon within a CSS grid

I've just started learning to code and wanted to create a component for previewing/displaying a project I'm working on. I've been attempting to add a hover effect to my links such as the GitHubIcon and LaunchIcon, but so far, it's not w ...

Attempting to invoke selectize with an alternative parameter, however, it persists with the previous value

Trying to debug a function that takes a parameter and utilizes selectize.js. Initially, the function myFunc is called with a parameter value of 1. Everything works smoothly as data is fetched from the server and displayed in a dropdown list. However, upo ...

The browser returns a 404 error for the Web API POST request, but it is successful when made using PostMan and Swagger

I encountered a peculiar issue with my Web API: it returns a 404 error when called from AJAX, but functions perfectly fine on PostMan and Swagger. Here is the post method code snippet: // POST api/<controller> [HttpPost] public int Post(string url, ...

Alignment problem

In my design, I have a toolbar with flex display and I am trying to center my span element within it. However, I seem to be missing something in the CSS. CSS .toolbar { position: absolute; top: 0; left: 0; right: 0; height: 60px; d ...

When items are rearranged or moved between lists, the jQuery UI Sortable is triggered

Is there a way to trigger a jQuery UI Sortable event only when an item is dragged from one list to another, or rearranged within the same list? In addition, I would like to identify the original source list of the dragged item. I attempted using the stop ...

What is the best way to trigger a function once another one has finished executing?

After opening the modal, I am creating some functions. The RefreshBirths() function requires the motherId and fatherId which are obtained from the getDictionaryMother() and getDictionaryFather() functions (these display my mothers and fathers on the page s ...

Adjust the hue of a picture rendered on an HTML5 canvas element

Looking at this image, I am wondering: What is the best way to change the entire color of this image to a custom RGB value? Essentially, if I have a grayscale image, how can I convert it back to color by specifying any RGB value? ...

Polymorph 1.0 - Using CSS Class Binding for Dynamic Properties

I attempted to link a CSS Class to a paper-progress element using the value of my property to change the item's color. I referenced Polymer's example on GitHub and studied the documentation on Data-binding. Here is my code: http://jsbin.com/bide ...

`replace an element and its children with the same identifier`

For my project, I am attempting to dynamically load e-book chapter pages using ajax requests. Here is an example of the HTML markup I am working with: <html><body> <div id="p5"> <div id="p6"> <p class="heading">heading1</p ...

Ensure that the background image adjusts appropriately to different screen sizes while maintaining its responsiveness

Currently in the process of developing a single page application using CRA. My goal is to create a hero image with an overlay at the top of the application using a background image. However, I'm facing issues with maintaining the responsiveness of the ...

jQuery Remote Validation Rule with Custom Success Message

I have successfully implemented JQuery validation in my registration form, however I have encountered a slight issue. Currently, if an email already exists, an error message is displayed. What I would like to do is modify it so that when the email is avail ...

What are some ways to stop touch events from being handled by default?

My goal is to create a functionality similar to embedded Google maps where my component should respond differently based on the number of touches - allowing scrolling and zooming depending on the interaction. Specifically, I want to enable double touch nav ...