View Full Version : how to make a picture a link
Animan
03-29-2003, 12:37 AM
im having some trouble posting my picture as a link.
mouse
03-29-2003, 12:46 AM
As in, posting on the forum?
[u rl=http://yadayada.com/]http://imageurl.com/[/url]
or on a webpage?
<a href="http://blahblah.com/"><img src="image.gif"/></a>
Animan
03-29-2003, 04:59 PM
i actually needed both ty
cg9com
03-29-2003, 05:35 PM
hi, you can read more on the VB code here:
http://www.codingforums.com/misc.php?s=&action=bbcode
images inside anchors have nasty borders :rolleyes:, i do this.
a img {
border:none;
}
khaki
03-29-2003, 06:16 PM
hi Animan...
cg9com's solution is correct.
However, if you are not using style (and/or have only 1 or a few images) you could just do this:
<a href="http://blahblah.com/"><img src="img.gif" border=0></a>
..same result.
(although style is the better method overall, and is easy to learn/apply)
(hi guys. i'm new here, and i really like what i've seen so far)
thinking of setting-up camp in this new location...
;) k
ASAAKI
03-29-2003, 07:19 PM
well you're very welcome k:)
CF rulz!:D
cg9com
03-29-2003, 09:15 PM
hey khaki, please do stay, and welcome to the forums. :)
border="0" will work, however its depricated depending on your markup version, also a CSS solution will edit every image, as opposed to an inline solution. its up to you. :)
mouse
03-29-2003, 09:51 PM
<me drops into Fight Club mode/>
The first rule of CF:
* Don't ever give html solutions over css solutions. :mad:
j/k ;) :D
Mhtml
03-30-2003, 11:27 AM
lol, seriously though check out www.w3schools.com for some neat tutorials to help you get up and running fast!
And don't be afraid to ask when you hit a brick wall, metaphorically speaking of course. ;)
khaki
03-30-2003, 02:08 PM
cg9com wrote: border="0" will work, however its depricated depending on your markup versionIs that really true? At what version Is that depricated? (xhtlm? on no... not another thing to learn/unlearn with the advent of the "x"! lol).
The W3 is currently at 4.01 (right? :rolleyes: ). I use border=0 and it seems to work ok. And since I'm not quite ready to toss that attribute just yet... I'd like to hear more about the plans for it's demise. Do tell (p l e a s e !).
mouse wrote: The first rule of CF:
* Don't ever give html solutions over css solutions.Yikes! My first post and I've already been reprimanded by a Moderator :eek: . (but I'm gonna stick-up for myself on this one ;) ):
When Animan stated that he was having trouble posting a picture as a link... it sounded like a basic "newbie" question to me. Therefore I wanted to give him a basic newbie answer (html).
Sometimes I think that we forget that everyone needs to crawl before they can learn to walk (i've been developing for about 3 yrs... but only using CSS for about 6 months! So, you could probably say that I'm... barely off my knees! lol).
Well... this "new" girl has probably ruffled a few "old-guard" feathers here... so the wise move is to end this before I really get myself into trouble ;) .
Thanks for all the kind "welcomes"!
(you haven't scared me away yet. lol. although seriously... what's the deal with no avatars?! bummer!)
too silly to scare easily...
k
cg9com
03-30-2003, 05:29 PM
avatars :( we no like them here :D
in light of xhtml, we would attempt a CSS solution over an html solution, html solutions only come first when there not depricated, but then again it depends on your DTD.
not to mention, CSS is way cooler. :cool:
khaki
03-30-2003, 06:21 PM
:eek: :eek: p s !
I'm still new here... I'll catch-on eventually (i hope).
but seriously... the name of this forum is:
HTML & CSS (not xhtml), so your not making it easy on the new girl, y'know (wink)
besides... I don't know squat about xhtml... so I'll probably be doing more asking than answering around here I guess.
One other question first, however...
what does DTD mean :confused:
(another anagram. ugh! i'm sure that i'll smack my forehead when i hear what it is... but right now, i'm just clueless :rolleyes: )
snafu...
k
ASAAKI
03-30-2003, 06:39 PM
Doctype Declaration.
the ugly 'blurb' at the top of the source:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
that's the doctype on CodingForums.:)
you can't validate a page thru w3c to make sure it's marked up according to the standards without a DTD, and there are a few different DTDs according to the X/HTML versions you are using, their strictness, and whether or not you're using frames.
mouse
03-30-2003, 07:14 PM
Originally posted by khaki
My first post and I've already been reprimanded by a Moderator :eek: . (but I'm gonna stick-up for myself on this one ;) ):hehe, only kidding, it's fine to have all options made available. The benefits of CSS are more noticeable when you have mutiple pages using the same scheme; an external *.css file used well is a most powerful tool.
The use of classes with images is good too...
<style type="text/css">
img{border: 0px;}
img.blah{border: 5px;}
</style>
<img src="image1.gif"/>
<img src="image2.gif" class="blah"/>
krycek
04-15-2003, 12:28 PM
Originally posted by mattover-matter
edited by moderator... original post deleted...
If you want MY opinion... get out, yourself :mad: or else shut up and stop posting such nonsense http://www.ithium.net/smilies/rant.gif
I'm tired of reading threads that you have polluted with your gibberish... and I know other people are, too. Mods? SHOOT THIS GUY!!!
http://www.ithium.net/smilies/greenchainsaw.gif
::] krycek [::
ionsurge
04-15-2003, 05:23 PM
At Krycek:
Firstly, yes we have noticed that for a while now.
Secondly, you really do have some wierd yet wonderful destructa-smilies... :D
@ Mattover-Matter what was the point of that post. Refrain yourself from trying to up your post-count by posting incommodious posts please.
sage45
04-15-2003, 05:50 PM
Closing thread... Answer to original user question supplied...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.