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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:58:18+00:00 2026-05-19T02:58:18+00:00

I have a dashboard in which I’d like a scrolling ticker. (We’ll know if

  • 0

I have a dashboard in which I’d like a scrolling ticker. (We’ll know if the UI sucks or not once it’s been running on the wall for a while.) Because this is a specific purpose dashboard, we can assume a recent WebKit in our markup and use even the latest CSS3 markup if it’s implemented.

This is some exemplary markup, but we’re free to change it as needed, although I’d prefer to keep it relatively semantic if possible:

<div class="ticker">
  <div class="itemDiv">
    <img src="x">
    <div class="itemBodyDiv">
      <span>Upper Box</span>
      <span>Lorem ipsum dolor sit amet</span>
      <span>Lower Box has longer text</span>
    </div>
  </div>
</div>

This is the layout I’d like to achieve: wireframe layout of ideal ticker markup

The outer solid black line is a div. The dashed line is a div that represents an individual item in the ticker. Items will scroll right-to-left using -webkit-marquee. The main body of the ticker item is the lorem ipsum text, which needs overflow-x set to cause the marquee behavior. The main body should be text-align: middle.

The problem I’m having is in finding suitable CSS markup to describe the position of the Upper Box and Lower Box. I’ve tried several permutations of display: inline and inline-block that didn’t work. They either ruined the marquee behavior or moved the main body over. It seems that they need to be pulled out of the normal box model, but can’t be absolute since they wouldn’t have the marquee behavior. It seems like there should be some sort of relative positioning that is outside of the box model flow that doesn’t preserve normal flow spacing that would handle cases like this, but I’m not finding it amid the many drafts of the many revisions of CSS and certainly not among the cargo cult of Google search results.

By request, this is my current non-working CSS at the state of my last experiment:

.itemDiv {
    display: inline;
    vertical-align: middle;
}

.itemDiv > img {
    margin: 10px 10px 10px 30px;
    vertical-align: middle;
    height: 48px;
    width: 48px;
/*  border: 1px solid red; */
}

.itemBodyDiv {
    display: inline;
    vertical-align: middle;
}

.itemDiv span:nth-child(1) {
    font-size: small;
    clear:left;
    vertical-align: top;
    color: green;
}

.itemDiv span:nth-child(2) {
    font-size: x-large;
    vertical-align: middle;
    color: white;
}

.itemDiv span:nth-child(3) {
    font-size: smaller;
    vertical-align: bottom;
    color: gray;
}

Any suggestions?

  • 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-19T02:58:18+00:00Added an answer on May 19, 2026 at 2:58 am

    You should wrap the entire scrolling message in a a div with its position set to relative. That way, you’re free to absolutely position elements inside of the message absolutely while not breaking the marquee behavior:

    .message
    {
        position: relative;
    }
    
    .upper-box
    {
        position: absolute;
        top: 5px;
        left: 10px;
    }
    
    .lower-box
    {
        position: absolute;
        bottom: 5px;
        left: 10px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have below kind of dashboard in my app which i would like to
I have a dashboard with users details which they can edit. I would like
I have a really simple JS counter which I display on a dashboard like
I have a dashboard which contains around 16 graphs. All the settings of the
I have a dashboard in my website which contain some entries in table, each
I'm developing a dashboard using ASP.NET MVC3 and need to have two divs which
I have grid something like this: Ext.define('Exp.view.dashboard.Tv', { extend: 'Ext.grid.Panel', initComponent: function() { this.columns
I have a web project in asp.net in which i have dashboard on which
I have a dashboard with a popup slicer, but once I close the popup
I have developed a web dashboard which has a structure of controls embedded inside

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.