Css for specific cells?

Someone sent me a link to a great tutorial for how to
redefine tags so behaviors like a:hover would display differently
in different cells in a table about a year ago. Unfortunately I
didn't bookmark it, and I don't remember exactly what it was
called. Does this ring a bell with anyone? I need to do it again
for another site, and I must be missing a step since it's not
working.

a { color:green; }
td.special a { color:brown; }
<td class="special"><a href="brown.html">This
link is brown, not
green.</a></td>
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"judyross" <[email protected]> wrote in
message
news:etfapj$p62$[email protected]..
> Someone sent me a link to a great tutorial for how to
redefine tags so
> behaviors like a:hover would display differently in
different cells in a
> table
> about a year ago. Unfortunately I didn't bookmark it,
and I don't remember
> exactly what it was called. Does this ring a bell with
anyone? I need to
> do it
> again for another site, and I must be missing a step
since it's not
> working.
>

Similar Messages

  • Comment or attach document for specific cell of data

    Dear all,
       Is it possible to create comment or attached document for specific cell of data in Webi report?
       For example, the sales of certain product & yearmonth is lower than previous month. I want write some comment for that cell of data . Which function should I use? I try the "Discussion" function. But, it's for the whole report not for certain range of data and I can't attached document in there. Please advise.
    Thx,
    Jeff

    Hi Jeff,
    This one is the most popular request from most of our customers. But what we always tell the client is that the reports that are created in webintelligence are analytical in nature and it is not cell based. For every refresh of the report, you may get different results based on the parameters and your annotation will not hold good.
    We suggest two methods to solve this issue. 1) Discussions - Standard text with the parameters used for refreshing and the observation. This would be a good option if the report is shared with many people.
    2) Add a cell to the report, place it at the right place adjacent to the block which you want to observe. Make your comments in different colors. This would be good for reports which need to be presented to some audience.
    The below link shows a prototype called Comment It for Crystal Reports. But I don't think this is available for webintelligence.
    Comment it [original link is broken]
    Thanks
    Mohanraj CP
    http://blog.mohanraj.org

  • How to set up a formula for specific cells

    I have a list of products with prices next to them. at the bottom i have a total cost of all the products but an added feature to the list, id like to "subtract" the cost of a given product from the total for the products that have already been purchased. perhaps via check box column or maybe a color fill of the cell. or if anyone has a better idea how to indicate that the product has been purchased. either way, my primary goal is to have the total at the bottom reflect only the products that have not yet been marked as purchased. thanks in advance for any help.

    the first row is a header and the last row is a footer.
    B11=SUMIF(C, FALSE, B)

  • Set color of specific cells in JTable.

    I have a JTable where I want to set the color for specific cells. Is this possible to do, and if so, how?

    Well, one way is to create a custom renderer that know the background color of each cell in the table. The Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#renderer]How to Use Table has an example you might be able to build on.
    Or, this posting may give you another approach. The key to both solutions is to somehow specify the color for every cell:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=610474

  • How to select a specific cell in a JTable?

    Hi there,
    in a JTable, I would like to select a specific cell (to highlight it) from a JButton.
    Here a sample code...
    Who could help me to fill it?
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TableSelection{
        public static void main (String args[]) {
          JFrame frame = new MyFrame();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.show();
    class MyFrame extends JFrame{
      public MyFrame(){
        setTitle("TableSelection");
        setSize(WIDTH,HEIGHT);
        DefaultTableModel myModel = new DefaultTableModel(2,2);
        JTable myTable = new JTable(myModel);
        myTable.setCellSelectionEnabled(true);
        JButton button00 = new JButton("select 0,0");
        button00.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent event){
         System.out.println("selection of cell (0,0)");
         //--- what code is required to select the cell(0,0)?
        JButton button11 = new JButton("select 1,1");
        button11.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent event){
         System.out.println("selection of cell (1,1)");
         //--- what code is required to select the cell(1,1)?
        Box myBox = new Box(BoxLayout.Y_AXIS);
        myBox.add(new JScrollPane(myTable));
        myBox.add(button00);
        myBox.add(button11);
        getContentPane().add(myBox, BorderLayout.CENTER);
      private static final int WIDTH=200;
      private static final int HEIGHT=200;
    }Thanks a lot for your help.
    Denis

    Use the addColumnSelectionInterval(int index1, int index2)method ~ http://java.sun.com/j2se/1.4/docs/api/javax/swing/JTable.html#addColumnSelectionInterval(int,%20int)
    and the addRowSelectionInterval(int index1, int index2) method ~ http://java.sun.com/j2se/1.4/docs/api/javax/swing/JTable.html#addRowSelectionInterval(int,%20int)
    Hope that helped.
    afotoglidis

  • How to print a specific cell in numbers

    how to print a specific cell in numbers?

    Copy the cell (contents), Paste onto a page of a separate document, or onto a separate sheet of your Numbers document, Print.
    Or insert a single cell table onto your Numbers document, type an = sign in the cell then click on the cell you want to print. Drag the new table to a second sheet, set up your page there, and print.
    See the Numbers '09 User Guide for other useful tools and techniques. Download the guide via the Help menu in Nuimbers.
    Regards,
    Barry

  • How Do I Use a SINGLE Custom CSS for My Project?

    How do I set a single CSS for a project?
    Currently, I have linked (I checked, they are actually linked) FM files. The project is Responsive HTML 5 Single Source Layout. It is set up this way:
    Project Files
    Each FM file has a folder that contains a CSS, an FPJ, any baggage (PNG, for example) and an HTM.
    So, for my project, I have 31 such folders.
    Above them is RHStyleMapping.css.
    That's it
    To map my project to a custom CSS, I did this:
    1) Created the custom CSS (let's call it TheSingleCSS-sb01.css) and put it in the same location as RHStyleMapping.css.
    2) Right-clicked Responsive HTML5 (Primary Layout) in the Single Source Layouts pane.
    3) Selected Properties. The Responsive HTML5 Properties dialog box opens.
    4) Click Content, select  the Apply to all Topics check box, select CSS, and choose my CSS, TheSingleCSS-sb01.css.
    5) Click Save and Generate. Generating happens.
    6) When prompted, click View Result.
    7) Double-click one of the resulting topics, and choose the HTML tab.
    8) Notice the following CSS files are referenced, NOT the one I want:
    <link rel="stylesheet" href="Configuration_ChangeWorkflow.css" type="text/css" />
    <link rel="stylesheet" href="..\..\RHStyleMapping.css" type="text/css" />
    <image>
    So:
    1) How can I replace 32 individual CSSes with one single custom CSS?
    2) Also note that Project Manager does not display my custom CSS, even though it is in the same location as RHStyleMapping.css and referenced in the Properties dialog box.
    Thanks all,
    Sean

    Hi, so as I mentioned before, I have used Apply to all and this doesn't work. The resulting HTML still uses a specific CSS for that one HTML file.
    1) I put the CSS I want to use, Sean01.css, in the top level of my project using Windows Explorer.
    2) I Save and Generate.
    3) But, my settings for styles in the CSS are not used. For example, FM_GlossaryDefinition is defined with a 0 left indent but actually uses a 144pt indent (that mirrors the print FM document and that I do not want).
    4) And, you can see from the actual HTML, that the Sean01.css file that I applied to all topics (see the first image) is not referenced. What am I doing wrong?
    What am I doing wrong? Again, these are imported FM files; this is not linked.
    Thanks,
    Sean

  • How do I name a specific cell in Numbers 3.2.2?

    I am working with a multi-table spreadsheet and I want to create a table of variables that are used in a specific formula throughout the spreadsheet. For example, here is the formula I'm working on:
    =IF(C32≥321,"23",IF(C32≥281,"19",IF(C32≥241,"17",IF(C32≥201,"15",IF(C32≥161,"13" ,IF(C32≥121,"11",IF(C32≥80,"09","")))))))
    Yes, all you database builders out there, it's a wacky way to spreadsheetize an IF, THEN, OR  statement - fortunately, I'm only working with numbers. What I want to do is replace the cell values and the "then" result numbers with references from another table. I can't just link to the specific cell by clicking (resulting in something like "<table>::<cell>") because the formula builder spits it out claiming there are too many arguments. Here is an example of what I'm getting at if you replace the first number in each statement with a cell name like "R_1" and the calculated displayed value as "V_1":
    =IF(C32≥R_1,"V_1",IF(C32≥R_2,"V_2",IF(C32≥R_3,"V_#",IF(C32≥R_4,"V_4",IF(C32≥R_5, "V_5",IF(C32≥R_6,"V_6",IF(C32≥R_7,"V_7","")))))))
    Right now, I have to manually make changes to the formula in one cell then copy it across the other cells in the different tables. I'd much rather have the formula reference specific cells in a variable table so that I can update the values globally. In the "help" for Numbers, it states:
    "If the reference is to a cell in another table, the reference must contain the name of the table (unless the cell name is unique within all tables). For example:
    =Table 2::B2
    Note that the table name and cell reference are separated by a double colon (::). The name of the table is automatically included when you select a cell in another table while building a formula.
    If the reference is to a cell in a table in another sheet, the sheet name must also be included (unless the cell name is unique within all the sheets)." (emphasis mine)
    However, I can't find any documentation to instruct me on how to create a unique cell name. Any advice?

    Hi coop,
    coop1108 wrote:
    IF, THEN, OR 
    I think of the IF function as IF(this is true, THEN do this, ELSE do that)
    From the Function Browser: type = in any cell, then type 'if' (no quotes) in the search box.
    The IF function returns one of two values, depending on whether a specified expression evaluates to a boolean value of TRUE or FALSE.
    IF(if-expression, if-true, if-false)
    if-expression: A logical expression. if-expression can contain anything as long as the expression can be evaluated as a boolean value. If the expression evaluates to a number, 0 is considered to be FALSE, and any other number is considered to be TRUE.
    if-true: The value returned if if-expression is TRUE. if-true can containany value. If if-true is omitted (there’s a comma, but no value) and if-expressionevaluates to TRUE, IF will return 0.
    if-false: An optional argument specifying the value returned if if-expression is FALSE. if-false can contain any value. If if-false is omitted (there’s a comma, but no value) and if-expressionevaluates to FALSE, IF will return 0. If if-false is entirely omitted (there’s no comma after if-true) and if-expressionevaluates to FALSE, IF will return FALSE.
    Or more to the point,
    IF it is sunny, THEN have a picnic, ELSE stay in bed.
    Call back with further questions. Maybe a LOOKUP function will work for you.
    Regards,
    Ian.

  • CellRenderer / Editor for single cell in JTable

            table.setDefaultRenderer(Color.class,
                                     new ColorRenderer(true));I thought the code above would set up ColorRenderer() to be run if, and only if, a specific cell contains the class in the first input paramter (in this case, java.awt.Class).
    However, this doesn't seem to be the case. If I have one column with various classes in them (eg. java.awt.Dimension, etc.) the renderer for the Color.class is run every time! ..
    This happens if you eg. change the data in the example:
    http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/TableDialogEditDemo.java
    to contain one element in the color colum that's eg. a java.awt.Dimension (you will get a ClassCastException).
    How come this happens? This can't be the way it should be ...

    Yeah .. but that wouldn't be as object oriented
    thoughAgreed.
    I had a look at the source of JTable. The problem seems to be the method:
    public TableCellRenderer getCellRenderer(int row, int column)
    that makes no use of the row argument.
    I think you could fix this by subclassing JTable and overriding this method with something like:
    public TableCellRenderer getCellRenderer(int row, int column)
        Object obj = dataModel.getValueAt(row, column);
        TableCellRenderer renderer getDefaultRenderer(obj.getClass());
        return renderer;
    }Let me know how you get on.
    Regards.

  • How can I link specific cells in two different speadsheets so the data from a specific cell in spreadsheet A automatically updates in a specific cell in spreadsheet B. It works in Xcel- Any ideas?

    How can I link specific cells in two different tables so the data from a specific cell in table A automatically updates in a specific cell in table B? It works in Xcel- Any ideas?

    (1) your title ask the way to link different spreadsheets.
    In Numberland, a spreadsheet is an entire document.
    There is no way to link different documents.
    (2) in the message, you ask the way to link different tables.
    This feature is available and is described in iWork Formulas and Functions User Guide (which is available for free from the Help menu).
    Getting the info just requires a simple search in this available resource !
    Yvan KOENIG (VALLAURIS, France) 14 mai 2011 10:37:50

  • Background Image repeating for table cells

    I am trying to put different images as the background to all
    the cells in a table, so I can put text over the top of them, but I
    cant have an image without it repeating. Ive tried going into the
    code and adding background-image: "no-repeat" but that hasn't
    worked. I know nothing of CSS and it seems really confusing - so if
    this is the answer please give me CSS for dummies instructions.
    Layers drive me bonkers as no 2 browsers display them in the same
    place.
    URL is:
    http://www.visionsportsmedia.com/BillyTestSite/test
    At the moment only cell one is a background image, the rest
    are images inserted normally.
    Hope you can help.
    Thanks.

    Your question reflects the confusing mess your life will be
    if you persist
    with web authoring without taking the time to learn some HTML
    and CSS.
    You have -
    <th height="351" colspan="6" "scope="col">
    Note the extra doublequote just before 'scope'.
    Also note that your preloads (look at the body tag) as well
    as your image
    swaps (look elsewhere - everywhere you see 'file:///') are
    all broken -
    pointing to files on your hard drive. Finally, you might want
    to just think
    about making a page where there is no readable content
    (everything here is
    in images). It will get a zero search engine ranking....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "little bob" <[email protected]> wrote in
    message
    news:gqo8jh$ejo$[email protected]..
    >I am trying to put different images as the background to
    all the cells in a
    > table, so I can put text over the top of them, but I
    cant have an image
    > without
    > it repeating. Ive tried going into the code and adding
    background-image:
    > "no-repeat" but that hasn't worked. I know nothing of
    CSS and it seems
    > really
    > confusing - so if this is the answer please give me CSS
    for dummies
    > instructions. Layers drive me bonkers as no 2 browsers
    display them in the
    > same
    > place.
    >
    > URL is:
    http://www.visionsportsmedia.com/BillyTestSite/test
    >
    > At the moment only cell one is a background image, the
    rest are images
    > inserted normally.
    >
    > Hope you can help.
    >
    > Thanks.
    >

  • Import from Excel-Mapping Specific cells

    I've used the SQL Import/Export tool to import simple Excel data in the past. These were often simple column to table imports...easy mappings. I currently have an Excel spreadsheet kept by our Sales people that needs to be imported. The data in these sheets
    are not grouped into simple columns. For example, data values are either horizontal or I need to import specific data FROM cell A4 TO table column 'CCode' and cell A6 to 'CCode'.
    The trouble I'm facing is that the import wizard wants to simply map column for column from Excel. Even when I go into, "Edit Mappings" I'm not really finding a way to map specific cell data to the SQL column. Any help would be greatly appreciated...
    Excel Example:
    SQL Table:

    I'm seeing that now. I'll admit the format of the spreadsheet will be changing after I get these imported and moving forward.  I should have mentioned this is on an older SQL 2005 server, and am playing around with an Integration Services Project...
    Essentially I need to pluck the data in cells A1, C2, A4, C4-E4 and insert those values into an existing SQL table. I've defined my Excel Source. Seeing as the source sheet is a mess and I need to select certain cells (not all are in a neat range like C4-E4...I
    have some single cell values I ALSO need to import like A1 & C2) I chose "SQL Command" as my data access mode.
    The one thing I can't figure out is how to write a select statement that allows me to select certain cells and a small range of cells. I can select a single value by using: SELECT * FROM [sheet1$A1:A1] OR I can choose a range with the following: SELECT *
    FROM [sheet1$C4:E4]...how would I format a select statement that will allow me to pick not only the individual cells but ALSO the ranges I need?
    I have tried SELECT...UNION...SELECT but am limited to two select statements and places everything into a single F1 column when I need it in a row view to map with the SQL columns...so each cell I pull has a separate F value so I can properly map the data
    to the correct SQL column like the following:
    F1    F2   F3   F4    F5  F6   F7
    A1   C2   A4    A6   C4   D4   E4    

  • Refreshing specific cell in dataTable?

    Hi
    How do I get a dataTable to re-render a specific cell? As an example, consider Bean listed below. Initially, the dataTable displays the values as iterated over Bean.lines. Later in response to a user action (see Bean.updateLine), I'd like the appropriate cell in the dataTable to be refreshed (without of course having to press a 'Refresh' button).
    How do I achieve this with dataTable?
    public class Bean {
      private List<Line> lines = new ArrayList<Line>();
      public List<Line> getLines() {
        return lines;
      // called (in response to a user action for example) to refresh a specific line value
      public void updateLine() {
        lines.get(0).setVal("some new value");
      public class Line {
        private final String id;
        private String val;
        private Line(String id) {
          this.id = id;
        public String getId() {
          return id;
        // calling this must trigger the dataTable to refresh the appropriate cell (ideally)
        // or else the entire dataTable in the browser
        public void setVal(String val) {
          this.val = val;
        public void getVal() {
          return val;
      } // Line
            <h:dataTable value="#{bean.lines}" var="line">
              <h:column>
                <h:outputText value="#{line.id}"/>
              </h:column>
              <h:column>
                <h:outputText value="#{line.val}"/>
              </h:column>
            </h:dataTable>Help much appreciated
    Lance

    Thanks, AJAX is doing the trick nicely.
    For the benefit of a future question, I'm using onclick="doSomething()" on a component within the table (a selectBooleanCheckbox in my case).
    Main JavaScript / AJAX:
          <script type="text/javascript">
            function doSomething(elementId) {
              var rowNum = elementId.split(":")[2]; // position in table
              var someId = document.getElementById("form_id:table_id:" +
                                                  rowNum + ":textbox_id").innerHTML;
              var url = "handler?cmd=MY_SERVLET_CMD" + // handler points to HandlerServlet
                                "&some_id=" + encodeURIComponent(someId) +
                                "&row_num=" + encodeURIComponent(rowNum);
              if (typeof XMLHttpRequest != "undefined") {
                req = new XMLHttpRequest(); // AJAX
              } else if (window.ActiveXObject) {
                req = new ActiveXObject("Microsoft.XMLHTTP");
              } else {
                alert("Browser not supported!");
              req.open("GET", url, true); // true = asynchronous AJAX call
              req.onreadystatechange = doSomethingCallback; // only if asynchronous
              req.send(null);
          </script>Callback function (invoked on return from the servlet - see reference in doSomething above):
          <script type="text/javascript">
            function doSomethingCallback() {
              if (req.readyState == 4) { // checks are needed else we react before response is complete
                if (req.status == 200) { // see comment above
                  var prefix = "form_id:table_id:";
                  var suffix = ":checkbox_id"; // we want to update all check boxes - see below
                  var msg = req.responseXML.getElementsByTagName("message")[0];
                  var lineCount = msg.getElementsByTagName("line_count")[0].childNodes[0].nodeValue;
                  var rowNum = msg.getElementsByTagName("row_num")[0].childNodes[0].nodeValue;
                  var checkAll =
                    document.getElementById(prefix + rowNum + ":check_all_id"); // another check box that determines state of check boxes below
                  var lineCheckId = ""; // line checkbox element
                  for (var i = rowNum, n = parseInt(rowNum) +
                                                  parseInt(lineCount); i < n; i++) {
                    lineCheckId = prefix + i + suffix;
                    document.getElementById(lineCheckId).checked = checkAll.checked; // update the DOM
                } // status
              } // readyState
          </script>

  • Removing specific cells from different columns.

    Hi friends,
    My requirement is somewhat peculiar. I dont know anyone have already implemented that.
    I have 4 columns, 11 rows in my JTable.
    Now i want to display all the 11 rows (i.e to be specific cells ) for first two columns, and just 8 for the next two columns..
    Kind of incomplete table. Does anyone have any idea? please help me... This may be weird , but i need it.
    Sankar.

    try this with some change to suit you
    written a renderer to remove a cell, hope this is what you need.
    public class CellRemoveRenderer implements TableCellRenderer {
         private JLabel label;
         DefaultTableCellRenderer defaultRenderer = new DefaultTableCellRenderer();
         public Component getTableCellRendererComponent(JTable table, Object value,
                   boolean isSelected, boolean hasFocus, int row, int column) {
              if (row == table.getRowCount() - 1) {
                   return label;
              } else {
                   return defaultRenderer.getTableCellRendererComponent(table, value,
                             isSelected, hasFocus, row, column);
    }apply this to table
    table.getColumnModel().getColumn(table.getColumnCount() - 1)
                        .setCellRenderer(new CellRemoveRenderer());i hope this ends your problem.

  • How to enable hyperlink for a cell in excel thru OLE?

    Hi,
    Iam using OLE2 to download data from an internal table into excel sheet.I want to enable hyperlink for one cell in each line of the excel. Please advice how to go abt it?
    Regards,
    Shambu

    To hyperlink to the specific sheet in your workbook, you need to first create the sheet and use the parameter #3 of the Hyperlink's ADD method.
    Try like this:
    *.....Hyperlink to another sheet
      GET PROPERTY OF e_appl 'Range' = e_range
        exporting
        #1 = 'A1'
        #2 = 'A1'.
      GET PROPERTY OF e_activesheet 'Hyperlinks' = e_hyperlink.
      get property of e_work 'Sheets' = e_sheets.
      CALL METHOD OF e_sheets 'Add' = e_work2.
      CALL METHOD OF e_hyperlink 'Add'
        EXPORTING
        #1 = e_range
        #2 = ''
        #3 = 'Sheet2!A1'.   "Targeted Sheet & Cell
    *.....Hyperlink to another sheet
    Regards,
    Naimesh Patel

Maybe you are looking for

  • How to use the Compounding Key in BPC10NW like BW info objects?

    Hi experts. We are longing the suitable solution in BPC-NW 10.0 to deal with compounding key like BW info objects. We want to define the dimension with compounding key MATERIAL and PLANT, but BPC-NW 10.0 doesn't support it. Therefore we just defined

  • Purchase requisitions idoc issue

    Hi, We have found a new interesting thing happening in ECC. IDOCs does not get processed due to PurReq is being processed. Then the IDOC goes into status 51 and can no longer be processed by the batch jobs that is running for status 64.         1) Is

  • How to preload my database into memory?

    1 In Java Edition, There's a method called "Database.Preload()" to do this. But in BDB C version ,is there an equivalent one? if not, How can I do the same thing (with java API)? 2 How to count the records in a database? Thanks.

  • Photos into albums

    I have a broplem with aphoto when i take aphoto or download when i need see it i found the coulors not normal but became dark coulor

  • Battery Life of Macbook Pro OS X ML

    Is it normal for Macbook Pro OS X ML battery to discharge even when it is off? I noticed my battery discharges from 100% to 96%  even if it was turned off overnight. I noticed also that when I'm using my laptop just for emails battery drains so fast