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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:03:57+00:00 2026-06-03T14:03:57+00:00

I have the following code: <div style=width:560px> <div style=float: left; width: 50%; margin-bottom: 20px>

  • 0

I have the following code:

<div style="width:560px">
    <div style="float: left; width: 50%; margin-bottom: 20px">
        <div style="float: left; width: 40%">
            <!-- Thumbnail -->
        </div>
        <div style="float: left; width: 60%">
            <!-- Title -->
            <!-- Author -->
            <!-- Price -->
            <!-- Quantity -->
            <!-- Add to Cart -->
        </div>
    </div>
</div>

This is what it looks like in Chrome:
enter image description here

But this is what it looks like in Firefox:
enter image description here

How can I get Firefox to display like Chrome?

  • 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-03T14:04:02+00:00Added an answer on June 3, 2026 at 2:04 pm

    Edit: Bedtime reading: The 960 Grid System

    This is due to the height of the first element “pushing” the third element across in Firefox, but not in Chrome. Why that’s happening, I don’t know. It’s a common problem when fixed height isn’t used, which in my opinion is good practice too avoid, as you can never really tell how high something will be.

    Could I suggest a slight workaround to the layout. It’s slightly more manual, but would ensure a “row-like” layout. By simply adding a row div, it will allow you to ensure there are at least 2 items in a row, like so.

    <div id="container">
        <div class="row">
            <div class="item">Item 1...</div>
            <div class="item">Item 2...</div>
        </div>
        <div class="row">
            <div class="item">Item 3...</div>
            <div class="item">Item 4...</div>
        </div>
        <div class="row">
            <div class="item">Item 5...</div>
            <div class="item">Item 6...</div>
        </div>
    </div>
    

    In order to “push” the new row starting, you’ll want to clear both, on the row class.

    Pros:

    • There will always be 2 items in a row
    • Items will always start level at the top

    Cons

    • Changing it to x items per row would require HTML changes
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code: DIV><TABLE><TBODY><TR><TD> <DIV id=namesClass style=WIDTH: 700px> <UL style=MARGIN-LEFT: 0px! important;
if have the following code: <div id=container style=position:relative; width:300px; height:300px; overflow:scroll;> <div id=header> </div>
Try the following sample code: <div style=background-color:#ddd> <div style=width:900px; margin:0px auto> <div class=row> <div
I have the following HTML code: <script src=http://code.jquery.com/jquery-1.6.2.min.js></script> <div id=A style=width:100px; height: 100px; background:
I have the following code in my page: <div id=data_body_container style=overflow: auto; width: 880px;
I have the following bit of code: <div id=some_div style=border: solid 1px red; width:50px;
I have the following code : <div id=wrapper> <div style=width:500px;background-color:yellow;> // this is a
I have the following code: <div style=width: 150px> <div style=padding: 5px> <img src=http://xenforomods.info/styles/Silent/xenforo/browser/announcementIcon.png width=50px
I have the following code: ajaxLoading = '\<p style=text-align:center; margin-left:auto; margin-right:auto; margin-top:200px; ' +
I have following code: <div class='parent'> <div class='left-child'></div> <div class=right-child></div> </div> What I want

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.