Global CSS definitions

Hy there,
i wonder if there is a possibility to declare some "global" custom styledefinitions.
Not global own style classes, because i know how to do that.
Further i mean to do some -fx-customColor: #666666;
and use that definition on a button:
.button{
-fx-background-color: -fx-customColor;
i know that there is a -fx-color where all colors can be derived but i need to define
more than one custom color ;)
BR
Harry

An interesting thing is that you can override the defined colors in a scope specific way.
For example in caspian.css -fx-base under the .root style class is defined as a -fx-base: #d0d0d0; which gives it a light grey color (which is horrible IMO as the gray color themes look so 90s).
But, you can define a custom stylesheet and under it's .root set -fx-base: antiquewhite and then everything is this nice antique white color rather than a metallic silver color.
Now if you would like all of your buttons in peach and your scroll bars in gold, under the .button style set -fx-base to peachpuff and for .scroll-bar set -fx-base to palegoldenrod.
You can also define a styleclass bigredeasy button with a -fx-base of firebrick and -fx-font-size of 5em and any button you assign that styleclass will have nice big letters on a red background.
This trick also works for inline styles, so if you only want to create one bigredeasy button, instead of using a styleclass, you could button.setStyle("-fx-base: firebrick; -fx-font-size: 5em;") in the code.
The great thing about all this is that when you redefine -fx-base everything else in caspian is derived from it, including all of the gradients, the enable/disable coloring, the hover and pressed state coloring etc. These means you don't lose all of the visual candy (some of which is integral to the UX of the whole UI) from the default css style like you would if you instead did button.setStyle("-fx-background-color: firebrick");
So, for your example, I'd suggest:
.root {
  -fx-custom-color: #666666;
.button {
  -fx-base: -fx-custom-color;
}

Similar Messages

  • Following a tutorial and no global.css

    Hello all. I'm following the "page layout tutorial" in The
    Missing Manual for DW CS3. I'm at the section, 'Applying Some
    Style' (page 357). At this point, I am going to create new styles
    to format my new page (because it's a pre-made layout)- change
    fonts and stuff. Book says to click Attach External Style Sheet
    button, which I did. I am supposed to Browse and navigate to the
    CSS folder and double click file "global.css" then click OK to
    attach external style sheet.
    I don't have that CSS folder or a "global.css" file. The
    reason why i don't is because i didn't download and install the
    dummy files from the book's website; I proceeded to use my own
    banner, my own photos, etc.
    So, now what do I about locating/creating CSS folder and/or
    global.css file?
    Jodi

    The only place I can find a global.css document is within the
    Spry Updater package. But I don't think that is the one you are
    looking for.
    Wait a minute I just read more of your post. Go to the
    website and download the folder. Then copy the global.css document
    to where you need it and modify it as you need to.

  • Create Global Class Definition using Local Class Source Code

    I would like to be able to automate the creation of global class definitions using source code that is defined in a text file (one example: convert a local class def to a global class def).
    Does SAP deliver this functionality?  (I'm already aware of the various classes that can be used to create global classes and how those classes can be implemented in a program to generate new classes.  I'm hoping to avoid having to create a custom solution.)
    Thanks in advance!

    We have a winner!
    Thanks Rich!
    It's not a 100% solution - I was hoping to be able to generate global classes/interfaces using source code alone, without requiring user intervention.
    It <i>is</i> however, a 90-95% solution because debugging SE24 reveals that by using a combination of the FM's SCAN_ABAP_OBJECTS_CLASSES & SEO_CLIF_MULTI_IMPORT, I should be able to <u>quickly</u> put together that custom application that I was trying to avoid.
    I knew about the existance of SEO_CLIF_MULTI_IMPORT but I did not know about SCAN_ABAP_OBJECTS_CLASSES.  I'm very happy to learn that I'm not going to have to write a parser!

  • Adding a Global CSS style change

    Hi
    How would I implement the following CSS change to application templates
    #uOneCol {
    clear: both;
    margin: 0 50px;
    min-height: 500px;
    I do not want to add this in line within each APEX header page, I would like to enter it once in the global CSS file. But where is this located and what is the best way of accessing it

    Hi Rambo,
    you could add it to the page templates.
    To do so, go to
    "Home -> Application Builder -> Application XYZ -> Shared Components -> Templates"
    and select the PAGE template you would like to add this to.
    Place your changes in the header section and see if this works.
    Thanks
    Sandro

  • SELECT-OPTIONS in global class definitions

    I'd like to 'type' selection ranges inside a global class created with SE24.
    For example:
    The data element PRODH_D (Product hierarchy) has no range structure or range table in SE11.
    Before I go to the trouble of defining the structure and table type in SE11, I'd like to define them in my global class and then use the 'type' for selection parameters.
    For example:
    types: begin of ty_kunnr_select,
             sign(1)    type c,
             option(2)  type c,
             low        type kunnr,
             high       type kunnr,
           end of ty_kunnr_select.
    data: st_kunnr_range type ty_kunnr_select.
    data: ta_kunnr_range type standard table of ty_kunnr_select.
    I've tried entering the code in multiple areas of the global class. I can get the code to compile just fine. But, when I try to use the type with a parameter definition of a method it won't compile.
    Does anyone know how to do this?

    Hi,
    Create a TYPE-POOL and store in it your global fields. At your "Properties" screen(SE24) add your type pool. Then you can use your types.
    If you find the answers helpful, please assign reward points.
    Svetlin
    Message was edited by: Svetlin Rusev

  • Const not allowed in global variable definitions?

    Can someone tell me why the compiler complains when I do this:
    const int MY_CONST = 100;
    char *myStr[MY_CONST];
    This is being done outside of a function, as I want myStr to be a global variable.
    I get an error saying the initializer must be constant. I've tried this with other compilers, and they don't complain. Any ideas?
    Thanks.

    In C a variable of type int remains a variable, even if the const keyword prevents it is modifiend during program life. Given this, C does not permit to use it in a array definition since it is not a "constant". As far as I know C++ does permit this declaration.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Global CSS

    hello,
    i have something like "3-level" depth project of .swf movies
    loading into the main .swf.
    i have one CSS style in root of the main .swf
    var flashCSS:TextField.StyleSheet = new
    TextField.StyleSheet();
    _global.flashCSS.setStyle("p",
    {color:'#000000',
    fontFamily:'Verdana, Geneva, Arial, Helvetica, sans-serif',
    fontWeight:'normal',
    fontSize:'10'}
    _global.flashCSS.setStyle(".hdl",
    {color:'#959595',
    fontFamily:'Verdana, Geneva, Arial, Helvetica, sans-serif',
    fontWeight:'normal',
    fontSize:'10'}
    i would like to apply this CSS to
    ANY textfield in
    ALL levels of the project ...
    but if i apply the CSS in some loaded (external) .swf like
    this:
    textWindow.styleSheet = flashCSS;
    textWindow.htmlText = "<span class='hdl'>Example
    Example Example</span>";
    it does not work at all and CSS is not applied
    does anyone know how to use one CSS globally in all levels of
    the project (including loaded external .swf)?

    An interesting thing is that you can override the defined colors in a scope specific way.
    For example in caspian.css -fx-base under the .root style class is defined as a -fx-base: #d0d0d0; which gives it a light grey color (which is horrible IMO as the gray color themes look so 90s).
    But, you can define a custom stylesheet and under it's .root set -fx-base: antiquewhite and then everything is this nice antique white color rather than a metallic silver color.
    Now if you would like all of your buttons in peach and your scroll bars in gold, under the .button style set -fx-base to peachpuff and for .scroll-bar set -fx-base to palegoldenrod.
    You can also define a styleclass bigredeasy button with a -fx-base of firebrick and -fx-font-size of 5em and any button you assign that styleclass will have nice big letters on a red background.
    This trick also works for inline styles, so if you only want to create one bigredeasy button, instead of using a styleclass, you could button.setStyle("-fx-base: firebrick; -fx-font-size: 5em;") in the code.
    The great thing about all this is that when you redefine -fx-base everything else in caspian is derived from it, including all of the gradients, the enable/disable coloring, the hover and pressed state coloring etc. These means you don't lose all of the visual candy (some of which is integral to the UX of the whole UI) from the default css style like you would if you instead did button.setStyle("-fx-background-color: firebrick");
    So, for your example, I'd suggest:
    .root {
      -fx-custom-color: #666666;
    .button {
      -fx-base: -fx-custom-color;
    }

  • Duplicate global type definition/declaration

    I'm getting an error while compiling that says that one of my xml types is declared in more than 1 location and that the type is different in both locations. It is declared in the schema file on my hard drive, and then somewhere on my server. The potential fix says
    [Potential fix]: If your site has a proxy server, then you may need to configure your BPEL Server, designer and browser with your proxy server configuration settings (see tech note on http://otn.oracle.com/bpel for instructions).
    but I do not have a proxy server.
    How do update the instance on my server so that it isn't different from the file on my hard drive?
    Is that even the way to go about fixing the compiler error?

    It looks like your local orsmds store and your server's oramds store are out of sync.
    To be sure, check the differences in WorkflowTask.xsd file at the following locations
    Local machine -->  "jdeveloper\integration\seed\soa\shared\workflow"
    URL --> http://qaipm.atfoods.com:8001/soa-infra/services/default/ReportData//soa/shared/workflow/WorkflowTask.xsd
    I am sure there must be a difference at the location mentioned in your original post.
    Regards,
    Vikrant Korde.

  • ADF panelGroup component's background image in CSS does not render

    Hi,
    I have an issue with the panelGroup component, where a background-image specified in the styleClass DOES NOT RENDER when deployed on the OAS. It works fine when I run the page on my local OC4J.
    I've verified that the image I use is deployed correctly on the server.
    We are using :
    JDeveloper Studio Edition: 10.1.3.3.0.4157 (Build JDEVADF_10.1.3.3.0_NT_070619.1129.4157)
    Oracle Application Server: 10.1.3.5.0 running on RHEL 5.
    I'm customizing pages of an ADF application to change the branding and skinning. The page header region used in the application uses a 'panelPageHeader' and the image I need to introduce is part of branding and must be rendered above the application menus (2 levels: 1->MenuTabs, 2-MenuBar).
    If it would help to see how my page renders locally, here's the link: http://tech-nik-alley.blogspot.com/2010/09/adf-panelgroups-background-image.html
    (The brightly colored bar above the menus is newly introduced, ABC_Lightbar.jpg).
    Using an objectImage with my light_bar image as source, directly in the facet menu2, causes the alignment of all pages to get disrupted. Hence the work-around of using the image as a background.
    A copy of my pageHeader region is below, with comments. The panelGroup component newly introduced is in the facet "menu2". I've added the CSS definitions in the page as comments as appropriate.
    Any pointers on how to debug further, work-arounds etc. are appreciated.
    TIA and regards
    Deepak.
    =====MY PAGE HEADER REGION====
    <af:regionDef var="attr">
    <af:panelPageHeader styleClass="ss0" > <!—ss0 is "padding:0px;margin-left:14%;margin-right:14%;margin-top:0px;margin-bottom:0px;display:block;background-color:transparent;" -->
    <f:facet name="branding">     
    <af:panelGroup styleClass="ss_brand"> <!--ss_brand is "display:block;margin-bottom:12px" -->
    <af:objectImage shortDesc="#{imageBean['SS_COMPANY_LOGO'].description}"
    source="#{imageBean['SS_COMPANY_LOGO'].physicalName}"/>
    </af:panelGroup>
    </f:facet>
    <f:facet name="menuGlobal" >
    <af:panelGroup layout="horizontal" styleClass="ss00" rendered="#{attr.globalMenuShown}">     <!—ss00 is "margin-right:10px;" -->
    <f:facet name="separator">
    <af:objectImage source="#{imageBean['SS_GLOBAL_SEPARATOR'].physicalName}" shortDesc=""/>
    </f:facet>
    <af:menuButtons>
    <af:goMenuItem text="#{sessionBean.authenticated?pageHeaderBean.loggedInUserInfo:messageBean.SS_GEN_GUEST}"/>
    </af:menuButtons>
    <af:menuButtons startDepth="0" var="menuGlobal" value="#{menuModel.model}">
    <f:facet name="nodeStamp">
    <af:goMenuItem text="#{menuGlobal.label}"
    destination="#{menuGlobal.fileName}"
    rendered="#{menuGlobal.type=='global' &amp;&amp; menuGlobal.rendered}"
    />
    </f:facet>
    </af:menuButtons>
    </af:panelGroup>
    </f:facet>
    <f:facet name="menu1" >
    </f:facet>
    <f:facet name="menu2" >     <!-- facet menu2 originally has a 'menuTabs' (level 1 menu) on top of a 'menuBar' (level 2 menu) -->
                        <!-- Change required: introduce a light_bar image above level 1 menu (menuTabs). The image spans the page -->
    <af:panelGroup rendered="#{skinFamily.menuLayout=='horizontal' and attr.otherMenuShown}">
         <!--Change: new panelGroup introduced, with a background image in the styleClass -->
    <af:panelGroup layout="vertical" styleClass="pageHeaderLightBar"> <!-- pageHeaderLightBar is "background-image:url(/ss/skin/ABC/images/ABC_lightbar.jpg); " -->
    <!--<af:objectImage source="/ss/skin/ABC/images/ABC_lightbar.jpg"/>-->     <!--Specifying the image directly, disrupts the all other OOTB pages-->
    <af:objectSpacer width="22px"/>
    </af:panelGroup>
    <af:panelGroup styleClass="pageHeaderMenuLevelOne"> <!-- Another place where a back-ground image is used for a panelGroup using the styleclass -->
    <af:menuTabs startDepth="0" var="menuTab" value="#{menuModel.model}">     <!-- The level 2 menu using menuTabs -->
    <f:facet name="nodeStamp">
    <af:goMenuItem text="#{menuTab.label}"
    destination="#{menuTab.fileName}"
    rendered="#{menuTab.rendered and menuTab.type!='global'}"/>
    </f:facet>
    </af:menuTabs>
    <af:menuBar startDepth="1" var="menuBar" value="#{menuModel.model}">     <!--The level 2 menu using a menuBar -->
    <f:facet name="nodeStamp">
    <af:goMenuItem text="#{menuBar.label}"
    destination="#{menuBar.fileName}"
    rendered="#{menuBar.rendered}" />
    </f:facet>
    </af:menuBar>
    </af:panelGroup>
    </af:panelGroup>
    </f:facet>
    </af:panelPageHeader>
    </af:regionDef>
    ===================================

    'background-image:url("../image/Sunset.jpg")' is a relative URL... relative to the final generated markup. It should be wrong like 99% of the times. You should rather use a styleClass and deal with the background-image with skinning as the skinning engines knows how to deal with such urls. Note that you'll most likely have to define a new resource loader and servlet mapping for the ResourceServlet. I know someone made a blog entry about that, was it Frank or Shay? Hmmm cannot remember... Maybe John as well. Anyway a Google search should yield good results for adf resource loader I think.
    Regards,
    ~ Simon

  • Cannot retrieve definition for form bean null on action /submitCustomerForm

    Can someone plz check my code...
    while I try to run the code I got Stuck getting the above error report.
    here is my code..
    this is wat i wrote in JSP page
    <html:form action="/submitCustomerForm">
    and in my struts-config I ve..
    <form-beans>
         <form-bean name="CustomerForm" type="app1.CustomerForm" />
    </form-beans>
    <!-- ========== Global Forward Definitions ========= -->
    <global-forwards><forward name="mainpage" path="index.jsp"></forward>
    </global-forwards>
    <!-- ========== Action Mapping Definitions ======== -->
    <action-mappings>
    <action
         path="/submitCustomerForm"
         type="app1.CustomerAction"
         name="CustomerForm"
         scope="request"
         validate="true"
         input="CustomerDetails.jsp" >
         <forward name="success" path="/Success.jsp" />
         <forward name="failure" path="/Failure.jsp" />
         </action>
    </action-mappings>

    <html:form action="submitCustomerForm.do">the above is the way how you call your ActionServlet
    if your ActionServlet mapping is
    <servlet-mapping>
    <servlet-name>ActionServlet</servlet>
    <url-pattern>*.do<url-pattern>
    </servlet-mapping>

  • Image URL in the CSS issue

    ALL,
    I have a problem in URL of images in CSS. in the CSS, URL for the images. so we have checked-in the content server. we have given the url path in the css. URL would would look */idc/groups/public/documents/cp_images/imagename.gif*. offcource I have checked-in the CSS in the content server. images from content server appering in the site studio designer preview as well as the browser.
    But when I have published the this site in to specific location, i am facing problem. I am not getting in any ERRORS/warnings while Site crawling & Site publishing. All images paths in the CSS changing including images in the index.htm pages. But problem is images used in css are not appering on pages. other than that css effect like Color/effects are comming on htm pages. Images are also avaible in the published folder.
    My question is is there specific way to specify the images paths in the CSS in the oracle site studio designer?
    Any help would be much apriciated...
    Regards & thanks,
    Nirmala Vijaya Sekhar Varre

    I cant say for sure is there any standard way to avoid this behavior but here are some      technique's which can be suitable to solve your problem.
    - you can place all your site images into constant relative path to yours CSS. So if your css file is included in page like
    <link href="<!--$HttpRelativeWebRoot-->groups/public/documents/web_asset/file.css" type="text/css" rel="stylesheet" />then you can place images into groups/public/documents/web_images/ and refer to them in CSS like that
    div {
    background:url(../web_images/file.gif);
    }- next try you can move all CSS definitions requiring urls into page template leaving main pack in CSS set like that
    <link href="<!--$HttpRelativeWebRoot-->groups/public/documents/web_asset/file.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
    div {
    background:url(<!--$HttpRelativeWebRoot-->groups/public/documents/web_images/file.gif);
    </style>or make a fragment to hold this dynamic css definition and include it in header in standard way
    - next try (for a curvy ones, havent tried myself, but seems working) you can create a idoc script with css commands, but include some commands to make it work like css
    i mean this very commands setContentType (page-720), setExpires (page-722), setHttpHeader (page-724) (pages are from idoc reference guide)
    i'd recommend using 1st method to avoid complexivity.
    Edited by: ivanko on Nov 30, 2009 3:20 PM

  • Exception in global forwards in strut-config.xml

    Hi friends,
    i am doing a global forward and i am getting the following exception. without global forward in strut-config.xml it works fine.exception
    javax.servlet.ServletException: Cannot find global ActionForward for name welcome
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
         org.apache.jsp.test_jsp._jspService(org.apache.jsp.test_jsp:76)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    javax.servlet.jsp.JspException: Cannot find global ActionForward for name welcome
         org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:142)
         org.apache.jsp.test_jsp._jspx_meth_logic_forward_0(org.apache.jsp.test_jsp:93)
         org.apache.jsp.test_jsp._jspService(org.apache.jsp.test_jsp:64)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)my struts-config.xml is
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
              "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
              "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
    <struts-config>
    <!-- ========== Global Forward Definitions ============================== -->
      <global-forwards>   
      <forward name="welcome" path="/LPCIndex/doit.do" redirect="true"/>
      </global-forwards>
      <!-- ========== Action Mapping Definitions ============================== -->
      <action-mappings>   
    <action
         path="/doit"
         type="com.hsbc.lpcintex.LPCIntexAction">
         <forward name="success" path="/index.jsp"/>
    </action>
      </action-mappings>
    </struts-config>my web.xml
    is
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
      Copyright 2004 The Apache Software Foundation
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
          http://www.apache.org/licenses/LICENSE-2.0
      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    -->
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">
      <display-name>Welcome to Tomcat</display-name>
      <description>
         Welcome to Tomcat
      </description>
    <!-- JSPC servlet mappings start -->
    <!-- The Welcome File List -->
         <welcome-file-list>
              <welcome-file>test.jsp</welcome-file>
         </welcome-file-list>
         <session-config>
              <session-timeout>0</session-timeout>
         </session-config>
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!-- JSPC servlet mappings end -->
    </web-app>and my jsp code is
    <%@ page language="java" import="com.hsbc.lpcintex.*" import="java.io.*"%>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
    <html>
    <body>
    <logic:forward name="welcome"/>
    </body>
    </html>any help please
    thanks
    R

    its done by adding
    <load-on-startup>2</load-on-startup>to web.xml

  • Problem with PHP, CSS & Code Navigator in CS4

    Hi,
    I've got al little problem with code navigator. To show the problem, I created this 3 files:
    test1.html
    The CSS-Definition is defined static, with simple HTML.
    <html>
    <head>
         <style type="text/css">
              @import "test.css";
         </style>
    </head>
    <body>
          <p>Hello World</p>
    </body>
    </html>
    test2.php
    The CSS-Definition is defined dynamic, with PHP-Code.
    <html>
    <head>
         <style type="text/css">
              <? echo "@import \"test.css\";\n"; ?>
         </style>
    </head>
    <body>
          <p>Hello World</p>
    </body>
    </html>   
    test.css
    The CSS-File which is imported in test1.html and test2.php
    p {
         font-size:20px;
    The Problem in Dreamweaver CS4
    When opening the test.html - File in Dreamweaver CS4, I can easily see the CSS-Definition of the <p>-Tag in Code Navigator. To edit these definition I can simple open the test.css by clicking on the definition in Code navigator. For a complex webpage this is a greate feature. Sadly, this does not work, when I open the test2.php. Although when going to Live View and selecting the <p>-Tag I can see the CSS-Definition and the file in which it is defined in Code Navigator. But by clicking on the definition the test.css DOES NOT OPEN!
    Has anybody a solution? Because many of our projects have dynamic CSS-Definitions, it would be a shame, if this would not work.
    Tanks for help! :-)

    I've done some testing, which might point you in the direction of an interim solution.
    This is the code for related_files.php:
    <!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>Related files test</title>
    <?php include('include.css'); ?>
    </head>
    <body>
    <p>This is a paragraph.</p>
    </body>
    </html>
    This is the code for include.css:
    <style type="text/css">
    p {
         font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
         color:#F00;
    </style>
    Note that the include file contains the opening and closing style tags.
    By including your styles like this in a PHP include file, Dreamweaver applies the CSS in Design view (you don't need to turn on Live View). Holding down the Alt key while clicking in Design view brings up the Code Navigator with all the details of the CSS. The one missing link in the chain is that clicking the style selector in the Code Navigator does not open the CSS file. However...
    The file that contains the CSS is listed in the Related Files toolbar, so you can edit it in Split view, and see the results in Design view in exactly the same way as with an HTML page and ordinary style sheet.
    As I say, not the full solution that you wanted, but it might be something worth experimenting with.

  • CSS layout problems in IE

    DW8
    In IE, this web page looks "squished." In FF and NS, it looks
    wonderful. This is the work of a student of mine and I would like
    to give a semi-intelligent answer as to why it's behaving as it
    does in IE. I am teaching a beginner's level of DW and am working
    through two books now on CSS, but am not at a comfortable level yet
    in browser differences and figuring out hacks for one and not the
    other. This guy has a graphics background and always turns in
    excellent work.
    I realize from searching and reading other posts that IE
    doesn't support CSS as much as the other browsers. Is there
    anything any of you can spot for this result? (The exercise was to
    use a DW template to create three pages.)
    His page:
    http://www.geeks2b.com/WEB140011/Tillman/thanksgiving/html/history.html
    His CSS file:
    http://www.geeks2b.com/WEB140011/Tillman/thanksgiving/css/global.css
    His template:
    http://www.geeks2b.com/WEB140011/Tillman/thanksgiving/templates/main.dwt
    I appreciate any guidance on this.
    kpchop

    DW8
    In IE, this web page looks "squished." In FF and NS, it looks
    wonderful. This is the work of a student of mine and I would like
    to give a semi-intelligent answer as to why it's behaving as it
    does in IE. I am teaching a beginner's level of DW and am working
    through two books now on CSS, but am not at a comfortable level yet
    in browser differences and figuring out hacks for one and not the
    other. This guy has a graphics background and always turns in
    excellent work.
    I realize from searching and reading other posts that IE
    doesn't support CSS as much as the other browsers. Is there
    anything any of you can spot for this result? (The exercise was to
    use a DW template to create three pages.)
    His page:
    http://www.geeks2b.com/WEB140011/Tillman/thanksgiving/html/history.html
    His CSS file:
    http://www.geeks2b.com/WEB140011/Tillman/thanksgiving/css/global.css
    His template:
    http://www.geeks2b.com/WEB140011/Tillman/thanksgiving/templates/main.dwt
    I appreciate any guidance on this.
    kpchop

  • How to Add CSS

    Hi, All.
    Please , tell me how to add a new CSS definition.
    do i have to add a new file(ccs or xss)?
    Where should i add a definition to use it in property pane in Jdev ?
    regards

    Use key words like "CSS" to search. You can also refer to this recent thread :
    Can we colour the rows in the column of a table
    --Mukul                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • How to access variables outside user exit

    Hi, I'm working with a user exit and my problem is that in a particular moment I have to access variables located outside the scope of the user exit (they are in a standard program) How can I reach these variables? thanks in advance

  • My ipod is disabled and I do not know how active

    Hello, I forgot my password on my ipod so I can not enter on it. I can not go on Itunes for my ipod is not recorded. He always appears: << Itunesn'a unable to connect to the ipod << >> Sarah because it is locked by a password. You must enter the pass

  • HT201302 how do i delete photos (not in camera roll folder) in my ipad

    i copied some of my photos from pc to ipad,now when i try to delete, there's no delete icon appear. 

  • Oracle 11g FBDA

    Hi All, We are currently using Oracle 11.1.0.7 FBDA is enabled in the Database and facing some peculiar behaviour in FBDA Please find the error we are facing in FBDA CREATE TABLE TEST (A NUMBER(1) B VARCHAR2(10) CREATE_DT DATE LAST_UPDATE_DT DATE); E

  • Function module to get admin within personnel area

    Hi, are there any function module to get admin for certain personnel area? i want to used it in workflow, to make rule agents for employee within personnel number "A", this workflow will go to admin for personnel area "A" thanks