Responsive layout using Twitter Bootstrap framework

I have created a responsive layout that works well until the screen width is less than 800px, causing it to become disorganized.

Is there a way to ensure that the logos simply shrink instead of rearranging themselves underneath each other?

Check out this JSFiddle link for reference.

Code snippet:

<div class="container">
<div class="testimonials row-fluid">
    <div class="span6">
        <div class= ... (code continues)

CSS snippet:

.testimonials {
    background-color:#f7f7f7;
}
.quote {
    background: url("http://www.flexmail.net/images/quote_home.gif") left top no-repeat;
    height: 128px;
    margin: 20px auto 0 auto;
    padding: 20px;
}
.quote .text {
    color: #444444;
    line-height: 22px;
}
.quote .author {
    color: #666666;
    float: left;
    font-family:'colaboratelightregular';
    font-size: 12px;
    line-height: 22px;
    margin: 10px 0 0;
}

Answer №1

In smaller windows, each spanX will be displayed as a row spanning 100% width, which is likely the cause of the layout issue you are experiencing :)

While there may be an alternative solution available, it involves duplicating images within the HTML code.

To address this, I have included some css

.visible-phone img {
    float: left;
    width: 25%;
}

As well as additional html

<div class="row-fluid visible-phone">
    <a href="#"><img src="http://www.flexmail.net/images/logos/logo_flexmail.png" alt="gas" /></a>
    <a href="#"><img src="http://www.flexmail.net/images/logos/logo_flexmail.png" alt="gas" /></a>
    <a href="#"><img src="http://www.flexmail.net/images/logos/logo_flexmail.png" alt="gas" /></a>
    <a href="#"><img src="http://www.flexmail.net/images/logos/logo_flexmail.png" alt="gas" /></a>
</div>

You may notice that all images are duplicated in the html, with classes visible-phone and hidden-phone applied to the wrapping div elements.

http://jsfiddle.net/Pnc3g/5/

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

Tips for improving the loading speed of my website

What are the best ways to improve website optimization and increase page speed? I have already minified JavaScript and CSS, as well as optimized images, but Google continues to penalize our pages. Any suggestions? ...

Make the HTML select element display using the default user agent CSS and arrow image

One of the HTML elements I'm working with is a select element, which looks like this: <select> <option>1</option> <option>2</option> <option>3</option> </select> This select element ha ...

Using jQuery to add HTML elements before the content of a list

I'm facing a challenge in dynamically adding new elements to my list. Through ajax, I retrieve HTML data from my database and aim to iterate through each new <li> element to gradually prepend them to the top of the list. This is the snippet of ...

Pure CSS - Fixed top menu after scrolling past header

Can we achieve the following using pure CSS without the use of JavaScript, by utilizing the sticky position property? * { margin: 0; padding: 0; font-family: arial; } header { width: 100%; height: 200px; background: grey; } .sticky-nav { ...

Arranging divs for dynamic movement with window resizing

Seeking a solution to have words on my background image function as links, I planned to place transparent divs over the words in the background. However, struggling with positioning these divs accurately as the window is resized. Code Snippet: <div id ...

What could be causing the space below my header in Internet Explorer?

Recently, I began constructing a website using HTML5 and CSS at . Unfortunately, I am struggling to understand why there is a noticeable gap below the header in Internet Explorer. Can anyone provide assistance? ...

The combination of touch events and jquery-ui sortable is not functioning properly on mobile devices as anticipated

Perspective: Developing a mobile web application involves using jquery-ui sortable to organize a list of items, with restrictions on sorting the first and last items. The Objective: The aim is to implement the jquery-mobile tap-hold event to allow users ...

Adding color between lines in Three.js

I have two different sets of vertices. One set contains real vertices, and the other set contains the same vertices but with a y value of zero. I am trying to connect these vertices and fill them in but have not been successful so far. I have attempted to ...

Ensure that an input field on the PHP form is required

Currently working on a form with multiple input fields. I'm wondering if there's a way to prevent the form from being submitted to the server if a specific field is left empty. I'd like to use a JavaScript pop-up box to notify the user inst ...

display information in a structured table format

I am in need of HTML code that will render headers aligned above corresponding values when displayed. header1 header2 header3 List item 1 value111 value112 value113 value121 valueb122 valueb123 List item 2 value211 value212 value213 value221 valueb2 ...

What could be causing the malfunction of the contact form on my website?

The contact form is not functioning properly Below is the code I am using on the page: Jquery in Index.html <!-- JAVASCRIPT CODE FOR CONTACT FORM --> <script type="text/javascript"> $(document).ready(function ...

showcasing recommended options in the search bar through the use of javaScript

Hey there, I've been working on creating result suggestions for my search bar. The generation process is all set, but I'm facing an issue with displaying the elements on the HTML page. During testing, I keep seeing ${resultItem.name}, and when I ...

What is preventing this from functioning properly? (html/javascript)

I need help checking if this code is correct, as I am not very knowledgeable about HTML. I would appreciate it if someone could explain it to me in simple terms so I can understand. Here is the code: <input type="text" id="user" value=""> <inpu ...

The requested external js scripts could not be found and resulted in a net::ERR_ABORTED 404 error

import express, { Express, Request, Response } from 'express'; const path = require("path"); import dotenv from 'dotenv'; dotenv.config(); const PORT = process.env.PORT || 5000; const app = express(); app.use(express.static(path.join ...

Ensuring a full height div using CSS

I have encountered an issue and created a fiddle to help illustrate it: http://jsfiddle.net/XJpGT/ The challenge I am facing is ensuring that the height of the green box always remains at 100%, while also making sure that the green and orange boxes do not ...

Tips for inserting HTML code within session statements

When a user signs in, I want to display this content. However, when I try to include the code within the echo statement, it doesn't work. How can I achieve this? <?php if(isset($_SESSION['userID'])){ echo 'PLACE CODE HERE'; } ? ...

Hidden background image not shown

While working on a component in vue.js, I encountered an issue where the image is not being displayed within the specified tag: <b-icon v-if="displayShowHistory && checkRole('showHistory')" class="backlight show-modal-ic ...

Tips for Passing On Parent tabindex Value to Children

Is there a way to propagate a parent's tabindex value to all of its children without individually setting tabindex for each child? Here is an example code snippet: <div id="app"> <div tabindex="2" class="parent-sec ...

Getting a jquery lightbox up and running

After experimenting with three different jquery plugins in an attempt to create a lightbox that appears when clicking on a link containing an image, I am currently testing out this one: . Despite adding the plugin source in the head and ensuring that the l ...

React-tooltip and a challenge with Server-Side Rendering in Next.js

In my Next.js app, I make use of the react-tooltip library for tooltips. One peculiar issue that I have noticed is that whenever I refresh a page containing a tooltip, I encounter the following error: react-dom.development.js:88 Warning: Prop `dangerously ...