Results 1 to 1 of 1

Thread: Spot the difference - Link vs button

Hybrid View

  1. #1
    Join Date
    Jun 2009

    Question Spot the difference - Link vs button

    What's the attribute (probably browser default) that makes the background-image to overflow with the text or stay with the box?

    Time ago I wrote about a technique for creating a css transparent button with only one image, no sprites: http://socialblogsitewebdesign.com/s...t-button-ever/

    Basically, in that example a submit input tag "hangs" OUTSIDE the container's width but using the following tags won't work:
    HTML Code:
    <a><span>Click me</span></a>
    What is the difference between a label/input combination and a a/span (even a/div) combination that makes the background of the inner element not extending outside the container along with the text?

    Last edited by sergiozambrano; 09-19-2011 at 11:44 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center