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

  • Home
  • SEARCH
  • 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 8373721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:45:03+00:00 2026-06-09T14:45:03+00:00

I have an oddly specific error concerning CSS, Firefox and Windows. Let me explain:

  • 0

I have an oddly specific error concerning CSS, Firefox and Windows.

Let me explain: I use

vertical-align:sub;

… and it displays correctly with Firefox on Linux and IE on Windows but not with Firefox and Windows. I use the same version of Firefox on both Linux and Windows.

Some pictures of the problem (sorry for the inconvenience but, I can’t post pictures or more than 2 links yet, so I have to do it like that):

http://www.mercuryproductions.de/kram/Errors.html

link to the page: http://www.sontag-consult.com/

If I fiddle around with the vertical-align I can get it to work with FF on Win, but it messes up the other combinations.

  • 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-09T14:45:04+00:00Added an answer on June 9, 2026 at 2:45 pm

    This is how I would do it:

    CSS

    Add this to your CSS file:

    ul
    {
        margin:0;
        padding:0;
    }
    ul li
    {
        margin:0 0 0 3px;
        padding:0;
        display:inline-block;
        list-style-type:none;
    }
    ul li:first-child
    {
        margin-left:0;
    }
    ul li a
    {
        padding:3px 8px;
        display:block;
        font-weight:bold;
        text-decoration:none;
        color:#fff;
        background-color:#000;
    }
    ul li a i
    {
        margin:2px 5px 0 0;
        display:block;
        float:left;
        width:20px;/* width of your img */
        height:15px;/* height of your img */
        background:url(/sprites.png) no-repeat;/*your img file here*/
    }​
    

    HTML

    And this is what your HTML code should look like:

    <ul>
        <li>
            <a href=""><i></i>Lang 1</a>
        </li><li>
            <a href=""><i></i>Lang 1</a>
        </li><li>
            <a href=""><i></i>Lang 1</a>
        </li>
    </ul>  
    

    DEMO

    BTW, it’s probably recommended that you use image sprites.


    Updated:

    Solution 1 (IMG tags):

    CSS

    ul li a img
    {
        margin:2px 5px 0 0;
        border:0;
        display:block;
        float:left;
        width:20px;/* width of your img */
        height:15px;/* height of your img */
    }​
    

    HTML

    <ul>
        <li>
            <a href=""><img src="/deutsch.png">Deutsch</a>
        </li>
    </ul>
    

    Demo

    Solution 2 (w/ image sprites):

    CSS

    ul li a i
    {
        background:url(/sprites.png) no-repeat;
        margin:2px 5px 0 0;
        display:block;
        float:left;
        width:20px;/* width of your img */
        height:15px;/* height of your img */
    }
    
    ul li a i.deutsch
    {
        background-position:0 0;
    }
    

    Solution 3 (w/o image sprites):

    CSS

    ul li a i
    {
        margin:2px 5px 0 0;
        display:block;
        float:left;
        width:20px;/* width of your img */
        height:15px;/* height of your img */
    }
    
    ul li a i.deutsch
    {
        background:url(/deutsch.png) no-repeat center center;
    }
    

    HTML

    <ul>
        <li>
            <a href=""><i class="deutsch"></i>Deutsch</a>
        </li>
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This might seem phrased oddly at first, but let me explain through example. Note
I have an oddly difficult task to perform. I thought it would be easy,
I have this large (and oddly formatted txt file) from the USDA's website. It
I have a website which is behaving oddly in terms of creating new sessions.
I have a thinking-sphinx app and oddly enough the files in /db/sphinx/development/ have not
I have Eclipse Helios SR1 installed on Windows XP. I am writing/debugging Java code
I have a single image with buttons aligned vertically. I then am using css
I have an application that behaves oddly, and just to verify, I'd like to
I have a mod_rails server where disk space, oddly enough, is at a premium.
I have a Windows executable that is launched from within a service by calling

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.