Jump to content


How can I get rid of the border on linked images?


8 replies to this topic

#1 Aphaeros

    Young Padawan

  • Members
  • Pip
  • 39 posts
  • Gender:Male
  • Location:Georgia

Posted 18 March 2006 - 02:05 PM

So, I was making a new website layout, it was my first time... I got everything done in my template except for linking. So I add a link to one of the images, and it gets this aweful large blue border around it which messes the entire page up. Is there some way to stop this ugly blue border?



(My site is here, if you need it.)

#2 tiki

    Young Padawan

  • Members
  • Pip
  • 259 posts
  • Gender:Male
  • Location:California

Posted 18 March 2006 - 02:19 PM

Put this is your css style img { border: 0px; margin: 0px; padding: 0px; }

#3 Aphaeros

    Young Padawan

  • Members
  • Pip
  • 39 posts
  • Gender:Male
  • Location:Georgia

Posted 18 March 2006 - 02:26 PM

I did as you said, but the border is still there... :)

#4 tiki

    Young Padawan

  • Members
  • Pip
  • 259 posts
  • Gender:Male
  • Location:California

Posted 18 March 2006 - 02:26 PM

put style="border: 0px;" on your <a>

#5 Aphaeros

    Young Padawan

  • Members
  • Pip
  • 39 posts
  • Gender:Male
  • Location:Georgia

Posted 18 March 2006 - 02:29 PM

Nope, still not working...

#6 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 18 March 2006 - 02:38 PM

it's not the link that has the border, but the image. just add border="0" to your <img> tag (no css, nothing special, just copy/paste).

#7 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 18 March 2006 - 04:18 PM

img{
border: 0;
}

in teh css would be more convienient if there's quite a few images.'

and and tiki,
if something is 0 in measurement, you dont need to add a unit like pixels. just "0" is fine.
... AND images are default with 0 margin and 0 padding.

#8 Aphaeros

    Young Padawan

  • Members
  • Pip
  • 39 posts
  • Gender:Male
  • Location:Georgia

Posted 18 March 2006 - 07:20 PM

I got it to work. Thanks for the help everyone! :lol:

#9 tiki

    Young Padawan

  • Members
  • Pip
  • 259 posts
  • Gender:Male
  • Location:California

Posted 18 March 2006 - 07:44 PM

Im ocd when it comes to coding, everything has to be 0px or be named even if it has 0.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users