Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
  1. #1
    Senior Member Seldimi's Avatar
    Join Date
    Dec 2002
    Location
    Kozani, Greece
    Posts
    488
    Member #
    409
    Hello, I recentrly made a code and have problem. I put this into a css file
    Code:
    <STYLE type=text/css>
    A:link{COLOR:#496463;text-decoration: none;}
    A:visited{COLOR:#496463;text-decoration: none;}
    A:active{COLOR:#496463;text-decoration: none;}
    </STYLE>
    But the first line doesn't work. What I do wrong ???
    - Webmaster's Planet . Greek Vortal For Webmasters ...
    - MyPortFolio - View My Creations

  2.  

  3. #2
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,656
    Member #
    1234
    Liked
    137 times
    Not sure myself, maybe your browswer is overriding what the code says? I.E. I know that there's an option in IE to force all links to be blue, then purple when used.
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  4. #3
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    Put a comment on the first line....

    /* Look it's a meaningless line */
    a:link....


    CSS has this weird thing where it doesn't read the first line for some reason.
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  5. #4
    Junior Member Cinders117's Avatar
    Join Date
    Mar 2003
    Location
    Kent, OH
    Posts
    19
    Member #
    833
    are you trying to make that an external one are you placing that between the <head> tags? If it's external, take out the <style> tags otherwise, in the head it shoulf work... also might wanna put "text/css" with the quotes if its in the <head>

  6. #5
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    If you are keeping the style local, make it

    <STYLE type=text/css>
    <!--
    A:link {COLOR:#496463;text-decoration: none;}
    A:visited {COLOR:#496463;text-decoration: none;}
    A:active {COLOR:#496463;text-decoration: none;}
    -->
    </STYLE>

    or if you don't like using the HTML comment tags, then just use an empty space.

    If you are going external, leave out the <style> tags.

    Also, I would try to leave out the :link from your first line and see if that works.
    - Brian

  7. #6
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Yeah, the problem is that if you put it into a CSS file you don't need the <STYLE></STYLE> elements. They are implied.

  8. #7
    Senior Member Seldimi's Avatar
    Join Date
    Dec 2002
    Location
    Kozani, Greece
    Posts
    488
    Member #
    409
    I did that
    Code:
    <STYLE type=text/css>{  }
    A:link{COLOR:#496463;text-decoration: none;}
    A:visited{COLOR:#496463;text-decoration: none;}
    A:active{COLOR:#496463;text-decoration: none;}
    </STYLE>
    So style is useless!
    - Webmaster's Planet . Greek Vortal For Webmasters ...
    - MyPortFolio - View My Creations

  9. #8
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    it is this
    Code:
    <STYLE type=text/css>
    A:link{COLOR:#496463;text-decoration: none;}
    A:visited{COLOR:#496463;text-decoration: none;}
    A:active{COLOR:#496463;text-decoration: none;}
    </STYLE>
    you do not need the two curly brackets you put in
    JR

  10. #9
    Senior Member Seldimi's Avatar
    Join Date
    Dec 2002
    Location
    Kozani, Greece
    Posts
    488
    Member #
    409
    OK, fixed that, Thanks
    - Webmaster's Planet . Greek Vortal For Webmasters ...
    - MyPortFolio - View My Creations

  11. #10
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    also its always good practice to use new lines... so it would be better like this as it is easier to spot errors etc..
    Code:
    <STYLE type=text/css>
    
    A:link {
    COLOR:#496463;
    text-decoration: none;
    }
    
    A:visited {
    COLOR:#496463;
    text-decoration: none;
    }
    
    A:active {
    COLOR:#496463;
    text-decoration: none;
    }
    
    </STYLE>
    it is also good to indent so you can pick bits out easier
    JR


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:28 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com