How to apply a css style to vbox.

I'd like to apply below style to vbox. But It's not changed.
When I use ID property, it's changed, But I want to use class property.
.v-box{
     -fx-spacing:10;
     -fx-alignment:center;
Edited by: shakddoo on 2012. 4. 20 오후 9:08
Edited by: shakddoo on 2012. 4. 20 오후 9:08

.v-box is not a standard css selector.
You could used VBox (capitalized exactly like that and without a leading .) and it will work because you can select based upon type name, for example:
VBox {
  -fx-spacing:10px;
  -fx-alignment:center;
}Alternately you can create your own .v-box class and assign it to your VBox and it will work, for example:
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.*;
import javafx.stage.Stage;
public class CssSample extends Application {
  @Override public void start(Stage stage) {
    VBox box = new VBox();
    box.getChildren().addAll(
      new Label("On either side the river lie,"),
      new Label("Long fields of barley and of rye,"),
      new Label("And through the fields,"),
      new Label("A road runs by,"),
      new Label("To many-towered Camelot")
    box.getStyleClass().add("v-box");
    StackPane layout = new StackPane();
    layout.getChildren().addAll(box);
    Scene scene = new Scene(layout);
    scene.getStylesheets().addAll(getClass().getResource("styledvbox.css").toExternalForm());
    stage.setScene(scene);
    stage.show();
  public static void main(String[] args) { launch(args); }
// styledvbox.css
.v-box {
  -fx-spacing: 50px;
  -fx-alignment: center;
.label {
  -fx-font-family: "Comic Sans MS";
  -fx-text-fill: salmon;
  -fx-effect: dropshadow(one-pass-box, mistyrose, 10, 0, 1, 1);
.root {
  -fx-padding: 200px;
  -fx-font-size: 48px;
  -fx-background-image: url('http://upload.wikimedia.org/wikipedia/commons/8/83/JWW_TheLadyOfShallot_1888.jpg');
  -fx-background-size: contain;
  -fx-background-repeat: no-repeat;
  -fx-background-position: center;
  -fx-background-color: cornsilk; 
}

Similar Messages

  • How to apply different CSS styles to different table cells?

    I have an h:dataTable table and I would like to apply different CSS styles to different table cells depending on their content. If I were doing JSP I would probably have a <c:if> test on the cells, and give them a style name depending on contents, and then define the styles in a separate style sheet. Is there a way in JSF to do the equivalent? Thanks.

    mitchgart wrote:
    BalusC wrote:
    How to achieve a cell-specific style is already answered in my 1st reply of this topic.That tells how to apply a style to the text (or other content) inside a cell but not how to apply a style to the <td> as a whole. It would work for something like text font or text color but not cell border.
    I'm thinking I can mark the content somehow and then have javascript traverse the DOM, find marked content, and traverse outward to the enclosing <td>. Is there a better way?BalusC already spoke about rowClasses and columnClass attributes, I assume those are insufficient.
    The Tomahawk dataTable component has the rowStyleClass and rowStyle attributes for assigning CSS to the HTML tr tag. One is allowed to reference the row data variable when assigning values to these. However, see https://issues.apache.org/jira/browse/TOMAHAWK-523 for workarounds to bugs in some implementations.
    The Tomahawk column component has the styleClass and style attributes for assigning CSS to the HTML td tag. These also may reference the row data variable.

  • How to apply a css style to a radio button.

    I cannot seem to persuade jsf to pass css styles through to a radio button.
    I have markup like this:
    <h:selectOneRadio id="direction" styleClass="largish-form" >
      <f:selectItem id="positive" itemLabel="positive" itemValue="positive" />
      <f:selectItem id="negative" itemLabel="negative" itemValue="negative"  />
    </h:selectOneRadio>Which gets transformed into something like:
    <!-- edited for brevity -->
    <td>
      <label>
        <input type="radio" name="comp-amount-form:direction" value="positive" class="largish-form" />
        positive
      </label>
    </td>So the style does not get applied to the text of the label. I was expecting something like
    <span class="largish-form"> positive</span>.So how do I get styled labels on my radio buttons?
    Thanks in advance.

    For a standard Portal page you should use the Portal styles and associate them to a page. These effectively generate a CSS style sheet anyway if you view the HTML source of a rendered page in your browser.
    Using the correct PDK APIs you effectively reference the CSS tags in your Java or PL/SQL code.
    If your portlet need to open a page in a new window you can no longer reference the Portal page style as the CSS style sheet does not get attached.
    In this situation, code your HTML as normal and reference your CSS style sheets as normal.
    If you create you CSS sheet you can store it in a page as a file and access using the direct access URL like I showed you in a previous response regarding the storing of images.
    Cheers,
    John

  • Apply certain css styles only when JS is enabled?

    I'm wondering if there's a relatively simple way to apply certain CSS styles only when JavaScript is enabled in the browser (and thus, not applied when JS is disabled)... I've created a jQuery-based image gallery, and I'd like to modify how it degrades by selectively disabling certain CSS styles...
    thanks for any direction here.

    Hi
    As your jQuery image gallery would not work correctly if javascript was disabled,. The better approach would be to enable the required css styles using jQuery, (the title says this, but your post says the opposite).
    To do this see the jQuery documentation regarding css, at -http://api.jquery.com/css/.
    PZ

  • How to apply a Character Style that's already been made in a template document?

    First of all I'd like to thank everyone that helps. I'm a complete beginner at scripting and appreciate all your help.
    I'm basically using GREP expressions to find patterns in a document and apply a Character Style which has already been made. This Character style was not made using script, but just in InDesign when making and setting up the template.
    var myDoc = app.activeDocument;
    //Clear the find/change grep preferences.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    //Set the find options.
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    //GREP Expression for finding all HEADERS
    app.findGrepPreferences.findWhat = ".+\n";
    //Applying formatting changes to put into All Caps, Bold and changing the font size to 12 pt.
    app.changeGrepPreferences.capitalization = Capitalization.allCaps;
    app.changeGrepPreferences.fontStyle = "Bold";
    app.changeGrepPreferences.pointSize = "12";
    myDoc.changeGrep();
    //Clear the find/change preferences after the search.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    This is how I currently have it. I will manually define the changes to the text. The problem is, each template uses a different set of fonts and not all of them use Bold e.g. Sabon can use CE Bold.
    I would like to learn how to apply a Character Style and have tried looking around but nothing seems to work.
    Any help would be much appreciated.
    Thanks.

    select the text where u went  and run below  script after change group as per ur template.
    var myDoc = app.activeDocument;
    var mySel = app.selection[0];
    //Clear the find/change grep preferences.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    //Set the find options.
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    //GREP Expression for finding all HEADERS
    app.findGrepPreferences.findWhat = "role";
    //Applying formatting changes to put into All Caps, Bold and changing the font size to 12 pt.
    //app.changeGrepPreferences.capitalization = Capitalization.allCaps;
    //~ app.changeGrepPreferences.fontStyle = "Bold";
    //~ app.changeGrepPreferences.pointSize = "12";
    app.changeGrepPreferences.appliedCharacterStyle=myDoc.characterStyleGroups.item("Style Group 1").characterStyleGroups.item("Style Group 2").characterStyles.item("Header")// Header is name of character name
    mySel.changeGrep();
    //Clear the find/change preferences after the search.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    If it's help then click yes
    Mi_D

  • How to attach a CSS style sheet ?

    Hi,
    How to attach a CSS Style sheet to a portal page ?
    Thanks for your help,
    Jean-Christophe

    For a standard Portal page you should use the Portal styles and associate them to a page. These effectively generate a CSS style sheet anyway if you view the HTML source of a rendered page in your browser.
    Using the correct PDK APIs you effectively reference the CSS tags in your Java or PL/SQL code.
    If your portlet need to open a page in a new window you can no longer reference the Portal page style as the CSS style sheet does not get attached.
    In this situation, code your HTML as normal and reference your CSS style sheets as normal.
    If you create you CSS sheet you can store it in a page as a file and access using the direct access URL like I showed you in a previous response regarding the storing of images.
    Cheers,
    John

  • How Do I Get CSS Styles In Dreamweaver CC?

    How Do I Get CSS Styles In Dreamweaver CC?

    You should have something like this in your window:
    Just Click on the Plus sign ( + ) and you get the three options: create a new file, attach an existing file or create a style on page (define on page)
    Apart from this I won't know because I am basing this from my copy of CS6.  I don't have CC version.

  • How to apply Muse (webfont) styles to BC Blogs/Contact Forms?

    Hi all.
    So my site (designed in Muse) is pretty much ready, except for my blog and a couple of forms. I've just gone through making it my partner site, replacing the so-called "bre-built" default site. That process was very, very simple, but BC Support told me it would be much more complicated than it needed to be - it wasn't! I was able to simply publish via Muse to my partner site domain and everything worked fine...
    Anyway... Headers in my site use the "Bebas Neue" webfont selected from within Muse (I assume this is a Typekit font?), at 30pt and a custom colour #B10505. Body text is simply "Trebuchet" (a standard font) in black at 12pt. Now, I'm aware that not everything designed in Muse shows up "as shown" when doing any editing in the back-end of BC. I've just begun following through the tutorial for setting up BC modules on a Muse site and have gotten to the "Inspect Element" stage...
    This is where I've hit a snag. This video: http://www.businesscatalyst.com/bc-blog/adding-business-catalyst-features-to-your-muse-sit es (with the blog part starting near the end of 19 minutes) clearly uses a standard font and not a webfont, so when I'm inspecting with Firebug, what's shown in the video doesn't show up the same in reality for me. This is because a standard font is applied in Muse designed sites where a webfont is in use, and the webfont simply "masks" the standard font (if I'm not mistaken?)...
    I've read this topic: http://forums.adobe.com/message/5480712#5480712 which pretty much asks the same question I'm asking, but this guy clearly has more knowledge (or maybe more common sense) than me, so I'm asking it in a new topic here...
    Can someone please walk me through (step-by-step) how to apply Muse selected webfont CSS styles to the relevant files in BC so that my blog shows up with a consistent look and feel to the rest of my site? I'll literally need every step walking through with minimal jargon if possible - this area of web design is not my forte!
    I suppose I'd also like the same process walking through for contact forms if possible? Alongside the header font, I've got a custom styled, beveled button made on a standard Muse contact form that I'd like replicating on a BC-made form.
    I'm sure once I understand this process, I'll be able to apply this to any BC module; I just need that initial helping hand that neither the BC team or the Muse team seem to want to reference in their tutorial videos!
    Any help would be greatly appreciated! Thanks in advance!

    Hi
    So, are these links in lieu of a full walkthrough, to help me better understand until if/when you get the time to explain?
    The cssbasics.com link isn't working, FYI.
    Looking through the typekit page, it seems fairly straight forward. Is this the same set of fonts Muse uses?
    If so, theoretically do I just need to copy the snippet of code from the typekit site for my desired font (Bebas Neue) and paste it into the modulestylesheet.css file? Where? At the bottom of everything else? Presumably commenting what it is? and define that I want to use that as a header font? Can you walk me through exactly what I need to put for that?
    Then I guess I just need to follow the rest of the video tutorial I linked above?
    Or is there a little more to it than that?
    Would I need to do the same to define trebuchet as the body font, or is there a different block of code I need for that, since that's not a webfont?
    Sorry for being so slow with it!

  • Applying a CSS style to an existing web page

    Hi all.
    I have recently updated the look of one of my web pages in my site. I'm looking to update the look of the other pages in my site as well to the same style/look. I have a CSS style saved as  "main layout" that I would like to use to apply the same look my existing pages. I'm working in Dreamweaver CS4. Does anyone know how to go about doing this? I realize that, because the existing page already has a layout applied to it, that the look may not be exactly the same, and that's fine, I can work with it from there if I can get it to that point. I feel like there should be an obvious answer to this, but i can't find one.
    Any help is greatly appreciated.
    Thanks.

    This is one of my old pages.
    <!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" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Home Page</title>
    <!-- TemplateEndEditable -->
    <style type="text/css">
    <!--
    body  {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: 000000;
    margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #FFFFFF;
    background-color: #000000 ;
    border: 10 px;
    background-image: url(<img src="Graphics/blackbg.jpg" width="1024" height="658" />);
    .twoColFixLtHdr #container {
    width: 80%;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
    background: #000000;
    margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
    border: 25px solid #000000; /* this overrides the text-align: center on the body element. */
    .twoColFixLtHdr #header {
    background: #000000;
    padding: 0 0px 0 0px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
    border: 1px solid #000000
    .twoColFixLtHdr #header h1 {
    margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
    padding: 0px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    .twoColFixLtHdr #sidebar1 {
    float: left; /* since this element is floated, a width must be given */
    width: 200px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
    height: 825px;
    background: #000000 ; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 10px 15px 20px;
    border: 15px solid #111111;;
    .twoColFixLtHdr #mainContent {
    margin: 0 0 0 25px; /* the left margin on this div element creates the column down the left side of the page - no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends. */
    padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
    .twoColFixLtHdr #footer {
    padding: 0 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
    background:#DDDDDD;
    color: #000;
    font-size: small;
    text-align: center;
    font-weight: bold;
    .twoColFixLtHdr #footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
    padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
    float: left;
    margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    body,td,th {
    font-family: Tahoma, Geneva, sans-serif;
    color: #FFF;
    text-align: center;
    a:link {
    color: #D1FFF0;
    a:visited {
    color: #903;
    text-align: center;
    .twoColFixLtHdr #container p {
    color: #CCC;
    font-size: x-large;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    text-align: center;
    font-weight: bold;
    .twoColFixLtHdr #container #sidebar1 table tr td h2 strong em {
    color: #fdf5e6;
    font-size: x-large;
    font-family: Tahoma, Geneva, sans-serif;
    text-align: left;
    .twoColFixLtHdr #container #sidebar1 table tr td h2 em strong {
    color: #fdf5e6;
    font-size: x-large;
    text-align: left;
    .twoColFixLtHdr #container #sidebar1 table {
    color: #D1FFF0;
    .Maroon {
    color: #4a0019;
    .maroon {
    color: #4a0019;
    .sidebarfont2 {
    color: #d1fff0;
    .twoColFixLtHdr #container #sidebar1 table tr td strong center strong {
    color: #d1fff0;
    a {
    font-family: Palatino Linotype, Book Antiqua, Palatino, serif;
    .twoColFixLtHdr #container center div p a {
    font-weight: normal;
    .twoColFixLtHdr #container center div p em {
    font-size: 18px;
    -->
    </style><!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    <body class="twoColFixLtHdr">
    <div id="container">
      <div id="header">
        <h1><img src="../../Graphics/logo.jpg" width="145" height="93" /><img src="../../Graphics/black-seafoam banner.jpg" width="910" height="127" /></h1>
      <!-- end #header -->
        </h1>
      </div>
      <p><div id="sidebar1">
        <table width="200" border="0" align="center" cellpadding="2" cellspacing="2" bg="bg">
          <tr>
            <td width="166" height="0" align="center" valign="middle" bgcolor="#4a0019"><h2>
              <center>
                <strong><em>Main Menu</em></strong>
              </center>
            </h2></td>
          </tr>
          <tr>
            <td><a href="../../index.html">Home</a></td>
          </tr>
          <tr>
            <td><strong><a href="../../Main Menu/MJSNC Staff/STAFF.HTML">
              <center spry:hover="SIDEBARFONT">
                Staff
              </center>
            </a></strong></td>
          </tr>
          <tr>
            <td><strong><a href="../../Main Menu/MJSNC Board of Directors/mjsnc board of directors.html">
              <center>
                Board of Directors
              </center>
            </a></strong></td>
          </tr>
          <tr>
            <td><strong><a href="../../Main Menu/MJSNC Newsletter/mjsnc newsletter.html">
              <center>
                Newsletter
              </center>
            </a></strong></td>
          </tr>
        </table>
        <p> </p>
        <table width="200" border="0" cellpadding="2" cellspacing="2">
          <tr>
            <td width="168" bgcolor="#4a0019"><h2><strong><em><center>Programs &amp; Services</center></em></strong></h2></td>
          </tr>
          <tr>
            <td><strong><a href="../Education and Therapy/education and therapy program.html"><center>Education &amp; Therapy</center></a></strong></td>
          </tr>
          <tr>
            <td><a href="../Support Services/Services.html"><strong> <center>Services</center></strong></a></td>
          </tr>
          <tr>
            <td><strong><a href="Adult Training Facilities.html"><center>Adult Training Facilities</center></a></strong></td>
          </tr>
          <tr>
            <td><a href="../Social Recreation/social recreation.html"><strong><center>Social Recreation</center></strong></a></td>
          </tr>
          <tr>
            <td><strong><a href="../Early Intervention/early intervention.html"><center>Early Intervention</center></a></strong></td>
          </tr>
          <tr>
            <td><strong><a href="../Family Living Program/family living program.html"><center>Family Living Program</center></a></strong></td>
          </tr>
        </table>
        <p> </p>
        <table width="200" border="0" cellpadding="2" cellspacing="2">
          <tr>
            <td width="168" bgcolor="#4a0019"><h2><em><strong><center>What's Happening?</center></strong></em></h2></td>
          </tr>
          <tr>
            <td><a href="../Challenger Division Baseball/Challenger Main Page.html"><strong><center>Challenger Division</center></strong></a></td>
          </tr>
          <tr>
            <td><strong><a href="../../Whats Happening/Summer Recreation/Summer Rec.html"><center>Summer Recreation</center></a></strong></td>
          </tr>
          <tr>
            <td><strong><a href="../../Whats Happening/LIP SYNC 2012/Lip Sync 2011.html"><center>Annual Lip Sync'</center></a></strong></td>
          </tr>
        </table>
      <p> </p></div>
      <table width="700" border="2" cellspacing="2" cellpadding="1">
        <tr>
          <td><p>Adult Training Facilities</p>
            <p> </p>
            <p>MARCELLA GANOE CENTER- </p>
    <p>439 SOUTH JUNIATA STREET LEWISTOWN,  PA 17044</p>
            <p><img src="../../Graphics/white-black flower.jpg" width="160" height="156" /></p>
            <p>COMPASS CORNER-</p>
            <p>31 SOUTH DORCAS STREET LEWISTOWN, PA 17044 </p>
    <p> </p>
            <p>The Mifflin-Juniata Special Needs Center has two Adult  Training Facilities in operation. The Marcella Ganoe Center, located at 439  South Juniata Street &amp; Compass Corner, located at 31 South Dorcas Street.  Both facilities operate year round, five days per week. </p>
          <p>This program is designed to maximize an individual's  opportunity to participate in their community. Staff serves as adult role  models and challenges each participant to reach their highest level of ability  in daily living skills, social and physical development and interactions with  others.</p></td>
        </tr>
      </table>
      <p align="center"> </p>
      <p align="center"> </p>
      <table width="700" border="2" cellspacing="2" cellpadding="1">
        <tr>
          <td><img src="../../Graphics/Ganoe 2.jpg" width="448" height="322" /></td>
          <td><img src="../../Graphics/compass 5.jpg" width="504" height="346" /></td>
        </tr>
        <tr>
          <td><img src="../../Graphics/compass 1.jpg" width="424" height="323" /></td>
          <td><img src="../../Graphics/Ganoe Thank you.jpg" width="492" height="346" /></td>
        </tr>
      </table>
      <p align="center"> </p>
      <p align="center"> </p>
      <blockquote> </blockquote>
      <center>
      <p> </p>
      <div style="text-align: center; border-top: 2px solid #999; margin-top: 1em;">
        <p><a href="../../index.html">Home</a> • <a href="Main Menu/Contact Us/Contact Us.html">Contact Us • Map &amp; Directions</a> • <a href="../../Main Menu/About Us/About Us.html">About Us</a></p>
      </div>
    </center>
    <hr />
    <font face=papyrus><center></center></font></div>
    </body>
    </html>

  • How to apply html css code in ADF pages

    I have the css code for all html components like buttons , text box, tabs etcc.. I want same look and feel in adf, I want to apply same css in ADF pages without/with minimal changes,
    I need very urgently,
    plz do needful ASAP.
    Thanks & Regards,
    Ram.

    Hi..
    Also this will helpful
    http://technology.amis.nl/blog/5722/using-adf-faces-11g-skinning-for-setting-the-styles-of-specific-component-instances-or-groups-of-instances

  • How to bring Sample CSS Style Sheets into a Template?

    I am creating a site from scratch using CS4 Template.  Can I incorporate more than one DW Sample CSS Style Sheet?  And how do I bring them into the Template site?
    Thanks, g

    Thank you.  I added the 3 sample css style sheets I want to use into my site.  Now I am trying to bring a different sample css into different sections of the layout.  Example:
    Sidebar 1: green/yellow
    Sidebar 2: red/yellow
    Middle: blue/yellow
    I seem to only be able to have one for the whole page.  Is this true?
    What I am doing is clicking on the div tag: <div.sidebar#sidebar1>, then "Edit CSS" and then scroll down in the Class window to "attach style sheet" and there at the bottom is a link to the sample css style sheets.  I click on the one I want and it changes the css for the whole page not just the sidebar 1. Is there a way I can get a different css sample style sheet for each sidebar in a 3 column layout, and a different sample css for the middle?
    thank you very much

  • How to apply multiple paragraph styles to one sentence?

    I'm using paragraph styles but is not helpful because I'm trying to apply 2 different styles within the same sentence which is not working.
    To make it work I select the sentence, apply the style, for instance "xfont-regular" then I select the word within the sentence that I want it to have a different style and I choose from the font list maybe italic so that it looks "something like this"
    Obviously by doing this, I'm loosing all the benefits of using p styles and of course it's so time consuming. Is there any way to break the sentence, keeping it in the same line, so that I can apply different styles to it? and still keep the benefits of just going to the styles and make the changes to the whole document that have that style applied.
    Thank you

    pchinique wrote:
    I'm using paragraph styles but is not helpful because I'm trying to apply 2 different styles within the same sentence which is not working.
    To make it work I select the sentence, apply the style, for instance "xfont-regular" then I select the word within the sentence that I want it to have a different style and I choose from the font list maybe italic so that it looks "something like this"
    Obviously by doing this, I'm loosing all the benefits of using p styles and of course it's so time consuming. Is there any way to break the sentence, keeping it in the same line, so that I can apply different styles to it? and still keep the benefits of just going to the styles and make the changes to the whole document that have that style applied.
    Thank you
    As Diane King mentioned, nested character styles may work for your need. Her example was an initial dropped capital (multi-line first one or several letters of a paragraph.) Dropped caps are a specific type of nested style - always the first one or more characters in a paragraph, two or more lines high.
    To use the general kind of nested style, you need to be able to identify the word or words within the paragraph that gets the nested character style. For example, the third word, or the first two words after the first semi-colon. If there is no pattern of word(s) that can be identified by position or sequence, it's possible that a GREP style can be used to find a common pattern of characters and apply a character style to it, for example a telephone number, date, or currency amount that's identified by a dollar sign, pound, or yuan.
    Search InDesign Help and Google for "InDesign nested style," "InDesign grep style," and similar terms (without quotes) for details. There have been many discussions of GREP on this forum.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • How to Apply A Font Style in Mail?

    This seems like a simple question, but I can't seem to find an answer by searning this forum.
    I'm new to Mail (recently converted over from Entourage). Quite often, the e-mails I compose are a hodge podge of cut and pastes from other messages and documents. The result is a mix of fonts and font formats.
    I would like a simple way to highlight all of the text in a document and apply a single style. Essentially, I want a way to apply a single style to all of the text in a mail message.
    I can't seem to find this in Mail. I've tried to "apply" the default style using the Format --> Style ... menu, but that doesn't work as expected (I don't think it changes anything). Looking up "Style" in the Help menu brings up nothing of help.
    Any suggestions?

    you could also select Verdana 12pt as your Fixed-width font and your Message font in preferences under fonts/colors, then check the box that says "use fixed-width font for plain text messages"
    then you could select your text command-A, then Shift-Command-A (to convert to plain text) which would convert everthing to verdana 12pt, then if you wanted rich text message again, just press Shift-Command-A again and it will stay with Verdana 12pt but be a rich text message.
    This would only be 2 and at the most 3 key combos with no mouse clicks to achieve what you mentioned in your previous post.

  • How to apply bold character style with grep

    finding bold characters in a particular paragraph style
    I want to apply a character style
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.string = String.Bold;
    if (app.findGrepPreferences.appliedParagraphStyle == myPar) {
    app.changeGrepPreferences.appliedCharacterStyle = myCar1;
    app.activeDocument.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;

    Try this,
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.fontStyle = "Bold";
    app.findGrepPreferences.appliedParagraphStyle = "myPar";
    app.changeGrepPreferences.appliedCharacterStyle = "myCar1";
    app.activeDocument.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    Vandy

  • How to insert this css style to table

    Hi,
    I'm a beginner in web design. I wanted to use a custom separator for my navigation bar. I searched and found this separator: http://front-back.com/pure-css-3-fancy-separator
    I'm interrested in the vertical-left one. I compiled the scss code to css and this is the result:
    .or-spacer-vertical {
      display: inline-block;
      margin-top: 100px;
      margin-left: 100px;
      width: 100px;
      position: relative;
    .or-spacer-vertical .mask {
      overflow: hidden;
      width: 20px;
      height: 200px;
    .or-spacer-vertical.left .mask:after {
      content: '';
      display: block;
      margin-left: -20px;
      width: 20px;
      height: 100%;
      border-radius: 12px / 125px;
      box-shadow: 0 0 8px black;
    I then made a test to see how it works with a div, like it's done in the website:
    <div class="or-spacer-vertical">
      <div class="mask"></div>
    </div>
    When I preview the html file, there is nothing.
    My first question is: how can I make this work?
    The second question is: can I use it as a right border for my navigation menu, which is a table of one row and 4 columns?
    Thanks in advance!

    #1 don't use use tables for layouts.  They severely limit your site's efficiency because they combine content with styles.  If you decide to make sweeping changes to the appearance of your site later, you'll need to tediously re-code everything with tables in it.  CSS allows you to style your entire site by editing one file instead of many.
    #2 It's not clear from your post whether you have applied everything necessary for this to work. In which browsers are you previewing this?  Can you post a link to your test page?
    Nancy O.

Maybe you are looking for

  • Cannot edit pages in SharePoint Designer 2007 "The Server could not complete your request...

    Hi All, We are using SharePoint Designer 2007.When we try to open any page in designer we get following error, "The Server could not complete your request. Contact your Internet Service Provider or Web server administrator to make sure that the serve

  • Audio quality in Windows low (Early 2009 24-inch iMac)

    Hi, I've got the new 24-inch iMac (3.06 gHz and ATI graphics), and the sound in Windows seems to be much lower quality (it sounds hollow) than the sound in Mac OS X (it's a little like the boot sound which sounds awful). I installed the Boot Camp dri

  • AW01N : Difference of value

    Hi, In Transaction AW01N (Planned values tab) we have two tables : - table 1 : Planned value book depreciation - table 2 : Transactions for an Asset I have : - Table 1 : Acquisition value = 300.000,00 - Table 2 : total transactions = 260.000,00 So I

  • What audio card do you recommend for a CS4 Win 7x64 system?

    The on board Microsoft High Deffinition Audio is very limited and i can't adjust record levels. Also the output levels are very low that I feed to my Mackie board with the output level adjusted to max. I am using the HDVsplit to capture my video whic

  • NetBeans 3.6 + Tomcat

    When I try to start Tomcat server using NetBeans 3.6, I get an error... Tomcat alone works fine... Using CATALINA_BASE: D:\Desenvolvimento\PMV-WEB Using CATALINA_HOME: C:\jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: D:\Desenvolvimento\PMV-WEB\temp Us