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

  • Home
  • SEARCH
  • 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 8823605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:23:55+00:00 2026-06-14T06:23:55+00:00

I have the following html- <div class=container> <h1 class=page-header id=property_head>A cool title</h1> <div class=row

  • 0

I have the following html-

 <div class="container">
  <h1 class="page-header" id="property_head">A cool title</h1> 
  <div class="row text_img">
    <div class="span9">
      <div class="row">
        <div class="span3" id="activity"><img src="http://some/img.png"></div>
        <div class="span5" id="activity_text"><h3 class="text_title">Great Title</h3><br><p class="lead">Foo</p></div>
      </div>
    </div>  
  </div>
 </div>

and the following css-

.text_img {
  padding: 30px;
  margin-bottom: 30px;
  margin-left: 100px;

}

#activity {
  float: left;
  margin-right: 30px;
}

#activity_text {
  float: right;
  border:1px solid black;
}

I’m using bootrap for container page-header row and span3/5. When I resize the browser below for ex 300px #activity_text positions itself underneath #activity which is what I want.

I’m using media queries and I would like when the breakdown of the text positioning itself beneath the img, for the img to center above the text and remain that way for all width’s below (using a media query).

After trying multiple approaches I am unsure of the CSS to make this work. Thanks for your atteniton. Take a look at the attached.enter image description here enter image description here

NOTE: Changing the colors of the background to help notice the media query breakpoints

  • 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-14T06:23:57+00:00Added an answer on June 14, 2026 at 6:23 am

    At the specific media query you’ll just have to remove any floats, give it a width & margin:auto. e.g. at your desired media query max-width:

    #activity {
        float:none;
        width:50%; /* or whatever you want it to be */
        margin:auto;
    }
    

    Depending how Bootstrap CSS is setup you may have to add !important to one or all of the CSS above to make sure it does what you want it to do at that media query point.

    Also I wasn’t sure if the activity_text automatically went underneath at that point, so here’s the CSS you would need at the same media query for that to work:

    #activity_text {
        float:none;
        width:100%;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following html markup on my page, <div id=sig_container> <div id=layer1 class=layer
Suppose I have the following html: This a test of <code>some code</code>. <div class='highlight'>
I have the following html : <div class=mainmenu> <ul class=blue> <li class=><a href=tst/ id=a1_up><span
So I have some html that looks like the following: <div class='something unknown' id='something_unknown_1'>
I have following HTML: <div class=olympics style=display: block; position: absolute; left: 250px; top: px;>
I have the following HTML <div class=myclass value=1> <div> <div class=myclass value=> <a class=popup
I have the following HTML: <div id="page_title"> <div id="left_title> <h1> MY LARGE TITLE </h1>
I have the following html <div class=someClass> Some text </div> <div class=someClass> Some other
I have the following HTML <div id=testID class=test1> <img id=testID2 class=test2 alt= src=some-image.gif />
I have the following HTML in a page: <a href=javascript:void(0) class=move-next><img src=/Content/images/small-next-arrow.png height=16 width=16

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.