Border for image links

  • aloof
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Apr 03, 2004
  • Posts: 14
  • Loc: Oregon
  • Status: Offline

Post April 13th, 2004, 1:20 am

Is there CSS code for the img tags so that images used as links don't have a border around them?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 13th, 2004, 1:20 am

  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post April 13th, 2004, 2:26 am

alls you need to do is apply a zero border to the IMG tag :D
Code: [ Select ]
<a href="www.google.com"><img src="image.ext" border="0"></a>
Strong with this one, the sudo is.
  • Axe
  • Genius
  • Genius
  • User avatar
  • Joined: Jan 07, 2004
  • Posts: 5744
  • Loc: Sub-level 28
  • Status: Offline

Post April 13th, 2004, 3:56 am

I believe in css it's...

Code: [ Select ]
.img { border:0 }

But don't quote me on that :)
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Mar 24, 2004
  • Posts: 1855
  • Loc: Uk
  • Status: Offline

Post April 13th, 2004, 4:30 am

using css you can do

Code: [ Select ]
a img{border-style:none}


which translates to:
"any 'img' tag that is inside an 'a' tag should have no border"

Whack that in your style tag or external stylesheet and you will never get horrible link borders around your images and you don't need to worry about setting every link image's border individually.

This will only affect the images inside link tags, so if you want to have borders on other images there should be no clashes

hope this helps
CSS website design tutorials
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post April 13th, 2004, 10:45 am

is border=0 frowned upon for html 4/xhtml?
Pixel Acres V2
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23403
  • Loc: Woodbridge VA
  • Status: Offline

Post April 13th, 2004, 10:54 am

b_heyer wrote:
is border=0 frowned upon for html 4/xhtml?


Correct. You should use the CSS style given by rtm223. (Not to mention it saves one heck of a lot of typing).
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post April 13th, 2004, 4:12 pm

:oops: Boy do I feel like a dolt, I Got FlashMX back and i've been trying to pick up where I left off with it. My brain wasn't working earlier :wink:
Strong with this one, the sudo is.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23403
  • Loc: Woodbridge VA
  • Status: Offline

Post April 13th, 2004, 4:28 pm

joebert -- your code was perfect for HTML 4.1 and lower -- don't worry about it. BTW -- like your new sig. Did you do that today with Flash?
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post April 13th, 2004, 6:12 pm

Yep, it's been awhile since i've been able to play with Flash, My sig was mainly to get used to where everything is again. It's a little bulky for now but i'll slim it down soon. (keyframe animation, 46 bmps, 7kb) Played hell getting the OBJECT & EMBEDS under 500 chars for ozzu :lol: ended up striping the ID, NAME, and plugins addresses to get it to accept. Found out Firefox08 will direct you to the plugin even without the addresses present. (for once not having a plugin installed was a good thing)

Guess i'll be posting a little more in the Flash section now :D
Strong with this one, the sudo is.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23403
  • Loc: Woodbridge VA
  • Status: Offline

Post April 13th, 2004, 6:15 pm

Can we assume the sig will change to "Wednesday" tomorrow? *grins
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post April 13th, 2004, 6:26 pm

My guess is it will if the user's system tells the flash that it's wednesday.

:D
- dM
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23403
  • Loc: Woodbridge VA
  • Status: Offline

Post April 13th, 2004, 6:54 pm

*wink
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post April 13th, 2004, 7:45 pm

If I remember to change my sigs address to wednesdays version of the sig it will.







J/K :lol: naaaa, I'll probably swap it with the one i'm playing with now before tomarrow.
Strong with this one, the sudo is.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post April 13th, 2004, 9:20 pm

too late, it already says wednesday! :-P
Pixel Acres V2

Post Information

  • Total Posts in this topic: 14 posts
  • Users browsing this forum: No registered users and 114 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.