SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Threaded View

  1. #1
    SitePoint Enthusiast
    Join Date
    May 2005
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Span around image problem in Firefox

    I have seen this before but cant remember how to fix it and cant find anything online..

    I want an image to have a 2px white border, then an 8px image background, then a 1px border.

    Code:
    This is my css.
    
    span.img {border:1px solid #333;background-image:url(i_back.gif);padding:8px;}
    span.img img{border:2px solid white;}
    
    Html
    
    <p><span class="img"><img src="hunza-garden.jpg"/></span></p>
    This works in IE but not firefox, I have attached an image of the problem.

    Any ideas?

    Thanks!

    Steve
    Attached Images Attached Images


Bookmarks

Posting Permissions

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