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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:37:58+00:00 2026-05-20T01:37:58+00:00

This is how my site should look like under normal circumstances: In certain pages,

  • 0

This is how my site should look like under normal circumstances:

good

In certain pages, I need to fit the same element in a much narrower space. Here’s how bad it looks:

enter image description here

I added white-space:nowrap to the anchor in an attempt to fix this, but it’s still not perfect:

nowrap whitespace

How do I prevent the anchor from getting chopped in half when it wraps around?

HTML

<div id="marquee" style="display: none">
    <div id="vlcUpgradePrompt" style="display: none">
        <span>Upgrade to Veetle TV to watch this channel in <b>HD</b>.</span>
        <a 
            href="javascript:void(0)"
            onclick="VEETLE.bootstrap.vlcUpgradePrompt(); return false;"
            class="button buttonDark">
            <img class="spriteCommon iconDownloadArrow" src="/images/spacer.gif">
            Free upgrade
        </a>
    </div>
    <div id="flashDowngradeUnavailable" style="display: none">
        <img 
            src="<?=base_url()?>images/spacer.gif"
            class="spriteCommon iconError" />
        <span>Sorry, the low quality version of this channel is not available.</span>
    </div>
    <div id="flashNotInstalled" style="display: none">
        <img 
            src="<?=base_url()?>images/spacer.gif"
            class="spriteCommon iconError" />
        <span>You need Flash Player to view the low quality version.</span>
        <a 
            href="http://get.adobe.com/flashplayer/"
            class="button buttonDark">
            <img class="spriteCommon iconDownloadArrow" src="/images/spacer.gif">
            Download Flash
        </a>
    </div>
</div>

CSS

#marquee {
}

    #marquee div {
        -moz-border-radius-bottomleft: 0.4em;
        -webkit-border-bottom-left-radius: 0.4em;
        -moz-border-radius-bottomright: 0.4em;
        -webkit-border-bottom-right-radius: 0.4em;
        border: 1px solid;
        border-color: #e5e5b8 #ccc #666 #ccc;
        background: #ffffcc;
        background: -moz-linear-gradient(
            top,
            #ffffcc,
            #ebebbc
        );
        background: -webkit-gradient(
            linear,
            left top,
            left bottom,
            color-stop(0, #ffffcc),
            color-stop(1, #ebebbc)
        );
        padding: 1em;
        line-height: 2em;
        -moz-box-shadow: 0 0.1em 0.2em rgba(0,0,0,0.1);
        -webkit-box-shadow: 0 0.1em 0.2em rgba(0,0,0,0.1);
    }
        #marquee div img {
            margin-top: -0.2em;
        }

        #marquee div img.iconError {
            margin-right: 1em;
        }

        #marquee div span {
            font-size: 1.2em;
            padding: 0 1em 0 0;
        }

        #marquee div a {
            font-size: 1.2em;
        }

            #marquee div a img {
                margin-right: 0.4em;
            }
  • 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-20T01:37:58+00:00Added an answer on May 20, 2026 at 1:37 am

    It looks like display:inline-block; works. http://jsfiddle.net/yUxN2/

    EDIT:
    Since it seems there are a few oddities in older browsers, heres a guide to making it work everywhere: http://www.aaronrussell.co.uk/blog/cross-browser-support-for-inline-block/

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

Sidebar

Related Questions

The site should look like this . But I'm using PHP include (as I
So I'm working on this site web app that should let users easily chat
Like this site Pay attention to your address bar.
This site is pretty good but I'm wondering what other resources are out there.
This site has a technique to pass xml data around in Microsoft SQL Server:
From this site: http://www.toymaker.info/Games/html/vertex_shaders.html We have the following code snippet: // transformations provided by
for this site: http://yoursdproperty.com/ do you see how there some extra white space all
Got this site with UN/PW set via the Createuserwizard control. Client considers PW too
On this site if you do too many clicks or post comments too fast
On this site that I'm working on for work - http://www.basicliving.com - when you

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.