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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:02:03+00:00 2026-06-01T02:02:03+00:00

Hey so I have a div containing 3 links which have a background url

  • 0

Hey so I have a div containing 3 links which have a background url image making them appear as an image

Here is my css classes

    /* calculate button */
.fc-calculate {text-align: center; padding: 12px 0; display: }

.fc-calculate-button {margin: 0 auto; width:200px;}

.fc-calculate-button a {line-height: 21px; height: 21px; background: url(../../images/SOURCE/btn_grn_r.gif) 100% 0 no-repeat; width: auto; display: block; float: left; padding-right: 30px;}
.fc-calculate-button a span {display: block; float: left; background: url(../../images/SOURCE/btn_grn_l.gif) 0 0 no-repeat; line-height: 21px; height: 21px; padding-left: 12px; color: #fff;}

And mark up as follows

    <div class="fc-calculate">
    <div class="fc-calculate-button">
      <sc:link field="Link One" cssClass="">
        <span class="btnspan">
          <sc:text select="." field="Link One Text" />
        </span>
      </sc:link>
    </div>
    <!-- /fc-calculate-button -->


    <div class="fc-calculate-button">
      <sc:link field="Link Two" cssClass="">
        <span class="btnspan">
          <sc:text select="." field="Link Two Text" />
        </span>
      </sc:link>
    </div>
    <!-- /fc-calculate-button -->
</div>

The issue is that instead of the links appearing next to eachother and centered they are appearing beneath eachother

  • 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-01T02:02:05+00:00Added an answer on June 1, 2026 at 2:02 am

    You’re floating your anchor and your spans but not your .fc-calculate-button class, if you want to display both containers side by side and center them on its container try this:

    CSS

    .fc-calculate {
        text-align:center;
    }
    
    .fc-calculate-button {
        display:inline-block;
        *display:inline; /* ie7 fix */
        zoom:1; /* hasLayout ie7 trigger */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey, I appear to have a CSS problem, regarding the spacing of my <div>
assume that I have this list: <ul id=carousel> <li><a title=hey><img src=image.png/></a></li> </div> And now
Hey, I have a code segment here: <div class=label><%= f.label :course %> <span>(Does this
Hey i have this div that shows as a popup: <div class=popup> </div> Then
hey there, i have a div that expands when the page is loaded, now
Hey guys quick question. I have a div that gets assigned a number to
Hey Guys, i have created the following Menu Structure: <div id=menu> <ul> <li><a href=#>Main
Hey I have this code right here: http://pastie.org/534470 And on line 109 I get
Hey I have a menu(with JQuery) in a div on the left, with all
Hey, I have a list of using ul and li: <span class=important>Show/Hide</span> <div id=important

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.