Border for image links

  • aloof
  • Newbie
  • Newbie
  • aloof
  • Posts: 14
  • Loc: Oregon

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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>
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

I believe in css it's...

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

But don't quote me on that :)
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

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
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

is border=0 frowned upon for html 4/xhtml?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

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).
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

: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:
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

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?
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Can we assume the sig will change to "Wednesday" tomorrow? *grins
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

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

:D
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

*wink
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

too late, it already says wednesday! :-P

Post Information

  • Total Posts in this topic: 14 posts
  • Users browsing this forum: No registered users and 43 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.