Jump to content

I see borders in crossover images in IE and Chrome?

- - - - -

  • Please log in to reply
3 replies to this topic

#1
Stasonix

Stasonix

    Learning Programmer

  • Members
  • PipPipPip
  • 82 posts
  • Programming Language:C++, PHP, JavaScript, Delphi/Object Pascal, Pascal
  • Learning:C++, PHP, JavaScript, Delphi/Object Pascal
I have a couple of div-elements with images, they are crossing over each other, all looks fine in Opera, Firefox, Safari, but in Internet Explorer and Google Chrome I see borders, and thats realy make me sad, what can I do to fix it?
Attached File  bordblock.JPG   3.42K   6 downloads
I don't know even a reason why it happen.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Without knowing the code...
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Stasonix

Stasonix

    Learning Programmer

  • Members
  • PipPipPip
  • 82 posts
  • Programming Language:C++, PHP, JavaScript, Delphi/Object Pascal, Pascal
  • Learning:C++, PHP, JavaScript, Delphi/Object Pascal
code: <div><span><a href="#"><img border=0 src="#"></a></span></div> (3 blocks)
css: img { border: 0 none; }
nothing else...

#4
DarkLordofthePenguins

DarkLordofthePenguins

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 409 posts
CSS:

border-width: 0;


HTML:

<img src="x" border="0" />


You should always specify things like border width, even if you're setting it to what's usually the default, because different browsers interpret the code differently.
Programming is a journey, not a destination.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users