Adaptable jquery-steps

While implementing jquery-steps, I have encountered a minor issue with the responsiveness of the step tabs. The horizontal implementation is working well overall, but the tabs do not stack as intended in the example provided. As a result, when resizing the window, the step tabs become very small and unreadable.

The examples on the developer site are all on one page, making it difficult to determine the appropriate CSS to address this issue.

I would appreciate any assistance:

<!DOCTYPE html>
<!--[if lt IE 7]>      <html lang="en" xmlns="http://www.w3.org/1999/xhtml" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html lang="en" xmlns="http://www.w3.org/1999/xhtml" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html lang="en" xmlns="http://www.w3.org/1999/xhtml" class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en" xmlns="http://www.w3.org/1999/xhtml" class="no-js"> <!--<![endif]-->
<!-- More HTML code here -->

In the `jquery.steps.css` file, I made an adjustment from changing the width of the steps list items to ensure consistency:

.wizard > .steps > ul > li
{
    width: 20%;
}

This change was necessary to align the 5th step correctly within the wizard navigation.

Your insights and suggestions are greatly appreciated.

JP

Answer №1

Starting with the default CSS is always a solid foundation for any project, as it's designed to be versatile and easily incorporated into various projects, including existing ones.

On my own project site (), I've customized the CSS specifically for my website to ensure optimal responsiveness. However, I'm more than willing to share my unique CSS code that facilitates this responsive design.

In the snippet of CSS below, you'll find two sets of media queries tailored to enhance user experience on smaller devices such as tablets and phones.

@media (max-width: 600px)
{
    .wizard > .steps > ul > li
    {
        width: 50%;
    }

    .wizard > .steps a,
    .wizard > .steps a:hover,
    .wizard > .steps a:active
    {
        margin-top: 0.5em;
    }

    .wizard.vertical > .steps,
    .wizard.vertical > .actions
    {
        display: block;
        float: none;
        width: 100%;
    }

    .wizard.vertical > .content
    {
        display: block;
        float: none;
        margin: 0 0.5em 0.5em;
        width: auto;
    }
}

@media (max-width: 480px)
{
    .wizard > .steps > ul > li
    {
        width: 100%;
    }
}

I trust that this information will be beneficial to you. Should you have any further questions or require additional assistance, please feel free to reach out to me anytime.

Rafael

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

Exploring Tabletop.js to retrieve information from an array of data

Issue I am currently attempting to retrieve data from an array that contains two objects. I have implemented Tabletop.js to fetch the data from a public Google Spreadsheet, but I encountered an error in the console stating ReferenceError: object is not de ...

What could be causing my div link to redirect to different content instead of the intended destination?

When creating a div to provide information about a course, including the price and a "Take Class" button that links to the purchase page, I encountered an issue where the link extends beyond the intended area. @import url(https://fonts.googleapis.com/cs ...

Leveraging AJAX to extract information from another website

Looking to create a personal website that collects Coronavirus data for tracking purposes? The site will monitor the global infection rate, total global cases, total United States cases, and cases by state. However, gathering data from all 50 states + terr ...

What is the best way to save a large array to a .txt file in node.js?

It seems that using fs.writeFile is the obvious solution. However, after reading the response to this question, it appears that a Stream technique might be more appropriate. In an attempt to delete a line from a text file by converting it to an array, I ...

Using NodeJS to generate a multipart/mixed response

I am faced with a particular situation: creating a multipart/mixed response in NodeJS with full control over the communication on both ends to avoid interoperability issues. A JSON file containing a list of nodes describing each ZIP file, for example: [{ ...

Thundercss and @personalized media

After installing lightningcss and configuring the vite config, I defined lightningcss and customMedia as true. import browserslist from "browserslist"; import { browserslistToTargets } from "lightningcss"; return defineConfig({ ...

What is the process for calling CSS from a separate directory?

I am looking to start building a website. Can someone advise on how to organize html, css, and javascript into separate folders? One folder will house files specifically for writing HTML and JavaScript, while the other folder will be dedicated solely to ...

Ways to set a background image for two separate components in Angular

Trying to figure out how to integrate this design: https://i.sstatic.net/r70a4.png The challenge lies in having a background image that spans across the navbar and the content below it. Currently, the code separates the navbar component from the content ...

Struggling to transfer an image to a Linux server using Phonegap and PHP

An application being developed using PhoneGap requires an image to be uploaded to a Linux server. To test this process, a CentOS 7 VM was set up and the LEMP stack was installed and configured on it. A php script named upload.php was created (shown below), ...

Encountering error message "Module not found '@angular/compiler-cli/ngcc'" while attempting to run "ng serve" for my application

Encountering an error while trying to run my app, I have attempted various solutions available online. These include uninstalling and reinstalling angular/cli, verifying the correct version in package.json (ensuring it is "@angular/cli" and not "@angular-c ...

JavaScript Inferno" - Similar to the concept of "DLL Hell

I'm working on an ASP.NET webpage that has the following structure: <%@ Page Language="VB" MasterPageFile="~/LGMaster.master" AutoEventWireup="false" Inherits="com.Genie.PresentationLayer.Web.frmPNList" title="Primary Nominals results list - RESTR ...

Images set as the og:image on the following 14 websites hosted on Vercel require authentication to be displayed

After deploying my Next.js 14 site on Vercel, I placed opengraph-image.png in the app folder alongside layout.tsx. Upon inspecting the meta tag, I noticed the following: <meta property="og:image" content="https://ns-website-6pnvd8ili-mare ...

Having difficulty interpreting $ .ajax data within the controller

I am currently working on a jQuery .ajax project where the user interacts with a button in the view, triggering a $.ajax request. The goal is to send the user's name to a controller, which will then add "Hello" in front of the name and send back a JSO ...

Angular Display of Scrolling Feature not Functioning Properly

After clicking on show5 and then goto5, everything functions as expected. However, when clicking on showngo5, it does not work as anticipated, despite the fact that the same methods are being called. What is causing showngo5 to not work in this plunker h ...

How to Align position:relative Divs Horizontally Using CSS

My goal is to showcase content from my website located at . I want to have the ability to place this content into a designated div where I can easily center or style it as needed. The issue arises when attempting to float the content, as it doesn't fu ...

How to center elements vertically within a div using CSS

I am trying to align the contents vertically in a div, but the first div does not seem to be centered like the second one. I need both of them, along with their children, to be vertically centered inside the div. For example: [type='file'] { b ...

Troubleshooting problem with column filtering width in jQuery Datatables

Encountering a problem where applying columnFilter() to jQuery Datatables causes the column widths to become excessively large. Attempts to use sWidth for each aoColumn have failed, as well as turning off bAutoWidth with no success. Displayed below is my ...

What is the process for deploying a next.js application with a custom express backend to a VPS or Heroku platform?

Does anyone have advice on deploying a next.js application with a custom express backend to either a VPS or Heroku? ...

Javascript is utilized to populate text within a div, although the animation is exclusively applied to the initial text

I am currently working on designing a landing page that showcases a dynamic display of rotating texts with a typewriter-like animation effect. While I have successfully implemented the animation for the first text, I am facing an issue where the subsequent ...

How can I expand and collapse elements using Angular?

I'm looking to implement a collapsible feature. When the user clicks on the "Section Title", I want the corresponding information to collapse or expand. @Component({ selector: 'knowledge-base', template: ` <div *ngFor="let sect ...