Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jan 2005
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Changing an image border's color

    I tried to change the color of the border I haave around an image, but it doesn't work:

    <tr>
    <td width="16%" class="choice"> <a onmouseover="doTooltip(event,1)" onmouseout="hideTip()">
    <p><img src="images/mp3.gif" border="1" bordercolor="#FF0000"><br /><a onmouseover="">
    Nike Runners MP3<br />
    <input type="radio" name="item" value="1">
    </p>

    Thanks

  • #2
    Daf
    Daf is offline
    Regular Coder
    Join Date
    Feb 2005
    Location
    East Texas
    Posts
    140
    Thanks
    32
    Thanked 2 Times in 2 Posts
    Hi,

    Try an inline style there - like this:

    <img src="images/mp3.gif" style="border: 1px solid #ff0000">

    By doing so you can also control the thickness of the border.

    Hope this helps.

    Thanks
    Daf

  • #3
    Regular Coder
    Join Date
    Jan 2005
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks!

  • #4
    Daf
    Daf is offline
    Regular Coder
    Join Date
    Feb 2005
    Location
    East Texas
    Posts
    140
    Thanks
    32
    Thanked 2 Times in 2 Posts
    You're very welcome

    Daf

  • #5
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,859
    Thanks
    22
    Thanked 157 Times in 148 Posts
    or you could do:

    <img src="images/mp3.gif" style="border: 1px solid red">
    if you have an aversion to hexadecimal values like I do...
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ …Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪

  • #6
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    Why an aversion to
    Code:
    #nnnnnn;
    ?

    If its just cause you can't remember the codes, grab this file. if you just use the names, (e.g. blue) then you won't be able to use many colors, considering there are 1536 of 'em

    Dan
    Attached Files Attached Files
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION


  •  

    Posting Permissions

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