1 Reply Latest reply on Nov 13, 2006 6:17 AM by Newsgroup_User

    CSS issue with background image

    chieffan
      I have a background image that is 225 pixels wide. I want this image displayed behind the text of a hyperlink. When I apply the style it only spans the length of the text. This is the css I am using

      background:url(images/buttonBK.jpg) no-repeat;
      text-decoration:none;
      display:inline;
      font-family:Arial, Helvetica, sans-serif;
      font-size:12px;
      text-align:center;
      color:#000000;

      Thanks in advance.
        • 1. Re: CSS issue with background image
          Level 7
          add display: block; to your a link css



          chieffan wrote:
          > I have a background image that is 225 pixels wide. I want this image displayed
          > behind the text of a hyperlink. When I apply the style it only spans the
          > length of the text. This is the css I am using
          >
          > background:url(images/buttonBK.jpg) no-repeat;
          > text-decoration:none;
          > display:inline;
          > font-family:Arial, Helvetica, sans-serif;
          > font-size:12px;
          > text-align:center;
          > color:#000000;
          >
          > Thanks in advance.
          >