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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:31:56+00:00 2026-06-13T22:31:56+00:00

Using Google Web Toolkit, I have a DIV parent with a DIV and anchor

  • 0

Using Google Web Toolkit, I have a DIV parent with a DIV and anchor children.

<div class="unseen activity">
  <div class = "unseen-label"/>
  <a href .../>
</div>

With the following CSS, Chrome shows the “unseen label” slightly below the anchor. which is positioned correctly in both Chrome and FireFox.

However, FireFox shows the label in line with the anchor.

.unseen-activity div.unseen-label {
    display: inline-block;
    position: relative;
    top: -5px;
}

and

.unseen-activity a {
    background: url('style/images/refreshActivity.png') no-repeat;
    background-position: 0 2px;
    height: 20px;
    overflow: hidden;
    margin-left: 10px;
    display: inline-block;
    margin-top: 2px;
    padding-left: 20px;
    padding-right: 10px;
    position: relative;
    top: 2px;
}

Please tell me how to change my CSS so that Chrome render the label centered to the anchor. However, I need to keep FireFox happy and rendered correctly.

  • 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-13T22:31:57+00:00Added an answer on June 13, 2026 at 10:31 pm

    To center your unseen-label class set a width on the unseen class, then for your unseen-label set margin:0 auto; along with a width and align it as you need to. I’m not in firefox so can’t comment on what you’re seeing. But you can set your unseen class to position:relative; then your unseen-label position to absolute which will let you position it anyplace using negative top right left bottom spacing. Then also get rid of the display inline-block

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

Sidebar

Related Questions

I have a layout in Google Web Toolkit using UIBinder involving a TabLayoutPanel .
I'm using the Google Web Toolkit (GWT) 2.1. I have a GWT Grid (which
I'm using Google web toolkit for some project mapping seismic activity of some land
I have created a simple web app/form using google app engine. the site is
I have a xml web service which I would like to track using Google
I am considering solutions for drawing diagrams using Google Web Toolkit (GWT). Up until
I'm using the Google App Engine in combination with the Google Web Toolkit to
I'm using Google Web Toolkit (GWT) to implement a complex application on the web.
I am using Google Web Toolkit's Swing Designer in Eclipse to create and edit
I have recently started studying Google Web Toolkit. I have went through some walkthroughs,

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.