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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:08:21+00:00 2026-06-04T06:08:21+00:00

I am trying to prevent line breaking in this Html http://jsfiddle.net/DD3v8/ It happens that

  • 0

I am trying to prevent line breaking in this Html

http://jsfiddle.net/DD3v8/

It happens that when I resize my window, both icons and text break into new line. I’ve already tried with whitespace CSS property. I’ve tried also, a table approach, but the behaviour is the same

Can anyone figure what is happening?

Thanks in advance

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

    try this:

    .line {
                height: 44px; 
                width: 100%; 
                display: inline-block; 
                background-color: #6c7987;
                white-space: nowrap;
                position: relative;
            }
    
            .icon {
                position: absolute;
                left: 0;
                height: 44px; 
                width: 90px; 
                background-color: 
                #FF0080; 
                color: white;
                text-align: center;
                line-height: 44px;
                font-family: Arial;
                float: left;
                font-size: 12px;
                font-weight: bold;
                padding: 0;
            }
    
            .title {
                position: absolute;
                left: 90px;
                color: white;
                line-height: 44px;
                text-align: left;
                padding: 0 0 0 10px;
                font-family: Arial;
                float: left;
                font-size: 12px;
                display: inline;
                white-space:nowrap;
            }
    
            .botoes {
    
                position: absolute;
                width: 300px;
                right: 0
            }
    
            .botao {
                width: 46px;
                height: 45px;
                float: right;
                line-height: 44px;
                text-align: center;
                display: block;
                white-space:nowrap;
                cursor: pointer;
            }
    
            .botaoVerRecurso {
                background: url('http://www.think-cell.com/images/cross.png') center no-repeat;
            }
    
            .botaoVerRecurso:hover {
                background: url('http://www.think-cell.com/images/cross.png') center no-repeat;
            }
    
            .botaoEditarRecurso {
                background: url('http://www.think-cell.com/images/cross.png') center no-repeat;
            }
    
            .botaoEditarRecurso:hover {
                background: url('http://www.think-cell.com/images/cross.png') center no-repeat;
            }
    
            .botaoFavRecurso {
                background: url('http://www.think-cell.com/images/cross.png') center no-repeat;
            }
    
            .botaoFavRecurso:hover {
                background: url('http://www.think-cell.com/images/cross.png') center no-repeat;
            }
    
            .botaoPartRecurso {
                background: url('http://www.think-cell.com/images/cross.png') center no-repeat;
            }
    
            .botaoPartRecurso:hover {
                background: url('http://www.think-cell.com/images/cross.png') center no-repeat;
            }
    
            .botaoApagarRecurso {
                background: url('http://www.think-cell.com/images/cross.png') center no-repeat;
            }
    
            .botaoApagarRecurso:hover {
                background: url('http://www.think-cell.com/images/cross.png') center no-repeat;
            }
    
            .clear {
                clear: both;
            }
    

    ​

    The explanation is simple: with floating, you can’t put more width to a holder, which is bigger than the holder’s height, the float will automatically drops it, and breaks line.

    If you use positions, use it like this:

    CONTAINER (position: relative)
    SUBelement (posision: absolute, top: 0, left: 0) < put to the top left
    SUBelement (posision: absolute, bottom: 0, right: 0) < put to the bottom right

    in W3C: http://www.w3schools.com/css/css_positioning.asp

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

Sidebar

Related Questions

I am trying to prevent VS from breaking on JS errors. I have the
I'm trying to prevent output cached page from being ejected from my asp.net output
I can't get this to work. I am trying to prevent a user to
We're getting this weird exception when trying to create a BitmapDecoder off an ASP.Net
Hy I'm trying to prevent the user to enter any form of line breaks
I'm trying to use a command-line client to automate some work on an ASP.NET
I'm trying to have a HTML5 page that includes a customer signature box. This
Trying to prevent access to a specific file, not any files with a certain
I'm trying to prevent A HREF from actually opening the link, but to execute
I am trying to prevent any SQL injection in all my queries and would

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.