Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default applying CSS to JS?

    I want to know if I can apply CSS to JS. I have a JS document that is part of
    an HTML page in Dreamweaver. I have in in a layer in the HTML and then edit the
    JS if need be.

    Without using CSS, my text changes size depending on browers and screen
    resolution sizes. I want to avoid this and the only way I know to do so is to
    use CSS. But I'm not sure HOW to apply a CSS to JS.

    Can someone please help me? This is for a major client of mine and I don't
    want to mess it up. THANKS!

    CozmoRaine Guest

  2. Similar Questions and Discussions

    1. Applying Patch
      Today I applied patches to update ColdFusion 7 to version 7.02. After restarting the services the ColdFusion sites run. However, I can no longer...
    2. applying style
      Hi Can we style column headers, border .... with style sheet? any example / reference, please! TIA --
    3. GPO not applying!
      I don't know what is going on! I have configured the Active Directory perfectly. Now all the problem is that the GPO's are not applying. The clients...
    4. applying a color to EPS
      How to add collor to a black and white EPS file in InDesign CS on Windows XP?
    5. applying transition
      Hi In a slide show, I am changing the images by using the following script by changing the case members: on mouseUp puppetTransition 2 ...
  3. #2

    Default Re: applying CSS to JS?

    You cannot apply CSS to js, in the sense that you would apply it to HTML,
    since js is not a presentational scripting method like HTML is. However,
    you can add CSS to the HTML that js writes. Why not post a link to the page
    so that we can know more about what you are describing.

    --
    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
    ==================

    "CozmoRaine" <webforumsuser@macromedia.com> wrote in message
    news:dbqs5m$n93$1@forums.macromedia.com...
    >I want to know if I can apply CSS to JS. I have a JS document that is part
    >of
    > an HTML page in Dreamweaver. I have in in a layer in the HTML and then
    > edit the
    > JS if need be.
    >
    > Without using CSS, my text changes size depending on browers and screen
    > resolution sizes. I want to avoid this and the only way I know to do so is
    > to
    > use CSS. But I'm not sure HOW to apply a CSS to JS.
    >
    > Can someone please help me? This is for a major client of mine and I don't
    > want to mess it up. THANKS!
    >

    Murray *TMM* Guest

  4. #3

    Default Re: applying CSS to JS?

    Here is the link - when you hold down "control" and scroll with the mouse, you
    can tell that the drop-down menu (down in JS) doesn't have a style attached to
    it (i.e. it changes size and messes up the whole page) -
    [url]http://www.net-aid.net/hidden/secondary2.html[/url]

    Also - if you are willing to take a look - the THIRD TIER off of my drop-down
    menu doesn't stay up once you mouse over it. I'm not sure why that is
    happening, either. Any suggestions?

    Thank you for your help!

    CozmoRaine Guest

  5. #4

    Default Re: applying CSS to JS?

    > Here is the link - when you hold down "control" and scroll with the mouse,
    > you
    > can tell that the drop-down menu (down in JS) doesn't have a style
    > attached to
    > it (i.e. it changes size and messes up the whole page) -
    > [url]http://www.net-aid.net/hidden/secondary2.html[/url]
    This is what happens when you resize your text. You cannot prevent that
    with CSS. And you can see that the drop-down menu *does* have styles
    applied to it - otherwise it would look like plain text, and not have colors
    and borders.

    As for your other question, you would have to ask these people -

    [url]http://www.milonic.com/[/url]

    I wouldn't use those menus on any site I build, though.

    --
    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
    ==================

    "CozmoRaine" <webforumsuser@macromedia.com> wrote in message
    news:dbqvti$ssf$1@forums.macromedia.com...
    > Here is the link - when you hold down "control" and scroll with the mouse,
    > you
    > can tell that the drop-down menu (down in JS) doesn't have a style
    > attached to
    > it (i.e. it changes size and messes up the whole page) -
    > [url]http://www.net-aid.net/hidden/secondary2.html[/url]
    >
    > Also - if you are willing to take a look - the THIRD TIER off of my
    > drop-down
    > menu doesn't stay up once you mouse over it. I'm not sure why that is
    > happening, either. Any suggestions?
    >
    > Thank you for your help!
    >

    Murray *TMM* Guest

  6. #5

    Default Re: applying CSS to JS?

    I understand that is what happens when you hold down the "Control" button and
    scroll. But I only do that as a test, to ensure my CSS are working correctly. I
    know this menu's text may look larger or small on some other people's screens.
    BTW - is there a specific reason why you wouldn't put these type of drop-down
    JS's on your sites? Just curious.

    Thanks!

    CozmoRaine Guest

  7. #6

    Default Re: applying CSS to JS?

    Because it's so easy to do without using such menu systems, and for most of
    the other reasons discussed here:

    [url]http://apptools.com/rants/jsmenu.php[/url]


    --
    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
    ==================

    "CozmoRaine" <webforumsuser@macromedia.com> wrote in message
    news:dbr438$63c$1@forums.macromedia.com...
    >I understand that is what happens when you hold down the "Control" button
    >and
    > scroll. But I only do that as a test, to ensure my CSS are working
    > correctly. I
    > know this menu's text may look larger or small on some other people's
    > screens.
    > BTW - is there a specific reason why you wouldn't put these type of
    > drop-down
    > JS's on your sites? Just curious.
    >
    > Thanks!
    >

    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