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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:40:40+00:00 2026-05-21T02:40:40+00:00

I have a problem and I have no idea how to fix it. So

  • 0

I have a problem and I have no idea how to fix it.

So here it is:

I am trying to display a number of text chunks one above the other. All of them are contained in nice text blocks. To implement the blocks I am using divs with a set width. It was all nice and fancy until I have tested my code in FF – and guess what? My little precious divs stretch or squeeze to envelop the content. What do I do to make them display properly in FF? Chrome and IE work perfectly well.

Here’s the code I am using for the text blocks:

css:

#block {
    border: 2px dashed grey;
    background-color:  #D3D3D3;
    width: 338 px;
    margin-top: 10px;
}

.left {
float:right;
margin-right: 10px;
}

html:

<div id="block" class="left">
    <p>A long line of text that should take more than one line to display, 
       because I like long sentences - it is easy to get lost in them and 
       forget what you were writing about.</p>
</div>

<div style="clear:both"></div>

<div id="block" class="left">
    <p>two words</p>
</div>

Thank you very much. Like real much.

  • 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-05-21T02:40:41+00:00Added an answer on May 21, 2026 at 2:40 am

    Rince, your issue is very simple. When you put the space in between 338 and px in your width:, FireFox cannot interpret it as a unit and so it ignores that line. Just remove the space and it works quite dandily

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

Sidebar

Related Questions

This works in all other browsers and I have no idea what the problem
I've been trying to fix this problem for a while and have exhausted all
I have a problem and I really have no idea how to fix it.
I am trying IDEA Ultimate, but I have a problem on UML Diagrams View,
I have following problem, Code: String a=Yeahh, I have no a idea what's happening
I have no idea how to describe my problem. It is the simplest way
I have an idea for how to solve this problem, but I wanted to
I have this idea for a free backup application. The largest problem I need
I have come to a problem, wich I have no idea how to solve.
a possibly simple problem, but weird why I have no idea how to do

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.