SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Sep 2003
    Location
    Halifax
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Link properties and < div > tags

    I have a page with a whole bunch of 'div' sections, and in the nav bar section, I've just added navigation buttons instead of the text links. I'd like the buttons to not have borders on them, so I've been trying to change the link color to the background color.

    Anyway, no version of a:link, a.class:link. a:link IMG, etc, is working at all!

    The page in question is at http://www.devineassociates.ca/NBcal.html

    I'd love any suggestions.

  2. #2
    SitePoint Zealot Tygger2512's Avatar
    Join Date
    Jul 2003
    Location
    Pittsburg, KS
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    #rightcontent img { border:0}
    should do the trick.

    Andy.
    Learn the Emotional Freedom Technique at www.as-if-by-magic.com

  3. #3
    SitePoint Member
    Join Date
    Sep 2003
    Location
    Halifax
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow!
    Now this is why forums are such a good idea! It hadn't even occurred to me to think in that direction.

    Thanks!

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Or if you want to turn borders off from all image links, you can do this:
    Code:
    a img {
      border: none;
    }

  5. #5
    orange pips! orange pips!
    Join Date
    Oct 2001
    Location
    Its all about location
    Posts
    652
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is the <img src="..." border='0'> sytle just a silly idea anymore? I currently use that, but, I like to consider myself a depricated programmer. :-)

  6. #6
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by krayziepjf
    Is the <img src="..." border='0'> sytle just a silly idea anymore? I currently use that, but, I like to consider myself a depricated programmer. :-)
    The border attribute on images is deprecated, and you're encouraged to use CSS instead. It's still allowed in Transitional flavors of HTML and XHTML, though its use is discouraged.


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
  •