Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jan 2008
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Any way to get FF to show ver and hor space around images?

    Gidday

    Any way of doing this apart from in an image editor? IE shows the space fine, but not FF.

    Thanks

    Shaun

  • #2
    Regular Coder Actinia's Avatar
    Join Date
    Feb 2007
    Location
    Essex, UK
    Posts
    250
    Thanks
    1
    Thanked 23 Times in 22 Posts
    This sounds like a consequence of the IE box model error. Are you using padding or margins? Try setting your padding to zero and your margins to (say) 10px:
    Code:
    img {margin: 10px; padding: 0; }
    What other styling are you using? Please post your code, including any DOCTYPE.

    John

  • #3
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Or maybe try setting img to display: block?

  • #4
    New Coder
    Join Date
    Jan 2008
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks Actinia - that fixed it up!

    Shaun


  •  

    Posting Permissions

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