Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8558173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:45:00+00:00 2026-06-11T15:45:00+00:00

I have the following simple markup: <div class=container> <div class=row> <div class=span8> <!- Main

  • 0

I have the following simple markup:

<div class="container">
    <div class="row">
        <div class="span8">
            <!- Main page -->
        </div>
        <div class="span4 visible-desktop">
            <!- Right-hand Sidebar -->
        </div>
    </div>
</div>

Basically, all I want is to remove the sidebar for non desktop devices so the main page takes up the whole width.

With the markup used, the sidebar is not visible on smaller screens (e.g. tablets) but the main bit does not extend across the whole screen and it just leaves a white gap.

On very small screens (e.g. mobiles), the sidebar does disappear correctly – I take it that this is when there is no room for it.

How can I change the markup/styling to get it to work as I require for tablet devices?

(I know jQuery is an option but would prefer a non-js approach if possible)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:45:01+00:00Added an answer on June 11, 2026 at 3:45 pm

    Okay so updated my question as I didn’t understand my OP question correctly the first time.

    I dont believe that bootstrap intended the @media tags to work this way but you can edit your bootstrap-responsive.css code for the targeted media size.

    you should see something like this in the css file

    media (min-width: 768px) and (max-width: 979px) {
        .row {
             margin-left: -20px;
             *zoom: 1;
        }
    .
    .
    .
        .magepage{
             width:100%;
        }
    }
    

    and have your code like this

    <div class="container">
        <div class="row">
            <div class="span8 mainpage">
                <!- Main page -->
            </div>
            <div class="span4 visible-desktop">
                <!- Right-hand Sidebar -->
            </div>
        </div>
    </div>
    

    Hope this helps,

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Simple question: I have the following markup... <a href='#'> <img src='icon.png'> This is the
I have following simple class: @interface Article: NSObject { NSString *title; } @property (copy,
I have following simple program: import std.stdio; int main(string[] argv) { writeln(Hello, world!); return
I have the following simple class definition: //mycommon.h @interface CurrentPath : NSObject @property (nonatomic,
I have the following markup. I would like to add class_A to <p class=subitem-text>
Consider the following simple html page markup: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
I am building a simple image gallery based on the following markup: <div id=image-list>
I have following markup, <div custom=> <div> <template> <a custom=> (anything inside template should
I have the following mark-up: <fieldset> <div> <label class=editor-label>Question 1?</label> <input type=text class=editor-field />
I have the following simple page: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.