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 9068239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:08:41+00:00 2026-06-16T17:08:41+00:00

I’m having headaches aligning 2 divs. I’ve read many tutorials where two divs, one

  • 0

I’m having headaches aligning 2 divs. I’ve read many tutorials where two divs, one with float left the other float right, are used. Here is the code I’m using. The problem is that the image in div “fotosder” is going down if the browser is resized or a lower resolution is used.

Here is my code:

<li>
    <div class="holder_slogan">
         <p class="slogan"> slogan </p>


        <div class="social_buttons2">
    <div class="inset">
        <a class="fb login_button" href="http://xxx.com/facebook?next=xxx">
            <span class="logo_wrapper"><span class="logo"></span></span>
            <span>Facebook</span>
        </a>

    </div>
    <div class="registrate">
    <img src="data/images/registrate.png" alt="registrate" />
    </div>
    </div>

    </div>

<div class="fotosder"><img src="images/imagen1.jpg" alt="listad" /></div>
    <div style="clear:both;"></div></li>


.sp-slider > li {
    -moz-box-sizing: border-box;
    float: left;
    height: 100%;
    padding: 0 60px;
    position: relative;
    text-align: left;
    transition: opacity 0.4s ease-in 0.8s;
    width: 20%;
    z-index: 2000;
}

.holder_slogan {
    float: left;
    margin: 66px 0 0 18%;
    width: 387px;
}

#board .slogan, #board2 .slogan {
    float: left;
    font-size: 12px;
    line-height: 25px;
    margin-right: 30px;
    padding-right: 10px;
    padding-top: 6px;
    text-align: left;
    width: 470px;
}

.social_buttons2 {
    float: left;
    margin: 0 auto;
    width: 220px;
}

.fotosder {
    float: right;
    margin: 5px 18% 0 0;
    position: relative;
    width: 329px;
}

.sp-slider > li img {
    -moz-box-sizing: border-box;
    display: block;
    max-height: 100%;
    max-width: 100%;
    padding: 10px 0;
}

img {
    border-style: none;
    vertical-align: top;
}
  • 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-16T17:08:42+00:00Added an answer on June 16, 2026 at 5:08 pm

    This is normal behaviour. When the wrapping element is not wide enough to fit the two floated elements, one will go under the other. The right floated in this case as it is “last” in the document flow.

    If you’re worried about this, give the elements a % width and they shouldn’t re-arrange unless they get extremely small or the contents of the elements prevent them from shrinking further.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I want to count how many characters a certain string has in PHP, but
I used javascript for loading a picture on my website depending on which small
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I've tracked down a weird MySQL problem to the two different ways I was
I know there's a lot of other questions out there that deal with this
I'm having trouble keeping the paragraph square between the quote marks. In firefox the

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.