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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:36:25+00:00 2026-05-20T09:36:25+00:00

I am using the meter element to show a score between 1 & 10,

  • 0

I am using the meter element to show a score between 1 & 10, and in the newest webkit browsers, it looks fantastic.

I would now like to show the average score, as well. While it’s useful to know that my submission received a 6 out of 10, it would be even more useful to know that the average for this magazine so far is a 5.

Unfortunately, the slew of available attributes for the meter tag does not include “average”.

I want to show a simple vertical line at the average value. I thought perhaps I could put a span or a div inside the meter, make it display: block, and give it a 100% height, a 50% width, and a border-right. Unfortunately, Chrome 11 doesn’t even allow me to nest block elements within the meter, my preliminary investigations indicate.

I’d be willing to use JS to display the vertical line if I had to (when I originally envisioned this feature I thought I’d be using entirely JS), but the meter tag is so delightful that I refuse to not use it now.

  • 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-20T09:36:26+00:00Added an answer on May 20, 2026 at 9:36 am

    A trick may be placing a span after the meter tag, shifting it to the left using some arithmetic

    <meter id="m" value="2" min="0" max="10">somevalue</meter>
    <span id="average" 
          style="border-left:1px solid black;width:1px;margin-left:-50px">
    </span>
    

    aritmetic could be something like:

    var average = [somevalue, say 0.45];
    document.getElementById('average').style['margin-left'] = 
     (Math.floor((average-1)*document.getElementById('m').offsetWidth))+'px'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
I have to implement an audio (VU) meter using Javascript. This concept should be
I have table which is connected to datagridview and I would like to enter
I am using one <meter> tag in my html5. I want to change the
I want to get the Distance between two latitude and longitude in meter /
I am using the following in php to return the driving distance details between
I am trying to ping a Socomec meter using the Modbus protocol, having researched,
I'm using APC to make a upload meter. These are the files: Form Upload
How do I refresh a sprite without recreating it? like my health meter is
i am using meter, when the sound is play on each level(change level rapidly),

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.