Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Customize img alt tag ?

  1. #1
    Join Date
    Jan 2006
    Posts
    227
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question Customize img alt tag ?

    Hi.

    Can someone of you guys please tell me if it is possible to change the size of img alt tags in Dreamweaver?

    If yes, how do I do it?

    Thanks in advance,
    Cheng

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Not sure if this will work in all browsers but....

    Code:
    img {
    color:#0000FF;
    font-size:36px;
    }
    HTML Code:
    <img src="where'smyimage?.jpg" alt="TEST">
    Last edited by Snookerman; 04-21-2009 at 09:52 AM. Reason: added [code] and [html] tags

  3. #3
    Join Date
    Jan 2006
    Posts
    227
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    .......thanks a lot for your reply.

    I'll check it out later on and post back the results.

    Thanks again,
    Cheng

  4. #4
    Join Date
    Jan 2006
    Posts
    227
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    .......I tried it out but it didn't work.

    At least not in IE7..

    The thing is that it should work in IE7 even though all web designers don't like this browser very much but it's still the most used one worldwide.

    Another suggestion would be very much appreciated.

    Thanks again.......
    Cheng

  5. #5
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    I don't think it's possible, I'm pretty sure it's coded in with the browser.

    Besides, the alt tag doesn't even show up in Firefox, it's the title tag that is used instead. Unless you've seen a page where they've successfully done it.

  6. #6
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@ /\/\@|{
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  7. #7
    Join Date
    Jan 2006
    Posts
    227
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Master_script_maker View Post
    .......thanks a lot for the link.

    Not exactly what I was looking for but this could be an option.

    I'll check it out and see how it works.

    Thanks again very much.......
    Cheng

  8. #8
    Join Date
    Mar 2009
    Location
    Florida
    Posts
    31
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    I don't think it's possible to change the size of the alt tag, not unless there is a specific browser command

  9. #9
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    My solution works in opera for color, firefox and flock for color and size. I'm on a mac though might be different in pc land.

  10. #10
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,626
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    If you set font related CSS properties set for the img elements it works for Firefox and Flock based and in Opera also for me. Rather I think it is based on the JavaScript engine the browser support.

    In IE the color of the alt text can be controlled but nothing else.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •