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

Thread: <MAP> Problem

  1. #1
    Join Date
    Nov 2006
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default <MAP> Problem

    So I recently finished creating my website fr my school's robotics team. But I put a logo in my header image, so I "mapped" it so that the logo is a link.

    Code:
    	<map name="m_head">
      <area shape="rect" coords="17,47,103,133" href="http://www.usfirst.org" title="U.S. FIRST Website" alt="U.S. FIRST Website"  >
    </map>
    But now, their is a blue border around my entire header image... Is there a way to remove this border or at least change the color so that you don't see (because it is the same as my background color)?

    The URL to my site is, http://www.team330.org

    Any help would be greatly appreciated.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    <img .... border="0">

    Or use CSS, etc etc.

    bordercolor="#000000" would set it to black, if I'm remember the attribute right. Again, you could use CSS too.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Feb 2007
    Posts
    116
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33 View Post
    <img .... border="0">

    Or use CSS, etc etc.

    bordercolor="#000000" would set it to black, if I'm remember the attribute right. Again, you could use CSS too.
    Why not just use border-style: none; ?
    "Rock and roll ain't noise pollution." - AC/DC

    http://www.blake-foster.com

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    <img src.... border="0"> isn't valid HTML

    Using CSS to set it to black actually is silly. Only because you can use the CSS to make it disappear altogether. Blake is close, but if you only want it for images do not put it in the body{ section just add an img section to the CSS like so:

    Code:
    img {
    	border-style: none;
    }
    Of course this will also remove the blue border from ALL pictures that use this CSS
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Nov 2006
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Couldn't you simply set a div around the header image (we'll say "header" for example)

    And use this so that not every image is effected?

    Code:
    .header img {
    	border-style: none;
    }

  6. #6
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Yes you can.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  7. #7
    Join Date
    Feb 2007
    Posts
    116
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    or, you can just give the particular image an id, and in the stylesheet, refer to it by that, ie in your page:

    Code:
    <img id="header" src=" ... ">
    and in the stylesheet

    Code:
    #header
    {
         border: none;
    }
    "Rock and roll ain't noise pollution." - AC/DC

    http://www.blake-foster.com

  8. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Er... never had any problems using border="0".
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  9. #9
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Problems? no, it's just not valid anymore. (I know, I used it ALL the time too.. still do out of habit )
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  10. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    any more?
    with what? xml?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •