69 users online (0 members and 69 guests)  


  Results 1 to 7 of 7

Related

  1. Unwanted link border colors    Forum: HTML Forum
    Replies: 3
  2. Link colors    Forum: CSS Forum
    Replies: 7
  3. Help with text/link colors    Forum: Graphics Forum
    Replies: 10
  4. Replies: 1
  5. Changing link colors in middle of page    Forum: HTML Forum
    Replies: 1
  1. #1
    marcos's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2003
    Location
    Plymouth, Michigan
    Posts
    4

    Question spec link colors for a section of a page

    How do I spec link colors for one small section of my page. I spec my navagation bar with different link colors? Thanks for all the help

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi there marcos.

    You need to define classes for the different links and then set separate rules for them.

    eg -

    if you have the links in a div, give the div a class -

    Code:
    <div class="links">
    <a href="http://css.somepeople.net">CSS Tutorials</a>
    </div>
    Then your style sheet needs to apply to an anchor tag within a div classed as links -

    Code:
    <style type="text/css">
    div.links a {
    color: #ccc;
    }
    </style>
    Or you can give each link itself a class and access it with a.classname , whatever you prefer.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    marcos's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2003
    Location
    Plymouth, Michigan
    Posts
    4

    Thumbs up that works for me

    That works for me. Thanks

  4. #4
    Zorath's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2003
    Posts
    16
    Hi!

    I have the same problem as Marcos, I want to change the link color for just a small section of a webpage. I tested with the code example above, and it worked fine with the text, but it didn't change the border of a image-link within the small section. Anyone know a way to change the border color? (I am not allowed to edit the image)

  5. #5
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    What browser and version # are you using?

    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  6. #6
    Zorath's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2003
    Posts
    16
    Microsoft Internet Explorer 6.0

  7. #7
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    If you mean the default image border on links, then try -

    Code:
    <a href=etc><img src="blah" style="border-color: red;"></a>
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread