External CSS loading problem

This my hole code
AS3 code:
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("linkNewD.xml"));
var cssLoader:URLLoader = new URLLoader();
cssLoader.load(new URLRequest("style.css"));
cssLoader.addEventListener(Event.COMPLETE, onCSSFileLoaded);
function onCSSFileLoaded(event:Event):void
var st:StyleSheet = new StyleSheet(); 
st.parseCSS(cssLoader.data);  
trace(cssLoader.data);
myMc1.opt1txt.styleSheet =st;
When I am trace this (trace(cssLoader.data);) I got this css
".a {color: '#6a4100', text-decoration: 'none';}
.a:link { color: '#333333', textDecoration: 'none'; }
.a:hover {color: '#b30000', text-decoration: 'none';}"
but not Appling to the test field why?
xmlLoader.addEventListener(Event.COMPLETE, displayHTML);
function displayHTML(e:Event):void {
var xmlData:XML = new XML(e.target.data);
myMc1.opt1txt.htmlText = xmlData.Header1.option.*;
External CSS code:
.a {color: '#6a4100', text-decoration: 'none';}
.a:link { color: '#333333', textDecoration: 'none'; }
.a:hover {color: '#b30000', text-decoration: 'none';}
XML code:
<data>
<Header1>
<title>Title one</title>
<option>
  <![CDATA[<b>Option Title</b><br>]]>
  <![CDATA[<a href="http://www.google.com">Google Search</a><br>]]>
  <![CDATA[<a href="http://www.yahoo.com">Yahoo Search</a><br>]]>
  <![CDATA[<a href="http://www.bing.com">Bing search</a>]]>
</option>
</Header1>
</data>
Please help me!
Thanks,
jafy

Hi jafy,
Please make your textfield dynamically using as3. Now your CSS is correct but you created the textfield by manual… it’s automatically add styles and other html code on textfield
While I was using manually crated textfield… I trace the html text content from textfield it was showing like:
<TEXTFORMAT LEADING="2">
     <P ALIGN="CENTER"> <FONT FACE="Arial" SIZE="16" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B>Option Title</B></FONT> </P>
</TEXTFORMAT>
<TEXTFORMAT LEADING="2">
     <P ALIGN="CENTER"> <FONT FACE="Arial" SIZE="16" COLOR="#000000" LETTERSPACING="0" KERNING="0"> Google Search</FONT> </P>
</TEXTFORMAT>
<TEXTFORMAT LEADING="2">
     <P ALIGN="CENTER"> <FONT FACE="Arial" SIZE="16" COLOR="#000000" LETTERSPACING="0" KERNING="0"> <A HREF="http://www.google.com" TARGET="">Google Search</A> </FONT> </P>
</TEXTFORMAT>
<TEXTFORMAT LEADING="2">
     <P ALIGN="CENTER"><FONT FACE="Arial" SIZE="16" COLOR="#000000" LETTERSPACING="0" KERNING="0"> <A HREF="http://www.yahoo.com" TARGET="">Yahoo Search</A></FONT></P>
</TEXTFORMAT>
<TEXTFORMAT LEADING="2">
     <P ALIGN="CENTER"><FONT FACE="Arial" SIZE="16" COLOR="#000000" LETTERSPACING="0" KERNING="0"> <A HREF="http://www.bing.com" TARGET="">Bing search</A></FONT></P>
</TEXTFORMAT>
Now I rewrite your as3 code and added that here:
var cssLoader:URLLoader = new URLLoader();
cssLoader.load(new URLRequest("style.css"));
cssLoader.addEventListener(Event.COMPLETE, onCSSFileLoaded);
function onCSSFileLoaded(event:Event):void {
    var st:StyleSheet = new StyleSheet();
    st.parseCSS(cssLoader.data);
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest("linkNewD.xml"));
    var opt1txt:TextField = new TextField();
    opt1txt.styleSheet=st;
    myMc1.addChild(opt1txt);
    xmlLoader.addEventListener(Event.COMPLETE, displayHTML);
    function displayHTML(e:Event):void {
        var xmlData:XML=new XML(e.target.data);
        opt1txt.htmlText=xmlData.Header1.option.*;
        //trace(myMc1.opt1txt.htmlText);
        opt1txt.autoSize = TextFieldAutoSize.LEFT;
CSS Code:
p{font-size: 25px; color:#ffcc00;}
a {color: #6a4100; text-decoration:none;}
a:link { color:#333333; text-decoration:none; }
a:hover {color:#ff0000; text-decoration:none;}
Regards,
Finoy Francis.
http://flashprolabs.com

Similar Messages

  • Problem with WLIOTimeoutSecs in weblogic and apche  CSS load balancer

    Hi,
    We are using Weblogic 11g, apache 2.2 and CSS load balancer for load balancing.
    we have huge reports which take minutes to generate and hence we need higher value for WLIOTimeoutSecs. This works fine when we use server url but WLIOTimeoutSecs is not working when we use CSS load balancer.
    We checked with our load balancing team they said CSS load balancer will not repost the request.
    Here is the plugin configuration
    <Location /*****>
    SetHandler weblogic-handler
    PathTrim /
    WebLogicHost 'serevrip'
    WebLogicPort 'port'
    WLIOTimeoutSecs 3600
    Idempotent OFF
    WLProxySSL ON
    DefaultFileName /***/***/index.jsp
    Debug On
    WLLogFile /***/***/***/***.log
    </Location>
    Could some please help me on this.
    Thanks in advance
    Regards,
    Venkat

    Hi Tarun,
    The problem occurs when the SSL is enabled on apache. If I access the same URL over HTTP, the parameter WLIOTimeOut works fine.
    Also I observed that, none of the parameters are getting applied to the plugin. I had switched on 'DebugConfigInfo'. With this the HTTP URL with ?__WebLogicBridgeConfig as query parameter returned the complete configuration. However when accessed with HTTPS the server did not return the configuration.
    Is there a specific configuration to be applied when apache is used with SSL?
    Thanks for your help,
    Shashi

  • Loading an external CSS stylesheet

    I am new to Flash and trying to get an external CSS
    stylesheet to work correctly. I loaded the following sample code
    from the Adobe help files but the html text does not format
    correctly? If I add a StyleSheet object , then it will format just
    fine. The external CSS file is in the same directory as the SWF
    file and I'm not getting any error messages. Using IE7 and Flash
    Player 9.0.115....Any help would be much appreciated.

    you can use something like the following to make your code
    more eyeball friendly:

  • Problem attaching external Css...

    Hello all,
    I have been using Dw cs3 for a few months now and currently experiencing the following problem:
    When defining a site root folder in osx it will not accept  / or \ when chaning the / it creates another directory under mac osx. when opening my file then attaching the Css I think that it cannot find the proper file to attach it to.it will insert the Css but will not change the style of the site.
    I wanted to see if it was me or the mac, so I went back to windows installed everthing under C:/files for my site   started DW opened the file and attached the external Css. Worked fine and changed instantly... so I am confused as to is there a way for me to define my local site in mac that its different? am I missing somthing?
    thanks
    quint

    This isn't normal behavior, you may have an issue with your current installation of Dreamweaver. You may want to email Adobe support to see if there's something you can do to avoid having to do a reinstall, other wise this may be the route you have to go.
    Lawrence   *Adobe Community Expert*
    www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF

  • How to add external css file from _edge.js file

    I have tried to add in html page, but when I save edge project it removes it.
    I am able to add external js file in scripts:[] in _edge.js file
    What we can add inside resources:[] ?
    And is there any way to add external css in edge files except in html page and through javascript?

    ...and which kind of files can be included under
    resources: [] ??
    I have a .json file that I need to be included in a template (and also included in projects created from that template).
    The only way I found to do this is to add it as a script. The problem then is that all included "scripts" will be evaluated when the page is loaded, which will fail since it's a json file. External dependencies makes it impossible for me to change the format of the json file...

  • AS3 - External CSS and External text

    I'm going nuts here. I have successfully loaded text from an
    external file. I have successfully loaded styles from external CSS.
    Trace appear to confirm that both have loaded. My Problem is that I
    cannot get the styles to apply to the text.
    I thought that perhaps it was a sequence issue and have tried
    to make sure that the CSS loads before the HTML. I have also
    attempted to apply the style by using a button event (but did not
    include that code) just for testing but that did not work either. I
    did apply the same CSS to text typed in Flash and that was styled
    correctly - just to confirm that the CSS was valid.
    Anyone see what my problem is? Thanks

    I'm going nuts here. I have successfully loaded text from an
    external file. I have successfully loaded styles from external CSS.
    Trace appear to confirm that both have loaded. My Problem is that I
    cannot get the styles to apply to the text.
    I thought that perhaps it was a sequence issue and have tried
    to make sure that the CSS loads before the HTML. I have also
    attempted to apply the style by using a button event (but did not
    include that code) just for testing but that did not work either. I
    did apply the same CSS to text typed in Flash and that was styled
    correctly - just to confirm that the CSS was valid.
    Anyone see what my problem is? Thanks

  • Using an external css in Flex 4

    I'm using the Flex 4 beta and the ability to load an external css seems to be broken. Running the code below shows no styling at all. Have I missed something?
    components.MainPanel.as:
    package components {
    import flash.events.Event;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.text.StyleSheet;
    public class MainPanel extends Panel
        private var mainLabel:Label = new Label();
        private var label2:Label = new Label();
        public function MainPanel()
            super();
            var cssUrl:URLRequest = new URLRequest("css/style.css");
            var cssLoader:URLLoader = new URLLoader();
            cssLoader.addEventListener(Event.COMPLETE, cssLoaded);
            cssLoader.load(cssUrl);
        function cssLoaded(event:Event):void {
            var css:StyleSheet = new StyleSheet();
            css.parseCSS(URLLoader(event.target).data);
            mainLabel.styleSheet = css;
            mainLabel.htmlText = "Main Label";
            mainLabel.horizontalCenter = 0;
            mainLabel.verticalCenter = -350;
            mainLabel.setStyle("styleName", "h1");
            addElement(mainLabel);
            label2.htmlText="Sub-Label";
            label2.horizontalCenter="0";
            label2.verticalCenter="-300";
            addElement(label2);
    css/style.css:
    .h1 {     color:#ffe145;     font-family: Verdana;     font-size: 36;     font-style: italic;     font-weight: bold; }
    app.mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo"
                   xmlns:custom="components.*"
                   minHeight="768"
                   minWidth="1024"
                   backgroundColor="#333399">
        <custom:MainPanel horizontalCenter="0" verticalCenter="0"/>
    </s:Application>

    Thanks for the quick response dj_page. I definitely expect compression when creating jpegs but this kind of shocked me especially since I was starting with a jpeg.
    The pixel count difference is indeed the result of cropping so that's expected.
    After some experimentation with exporting files as jpeg and then comparing them to the file created as a result of "Edit in..." it seems that it would take a quality setting of 60 in LR Export to create a file of the same size that's created by Edit In. That's lower than what I thought was the LR default of 75 and definitely produces visible degradation.
    Maybe someone who uses Edit In... can either confirm that there's a problem (and hopefully a workaround) or that it must be something with my setup.

  • Unable to embed External CSS file, dropdown list,filter panel and dimension filter are not working in SAP Design Studio Tool

    Hello Everyone,
    I am new to SAP Design Studio. I am working on creating dashboards and I am using Design Studio 1.2 version. Please suggest some solutions for the following issues. Thanks in Advance.
    1. External CSS file which is embeded using custom CSS option under "application component properties" is not working.
        * I kept the external CSS file inside repository-> my application folder.
    2. During runtime, getting javascript error while selecting '-' option from filter panel.
    3. Unable to select or type dimension name under "dimension filer component" properties.
    4. Getting runtime error for dropdown list, and I have inserted the following code under "onStartup" option of Application component properties.
    "DROPDOWN_1.setItems(DS_1.getMemberList("PRODUCTREF", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 20));
    and dimension values are not populated in auto suggest."

    There should be an Error Log under View > Error Log that gives you more details of these errors.  Could you add that?  There is also a View > Script Problems log that provides more details as well.

  • Template that does not let an external css to be attached

    Hi
    i have a template with en editable region for mainContent.
    and it is applied to all the pages in my site.
    now i want to attach an external css file to one of the pages
    that is based on that template, and i get this message:
    "a request to create a new style, link or import failed. if
    you work with an instance of a template, make sure that you have an
    editable region in the head tag".
    so i went to my template and selected all the head tag and
    made it an editable region.
    but i still get the same message.
    what can i do?
    best regards

    I am having the exact same problem but my template was saved as a template. I created a page from my template and made editable regions, when I go to create a style it tells me "A request to create a new STYLE, LINK, or IMPORT failed. If you are working with an instance of a template, make certain that there is an editable region within the head tag." I've tried making an editable region within the head tag and it still doesn't work.
    Here is my code.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Witmer Furniture</title>
    <style type="text/css">
    #container {
        width: 780px;
        margin-right: auto;
        margin-left: auto;
        background-color: #FFFFFF;
        margin-top: 0px;
    </style>
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <link href="../footer.css" rel="stylesheet" type="text/css" />
    <link href="../columnone.css" rel="stylesheet" type="text/css" />
    <link href="../columntwo.css" rel="stylesheet" type="text/css" />
    <link href="../columnthree.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    body {
        margin-top: 0px;
        margin-left: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
        background-color: #000000;
    </style>
    </head>
    <body>
    <div id="container">
      <div id="banner"><img src="../images/banner5.png" alt="Witmer Furniture" /></div>
      <div id="cascading menu">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a class="MenuBarItemSubmenu" href="witmerfurniture.com">BEDROOM</a>
          <ul>
                <li><a href="#">Bedroom Sets</a></li>
                <li><a href="#">Beds</a></li>
                <li><a href="#">Nightstands</a></li>
                <li><a href="#">Dressers</a></li>
                <li><a href="#">Case Goods</a></li>
                <li><a href="#">Mirrors</a></li>
            </ul>
          </li>
    <li><a href="#" class="MenuBarItemSubmenu">OCCASIONAL</a>
          <ul>
                <li><a href="#">Coffe Tables</a></li>
                <li><a href="#">End Tables</a></li>
                <li><a href="#">Sofa Tables</a></li>
            </ul>
          </li>
    <li><a class="MenuBarItemSubmenu" href="#">ENTERTAINMENT</a>
          <ul>
                <li><a href="#">T.V. Stands</a> </li>
                <li><a href="#">Armoires</a></li>
            </ul>
          </li>
    <li><a href="#" class="MenuBarItemSubmenu">HOME OFFICE</a>
          <ul>
                <li><a href="#">Desks</a></li>
                <li><a href="#">Bookcases</a></li>
                <li><a href="#">Cradenzas</a></li>
            </ul>
          </li>
    <li><a href="#" class="MenuBarItemSubmenu">NEW PRODUCTS</a>
        <ul>
                <li><a href="#">Weston</a></li>
              <li><a href="#">Summit Lake</a></li>
            </ul>
          </li>
        </ul>
      </div>
      <!-- TemplateBeginEditable name="EditRegion1" -->
      <div id="main">
        <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','780','height','280','title','flash','src','../Flash/WitmerFlash','loop','false','qual ity','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Ve rsion=ShockwaveFlash','wmode','transparent','movie','../Flash/WitmerFlash' ); //end AC code
        </script>
        <noscript>
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="780" height="280" title="flash">
          <param name="movie" value="../Flash/WitmerFlash.swf" />
          <param name="quality" value="high" />
          <param name="LOOP" value="false" />
          <param name="wmode" value="transparent" />
          <embed src="../Flash/WitmerFlash.swf" width="780" height="280" loop="false" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed>
        </object>
        </noscript>
      </div>
      <!-- TemplateEndEditable -->
      <!-- TemplateBeginEditable name="EditRegion2" -->
      <div id="body"><img src="../images/collections border.png" alt="Collections" width="780" height="30" /></div>
      <div id="columnone">
        <ul>
          <li><a href="ashland.html">Ashland</a></li>
          <li><a href="brookb.html">Brook B</a></li>
          <li><a href="Clayton.html">Clayton</a></li>
          <li><a href="contemporary.html">Contemporary</a></li>
          <li><a href="darlington.html">Darlington</a></li>
        </ul>
      </div>
      <div id="columntwo">
        <ul>
          <li><a href="ellyg.html">Elly G</a></li>
          <li><a href="oakgrove.html">Oak Grove</a></li>
          <li><a href="southbay.html">Southbay</a></li>
          <li><a href="stratford.html">Stratford</a></li>
          <li><a href="summitlake.html">Summit Lake</a></li>
        </ul>
      </div>
      <div id="columnthree">
        <ul>
          <li><a href="taylorj.html">Taylor J</a></li>
          <li><a href="unity.html">Unity</a></li>
          <li><a href="weston.html">Weston</a></li>
        </ul>
      </div>
      <!-- TemplateEndEditable -->
      <div id="footer">
        <ul>
          <li><a href="index.html">Home</a></li>
          <li><a href="aboutus.html">About Us</a></li>
          <li><a href="../contactus.html">Contact Us</a></li>
          <li><a href="sitemap.html">Site Map</a></li>
        </ul>
      </div><!--container div --></div>
    <!--This is the end of the container -->
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

  • CSS Float Problems

    I'm just becoming comfortable with using CSS. At least, I
    thought I was. I put together a test page and it worked on IE 7.
    Then, I downloaded Firefox and Safari to check compatability on
    other browsers.
    I have a centered page with a top navigation bar, content
    area, and a footer (bottomNavBar). Inside the content area I have
    two sections, a left section and a right section. In the left there
    should be text, some sort of welcome text. In the right some sort
    of Flash intro video the user can play when they choose.
    The problem: I got the float to work in IE 7 (Sometimes it
    wouldn't. It seems tempermental.). However, the floats won't work
    on the other 2 browsers. In the other 2 it puts the first div
    listed above the second instead of side by side like in IE 7.
    Here is the code:

    To make your contentIndexFlashIntro & contentIndexWelcome
    divs sit
    side-by-side you have to assign each a width. The combined
    total of those
    widths must be <=800px.
    Walt
    "JasonTheAdobeFan" <[email protected]> wrote
    in message
    news:[email protected]...
    > I'm just becoming comfortable with using CSS. At least,
    I thought I was. I
    > put
    > together a test page and it worked on IE 7. Then, I
    downloaded Firefox and
    > Safari to check compatability on other browsers.
    >
    > I have a centered page with a top navigation bar,
    content area, and a
    > footer
    > (bottomNavBar). Inside the content area I have two
    sections, a left
    > section and
    > a right section. In the left there should be text, some
    sort of welcome
    > text.
    > In the right some sort of Flash intro video the user can
    play when they
    > choose.
    >
    > The problem: I got the float to work in IE 7 (Sometimes
    it wouldn't. It
    > seems
    > tempermental.). However, the floats won't work on the
    other 2 browsers. In
    > the
    > other 2 it puts the first div listed above the second
    instead of side by
    > side
    > like in IE 7.
    >
    > Here is the code:
    >
    >
    > ***First is the HTML***
    >
    > <body>
    > <div class="header">
    > <img src="Logo001.png" />
    > </div>
    > <div class="container">
    > <div class="topNavBar">
    > <ul class="topNavBarUL">
    > <li class="topNavBarLI"><a
    class="topNavBarLinksCurrent"
    > href="index.htm">Home</a></li>
    > <li class="topNavBarLI"><a
    class="topNavBarLinks"
    > href="page2.htm">Link2</a></li>
    > <li class="topNavBarLI"><a
    class="topNavBarLinks"
    > href="page3.htm">Link3</a></li>
    > <li class="topNavBarLI"><a
    class="topNavBarLinks"
    > href="page4.htm">Link4</a></li>
    > </ul>
    > </div>
    > <div class="content">
    > <div class="contentIndexFlashIntro">
    > <script type="text/javascript">
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=9,0,28,0','width','350','height','350','title','IntroVideo','src','Intro
    > Video002','quality','high','pluginspage','
    http://www.adobe.com/shockwave/downloa
    >
    d/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','IntroVideo002'
    > //end
    > AC code
    > </script><noscript><object
    > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=9,0,28,0" width="350" height="350"
    title="IntroVideo">
    > <param name="movie" value="IntroVideo002.swf" />
    > <param name="quality" value="high" />
    > <embed src="IntroVideo002.swf" quality="high"
    > pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
    > n=ShockwaveFlash" type="application/x-shockwave-flash"
    width="350"
    > height="350"></embed>
    > </object></noscript>
    > </div>
    > <div class="contentIndexWelcome">
    >
    <!--<center><h2>Welcome</h2></center>
    > <hr/>-->
    > <p class="smallText">Paragraph 1</p>
    > <p class="smallText">Paragraph 2</p>
    > <hr/>
    > <ul><u class="smallText">Unordered
    List</u>
    > <li><span class="smallText">Item
    1</span></li>
    > <li><span class="smallText">Item
    2</span></li>
    > <li><span class="smallText">Item
    3</span></li>
    > <li><span class="smallText">Item
    4</span></li>
    > <li><span class="smallText">Item
    5</span></li>
    > <li><span class="smallText">Item
    6</span></li>
    > </ul>
    > <hr/>
    > <p class="smallText">Concluding
    Paragraph</p><br />
    > </div>
    > </div>
    > <div class="bottomNavBar">
    > <p>&copy; Copyright 2008</p>
    > </div>
    > </div>
    > </body>
    >
    > *********************************
    > ***Next is the external CSS.***
    >
    > body {
    > font-family: Arial, Helvetica, sans-serif;
    > background-color: #999999;
    > margin: 0px;
    > }
    >
    > .header {
    > background-color: #FFFFFF;
    > width: 100%;
    > margin: 0px;
    > padding: 0px 0px 0px 0px;
    > top: 0px;
    > }
    >
    > .container {
    > background-color: #FFFFFF;
    > width: 800px;
    > margin-left: auto;
    > margin-right: auto;
    > margin-bottom: 0px;
    > margin-top: 0px;
    > }
    >
    > /* top navigation bar class
    > ** I prefer to have a nav bar to the top rather than the
    left
    > */
    > .topNavBar {
    > width: 800px;
    > height: 22px;
    > background-color: #0080EE;
    > border: 0px solid #FFFFFF; /* I turned off the pixel
    width because I
    > didn't
    > ** want a border right now. But I left the rest in case
    > ** I wanted to change it back to 1px.
    > */
    > }
    >
    > /* topNavBar link properties
    > ** The idea is to have each link highlight when cursor
    comes over any part
    > ** of the section, not just the words. Then goes back to
    normal when
    > cursor
    > ** leaves. The current page should have its own link
    highlighted always.
    > */
    > ul.topNavBarUL {
    > height: 17px;
    > float: left;
    > width: 100%;
    > padding: 0;
    > margin: 0;
    > list-style-type: none;
    > }
    >
    > li.topNavBarLI {
    > display: inline;
    > }
    >
    > a.topNavBarLinks:link, a.topNavBarLinks:active,
    a.topNavBarLinks:visited {
    > float: left;
    > text-decoration: none;
    > color: #FFFFFF;
    > background-color: #0080EE;
    > padding: 0.15em 0.6em;
    > border-right: 1px solid #FFFFFF;
    > }
    >
    > a.topNavBarLinks:hover {
    > color: #FFFFFF;
    > background-color: #FF9900;
    > text-decoration: none;
    > }
    >
    > a.topNavBarLinksCurrent, a.topNavBarLinksCurrent:active,
    > a.topNavBarLinksCurrent:visited,
    a.topNavBarLinksCurrent:hover {
    > float: left;
    > text-decoration: none;
    > color: #FFFFFF;
    > background-color: #00FF33;
    > padding: 0.15em 0.6em;
    > border-right: 1px solid #FFFFFF;
    > }
    >
    > /* content class
    > ** This is the part of the page that the content will go
    in.
    > ** It should have the full width of the container class
    and
    > ** stretch in height based on the content with a minimum
    > ** height of 500px.
    > */
    > .content {
    > width: 800px;
    > min-height: 400px;
    > background-color: #FFFFFF;
    > font-family: Arial, Helvetica, sans-serif;
    > color: #000000;
    > }
    >
    > /* content links
    > ** The links in the content area will just be the
    regular links.
    > ** Navigation links will all be given special classes to
    define them.
    > */
    > a:link, a:active, a:visited {
    > color: #0080EE;
    > text-decoration: none;
    > }
    >
    > a:hover {
    > color: #FF9900;
    > text-decoration: underline;
    > }
    >
    > /* content headings, hr
    > */
    > h1, h2, h3, h4, h5, h6 {
    > font-family: Arial, Helvetica, sans-serif;
    > color: #00FF33;
    > margin-bottom: 2px;
    > }
    >
    > hr {
    > color: #0080EE;
    > }
    >
    > p {
    > text-indent: 20px;
    > margin-top: 4px;
    > }
    >
    > ul {
    > margin-top: 4px;
    > }
    >
    > li {
    > list-style: square;
    > color: #00FF33;
    > }
    >
    > .contentIndexFlashIntro {
    > padding-top: 2px;
    > padding-right: 2px;
    > float: right;
    > }
    >
    > .contentIndexWelcome {
    > float: left;
    > text-align: justify;
    > padding-top: 4px;
    > padding-right: 10px;
    > padding-bottom: 4px;
    > padding-left: 4px;
    > }
    >

  • Insert a div box background for one document only while using external CSS style sheet.

    I am trying to set a background image in one of my div boxes, but because I am using an external style sheet it changes it in all my documents. How can I do it with just this one page? Preferably in design mode.

    What i did to slove this problem was:
    Open my external CSS style sheet
    Copy the contents of it
    Remove the CSS link in the one page i wanted to be different.
    Pasted the contents in the <head> under the rest of the CSS rules for that page.
    Then I could set the background for that box w/o altering the other pages..
    I tried the other suggestions, but could not get them to work. Not saying they are wrong, but maybe i was implementing them wrong.

  • Add spry menu to external css or template

    I have a working navigation menu at www.reachyourpotential.ca
    but I haven't used an external style sheet on this website and that
    seems to be the thing to do these days. I used cs3 to add a spry
    horizontal menu to a template (standard cs3 2 column). Should I
    move the spry menu to an external style sheet?
    I believe the benefits of an external css are faster page
    loading speed and better seo.
    I am also revising a website for a client and want to get it
    right the first time.
    Which is better - add the spry menu to an external css or a
    template?
    Thank you.

    This may sound really dumb as no one ever addresses this
    issue, but once I create the Spry menu and then create all my other
    pages from the template, what if I need to change something in the
    menu? Since the href's are located in the HTML of the sheet itself,
    not in the .css or .js, how do you get to the point where you just
    change it one place and it changes everywhere?
    Does this make sense? What piece of the puzzle am I missing?
    Thanks for any assistance.

  • Dreamweaver very slow when linking to external CSS style sheets

    I'm working on a site on my PC using Dreamweaver CS6.  When I link to external style sheets, Dreamweaver virtually grinds to a halt.  Just clicking from one line to another can take up 10 seconds.  My PC is high spec, i3720, stripes set drives and 32gb ram.
    I have tried deleting the cache no change.  The external css files are part of the site and the site has been rebuilt .  Can somone help with this as it is seriously impacting my ability to use Dreamweaver.

    Hi Murray, the RAM comments were irrelevant, pointless. 32GB RAM vs 4GB RAM?  Sorry, I worked at Microsoft and as a systems integrataion consultant for a number of years.  32bit programmes don't access RAM the same as 64bit, but, having 32gb with a 64Bit OS means RAM usage for a 32bit programme is better managed. Programmes and data files are on seperate drives.  My data files kept are on 3 disk stripe sets.
    The CSS files and the HTML file are on the same drive.  AS an example of performance for data read/writes, I also use Photoshop CS6 to edit images in excess of 2gb in size containg multiple smart object, and I dont experience this type perormance lag.
    In this case, RAM is mainly irrlevent because the file are small, approx 200kb total combined size.  I mentioned RAM in my initial post because any time I've had problems with Adobe products before, I've always been asked how much RAM I have.
    So, can we please drop RAM, and perhaps focus on the problem....
         Dreamweaver, regardless of what background processes I have running, regardless of how much RAM I have, regardless of where the files are kept, has a significant performance hit when editing an HTML file with links to multiple CSS files.

  • Edge Animate 1.0 and external css

    Hello and Happy Friday All,
    I'm having issues getting an external css to work inside my Edge Animate project.
    I'm importing the css like so on the compositionReady area of the stage actions:
    $("<link/>",{"rel":"stylesheet", "type":"text/css", "href":"mmt_stylesheet.css" }).appendTo("#Stage");
    My css is in the same directory as the rest of my edge files.
    In my css file I have things written like so:
    #Stage_#testing {
      font-color: rgba (255,255,255,0.6)!important;
    #Stage_#testing2 {
    background-color: #0F0 !important;
    width: 600px !important;
    In my edge file I have one text file on the stage with the instant name of testing and a symbol of a simple rectangle with the instant name of testing2.
    I am not seeing any styling when I previw the edge project. Any help would be much appreciated. Thanks

    IE 10 - Sorry but I am new to this and do not know what you mean by "prefixes"
    I have also tried this in Chrome and Firefox and the jpg does not load.
    Do you know of another way of doing this?  I thought it would be easy in Animate but it just seems very complex.
    If I do this in a HTML page
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="mmt_stylesheet.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="earth"></div>
    </body>
    </html>
    With a css file of
    @charset "utf-8";
    /* CSS Document */
    #earth {
      width: 100px;
    height: 100px;
    background: url(http://www.noirextreme.com/digital/Earth-Color4096.jpg);
    border-radius: 50%;
    background-size: 210px;
    box-shadow: inset 16px 0 40px 6px rgb(0, 0, 0),
      inset -3px 0 6px 2px rgba(255, 255, 255, 0.2);
    animation-name: rotate;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    @keyframes rotate {
      from { background-position-x: 0px; }
      to { background-position-x: 210px; }
    This works fine in all browsers - add this to Edge and it does not work.

  • Frustrated with external css link

    I had an external css link that was working in edge version 2014.0, then I upgraded to 2014.1 and edge will no longer link to the external css link that it would before. (The reason I have an external css is that I have some elements that I am adding thru javascript to the stage later so that I don't clutter up the stage - these elements added later were then styled with my external css but now it doesn't work). I was able to get the css to link before by manually adding the css in the edge_Preload.js:
      aLoader = [
          { load: "edge_includes/jquery-2.0.3.min.js"},
          { load: "edge_includes/edge.4.0.0.min.js"},
          { load: "js/rollarCoasterQuestionsMain.js", user: true },
          { load: "js/rollarCoasterQuestion1.js", user: true },
          { load: "js/rollarCoasterQuestion2.js", user: true },
          { load: "js/rollarCoasterQuestion3.js", user: true },
          { load: "js/rollarCoasterQuestion4.js", user: true },
      { load: "css/rollarCoasterQuestionsMain.css"},                 //this was the added line that worked before
          { load: "js/jquery.cookie.js", user: true },
          { load: "rollarCoasterR1_edge.js"},
          { load: "rollarCoasterR1_edgeActions.js"}];
    It no longer works allowing me to add the external stylesheet this way... so I'm looking for a new way but going through the forum I've found the following examples that I haven't gotten to work:
    Putting this in the stage code (technically is in the edgeActions.js file): sym.$("<link rel='stylesheet' type='text/css' href='css/rollarCoasterQuestionsMain.css'>").appendTo("#Stage");   //couldn't get this to work
    Then tried putting this in my external javascript file just to try it another way but it diddn't work either (in my js/rollarCoasterQuestionsMain.js file):
    $( "#Stage" ).append( "<link rel='stylesheet' type='text/css' href='../css/rollarCoasterQuestionsMain.css'>" );   // but this didn't work either
    Please help

    Actually in most of my Edge projects I'm using webfonts.
    When doing this I also add an external stylesheet like below. (Located in the library, fonts tab)
    Once done the stylesheet works too, without any other coding.
    I hope this helps.
    Kind regards,
    Lester.

Maybe you are looking for

  • My BBZ10 is not working properly since my last update (OS 10.3.1.224​3

    OK so to start on a positive - I have been the biggest advocate of Blackberry over the last 3 years and have found it a really easy phone to just pick up and use without having to spend much time with user manuals. I started on a Torch and am now usi

  • Managing duplicates

    I had some difficulty getting all my images into Lightroom from iPhoto, using third-party tools like PictureSync to try to maintain the meta data. I ended up with some missing photos, and not knowing exactly which ones, I imported everything into a s

  • Gpu acceleration on win8.1pro with gtx770 not working

    Hello All, I have a pc installed with windows 8.1 pro, a GeForce gtx 770 with 4096 MB GDDR5, with the latest driver installed : 344.48 I am now on premiere 8.1.0(81) Build. but i have been using premiere in this machine since the first CC and the pro

  • Why has my text box option in PhotoShop 5.0 stopped working?

    I've been using PhotoShop 5.0 for several years with no problem.  Recently when I try to insert text into the text box I get a "bonk" sound and can't type.  Any suggestions on how to repair this option? Thanks, Linda

  • Blogging in Muse

    After scouring the forums for an answer it seem that a lot of web designers and people using Muse are looking for a option to incorporate a blog into their website. I appreciate that there are a lot of blogging platform out there and these can be lin