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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:48:35+00:00 2026-05-23T14:48:35+00:00

I am fairly new to html/css and need to create something like the following:

  • 0

I am fairly new to html/css and need to create something like the following:

-----------------
|   |        UP |
| # | foobar    |
|   |        DN |
-----------------

Where UP and DN are some images indicating and upvote and downvote. The # is the net result of the UP and DN votes. So I am fairly well versed in javascript to handle the ajax/server-side. My skills primarily lack in the html/css – the actual UI design of these kinds of buttons.

Does anyone have advice on CSS topics I should look into or some good tutorials on the web that can teach me how to make this step by step? Even a high level idea of how I should proceed to make this or break this into pieces would be great.

  • 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-23T14:48:35+00:00Added an answer on May 23, 2026 at 2:48 pm

    For the actual up and downvote arrows, either do some serious scaling with the ↑↓ characters or use images. (You could technically get really fancy with z-index and CSS3 rotating and make it with pure CSS, but let’s not go there. 🙂

    There’s a few ways to get that basic layout you want. You’ll need two blocks: a number block and a up/down block. Those blocks can be laid out with CSS’s display:inline-block, where the elements behave like block level elements (which means you can set width/height, etc.) but display on the same line as each other. Keep in mind inline-block is not supported by IE7 and lower, though you can hack it with display:inline; zoom:1 set just for IE7 lower.
    Or you could float the two elements left/right. This often has some odd side effects though.

    Some actual markup might look like:

    <div class="votesBox">
        <div class="votes">5</div>
        <div class="vote">
            <div class="voteUp">UpVote</div>
            <div class="voteDown">DownVote</div>
        </div>
    </div>
    

    CSS:

    .votes, .vote {
     display:inline-block;
    }
    .vote {
     vertical-align:middle;   
    }
    

    You could replace .voteUp and .voteDown with images and wire click events to JS, then update the .votes’s content accordingly.

    http://jsfiddle.net/WpxAm/1/

    https://developer.mozilla.org/en/CSS/display

    https://developer.mozilla.org/en/CSS/float

    https://developer.mozilla.org/en/CSS/box_model

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

Sidebar

Related Questions

I'm fairly proficient in HTML/CSS, but very new when it comes to the likes
Hi fairly new to using MVC radio buttons. I have some code: @Html.RadioButtonFor(modelItem =>
I fairly new to JQuery and perhaps trying to achieve something that might be
I'm still fairly new to T-SQL and SQL 2005. I need to import a
I'm fairly new to the world of versioning but would like to introduce Subversion
I am fairly new to HTML, I want to open a text box when
I'm fairly new to ASP.NET MVC and I've got a problem with Html.TextBoxFor() -
I am fairly new to xslt (2.0) and am having some trouble with a
I'm fairly new to JavaScript/jQuery/AJAX, so I suspect the issue is some typo I'm
i am fairly new to django and i want to update some of my

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.