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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:45:46+00:00 2026-05-16T06:45:46+00:00

For creating rounded buttons, I am using three images a left image, a right

  • 0

For creating rounded buttons, I am using three images a left image, a right image and a strip of image. Every where its working fine but in safari and chrome the right image comes in next line, and I am not able to understand why this is happening. So some one please help me ,
Here is the html markup and its css.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <style type="text/css">
        body{width: 980px;margin: 0 auto}
        .light_button a {background:url("images/center.png") repeat-x scroll 0 0 transparent;color:#000000;display:inline-block;font-size:16px;font-weight:bold;height:34px;line-height:29px;position:relative;text-align:center;text-decoration:none;}
            .light_button .lout {background:url("images/left.png") no-repeat scroll 0 0 transparent;float:left;height:31px;left:-8px;position:absolute;width:8px;}
            .light_button .rout {background:url("images/right.png") no-repeat scroll 0 0 transparent;float:right;height:31px;position:absolute;width:26px;}


            .light_button a.light_right_nav_first {background:url("images/center.png") repeat-x scroll 0 0 transparent;color:#000;display:inline-block;font-size:16px;font-weight:bold;height:31px;line-height:29px;position:relative;text-align:center;text-decoration:none;}
            .light_button a.light_right_nav_first .lout {background:url("images/p_left.png") no-repeat scroll 0 0 transparent;float:left;height:31px;left:-24px;position:absolute;width:24px;}
            .light_button a.light_right_nav_first .rout {background:url("images/r_right.png") no-repeat scroll 0 0 transparent;float:right;height:31px;position:absolute;width:26px;}




    </style>
  </head>
  <body>

      <div class="light_button">
          <div class="left">
              <a class="nav_first" href="#">
                  <span class="lout"></span>
                    home
                  <span class="rout"></span>
              </a>


          </div>


          <div class="right">
              <a class="light_right_nav_first" href="#">
                  <span class="lout"></span>
                    home
                  <span class="rout"></span>
              </a>


          </div>
      </div>



  </body>
</html>
  • 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-16T06:45:47+00:00Added an answer on May 16, 2026 at 6:45 am

    Don’t combine float and absolute positioning. In your case, you probably want to remove the float and retain position:absolute. You already have left:-8px;width:8px for .lout, you can do something similar for .rout by using the right property: right:-26px;width:26px.

    Also, since your left and right images will be outside the actual link, you should consider adding margins to the link so that the images don’t overlap.

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

Sidebar

Related Questions

i am creating a button using Jquery in myPage.jsp. it is working fine in
So I am creating a container with rounded corners using the following method: div.rounded
Creating sprite sheets aka texture atlases rather than using many hundres of individual images
I'm creating DataGrid template with rounded corners, but I faced with this problem: Bottom
I'm creating a custom dialog with a background image which has rounded corners. I
Has anybody experience with using svg for creating custom buttons on android? I recently
I'm creating a dice game for the iPhone. I'm using SIO2 as engine, but
Creating a simple RPG game, first time using XNA. Trying to get my character
Creating a table without tbody using javascript createElement/appendChild will not add tbody in Firebug
Creating extensions got much easier with Vs2010, but this seems not to be the

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.