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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:55:43+00:00 2026-06-09T16:55:43+00:00

I want to display boxes in css for every single users according to their

  • 0

I want to display boxes in css for every single users according to their success in any games. For example, a user gets 70 points in my website and there will be a box about 220px width and it displays 70(font-size:80px and different font family.) and right below of it, it will say “Not bad”(about 20 px and Times new Roman font-family). Or if he/she gets 30 points, i want to display that box as their points 30, and below it “Bad”. The codes i used for it seems not working at all. Its outputs is very different and silly. Or it keeps changing everytime when the score are changing. In other words, boxes are not stable. The codes:

 <span style="font-family: 'Londrina Shadow', cursive; font-size:80px; color:#990;width:220px; padding:10px;border:5px solid gray; margin:0px;">
                70

                  <span style="font-size:18px; font-family:Georgia, 'Times New Roman', Times, serif; color:#CCC;">
                  <br>
                Not Bad
                </span>
                </span>

The output i expected is like this(70 is much bigger than “Not bad”)

I------------I
I    70      I
I   Not Bad  I
I            I
I------------I

How can i do this? I hope i explained well about what i needed. New in css…
Thanks

  • 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-09T16:55:44+00:00Added an answer on June 9, 2026 at 4:55 pm

    This is one approach:

    div {
        display: inline-block; /* stops the div taking the full width, allowing
                                  multiple 'boxes' to appear on the same line */
        border: 1px solid #000;
        width: 220px;
        font-size: 1em;
        text-align: center; /* just because your text seemed centre-aligned;
                               adjust to taste */
    }
    
    div > span {
        display: block; /* to force a new-line, and allow a width declaration */
        font-size: 80%; /* font-size 80% of the parent div */
    }​
    

    Note that I’ve used div to wrap the content in place of a span, and I’ve removed the unecessary br element.

    JS Fiddle demo.

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

Sidebar

Related Questions

I am new to web programming,learning VBScript.I want to display few text boxes in
I want to display 4 or 5 boxes(vary) which occupy's 100% of the page
I want to display some floating boxes (divs containing thumbnails) and the number of
I want to display some text in UIWebView with boxes that can be expanded
I want to display warning messages in html. This code shows two text boxes
I want to display helper text on clicking on the text boxes. eg: If
I want to achieve this: I want to display boxes, one main box and
I need some help with my design. I want to display three equal-height boxes
I want to understand what happens when an element whose CSS is display:block is
I have a few text boxes on my UI that I want to display

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.