Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Styles legal?

    Some of my pages were done by someone else who set up their styles to work
    like so:

    This would turn the links white if they had the links set to something like:

    <a href="#" class="toplink>test</a>

    ..toplink{
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight:bold;
    }


    This was fine. But I wanted to set up my default links to be teal in color,
    so I did the following:

    a:visited {
    color:#3EA2BC;
    text-decoration: none;
    }
    a:link {
    color:#3EA2BC;
    text-decoration: none;
    }
    a:active {
    color:#3EA2BC;
    text-decoration: none;
    }

    This works fine for all my links, but it also overrode the old definition
    for the links that were supposed to be white (.toplink) and now they were
    all Teal.

    So what I did was add another class:

    a:visited.toplink{
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight:bold;
    }
    a:link.toplink{
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight:bold;
    }
    a:link.toplink{
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight:bold;
    }


    This seems to work fine. But DW gives me a styles error that says that
    there is an error parsing for IE 5.0.

    In the design window, it acts as if these definitions don't exists and show
    the links as Teal. But when I do an F12 to bring up the Browsers, they work
    fine.

    Is the above definition not the preferred way to handle links?

    I was told it was.

    Is there a way to make DW handle these links correctly?

    Also, they don't show in the styles dropdown properties.

    Thanks,

    Tom


    tshad Guest

  2. Similar Questions and Discussions

    1. CSS styles not showing on styles menu
      Hi, I have a CSS files that contains a couple of classes for font colours. I have ticked the "Include CSS styles in the Style menu" box and...
    2. #24095 [Com]: phpinfo styles override page styles and damage appearance
      ID: 24095 Comment by: joe at monkeydepartment dot com Reported By: generic at thetahat dot com Status: Open...
    3. changing type size in paragraph styles and how it effects nested styles
      In a book I'm developing, I decided to up the point size for my "first paragraph" and "body text" in my paragraph styles. I have nested styles in...
    4. Word Styles Replacing My ID Styles
      Hello everyone, I Thought This Was Discussed Here in The Past But I Ran a Search for "Word Styles" and Found Nothing Related. I Send Documents...
    5. OT: Need help if this is legal
      Is it legal for me to ask someone to e-mail me the font sure. it's perfectly legal for you to ask! it's in the first amendment. not sure if...
  3. #2

    Default Re: Styles legal?

    It is not the preferred way, which would be this -

    ..<div id="toplink"><a href="#">test</a></div>

    and then -

    #toplink a { ...}
    #toplink a:hover, #toplink a:focus { ... }

    This would style ONLY those <a> tags within the container with ID "toplink".

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "tshad" <tscheiderich@ftsolutions.com> wrote in message
    news:d5rlsp$imk$1@forums.macromedia.com...
    > Some of my pages were done by someone else who set up their styles to work
    > like so:
    >
    > This would turn the links white if they had the links set to something
    > like:
    >
    > <a href="#" class="toplink>test</a>
    >
    > .toplink{
    > font-family: Verdana, Arial, Helvetica, sans-serif;
    > font-size: 10px;
    > color: #FFFFFF;
    > text-decoration: none;
    > font-weight:bold;
    > }
    >
    >
    > This was fine. But I wanted to set up my default links to be teal in
    > color, so I did the following:
    >
    > a:visited {
    > color:#3EA2BC;
    > text-decoration: none;
    > }
    > a:link {
    > color:#3EA2BC;
    > text-decoration: none;
    > }
    > a:active {
    > color:#3EA2BC;
    > text-decoration: none;
    > }
    >
    > This works fine for all my links, but it also overrode the old definition
    > for the links that were supposed to be white (.toplink) and now they were
    > all Teal.
    >
    > So what I did was add another class:
    >
    > a:visited.toplink{
    > font-family: Verdana, Arial, Helvetica, sans-serif;
    > font-size: 10px;
    > color: #FFFFFF;
    > text-decoration: none;
    > font-weight:bold;
    > }
    > a:link.toplink{
    > font-family: Verdana, Arial, Helvetica, sans-serif;
    > font-size: 10px;
    > color: #FFFFFF;
    > text-decoration: none;
    > font-weight:bold;
    > }
    > a:link.toplink{
    > font-family: Verdana, Arial, Helvetica, sans-serif;
    > font-size: 10px;
    > color: #FFFFFF;
    > text-decoration: none;
    > font-weight:bold;
    > }
    >
    >
    > This seems to work fine. But DW gives me a styles error that says that
    > there is an error parsing for IE 5.0.
    >
    > In the design window, it acts as if these definitions don't exists and
    > show the links as Teal. But when I do an F12 to bring up the Browsers,
    > they work fine.
    >
    > Is the above definition not the preferred way to handle links?
    >
    > I was told it was.
    >
    > Is there a way to make DW handle these links correctly?
    >
    > Also, they don't show in the styles dropdown properties.
    >
    > Thanks,
    >
    > Tom
    >

    Murray *TMM* Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139