the table cell border

Is it possible to add a table border

for one of the cells in a table? Also is it possible to change the color of the border of the table?

Thank you

YWSW

Yes, by using CSS.

table {border: 2px solid Brown ;}}

TD {border: none}

td .bordered {border: 2px dotted green}

HTML

This cell has a green border This cell has no borders

Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
http://ALT-Web.com/
http://Twitter.com/ALTWEB

Tags: Dreamweaver

Similar Questions

  • a cross on the table cell

    Is it possible a cross on the table cell?

    The term "strike" can have multiple interpretations.

    1. As a checkbox clickable?
    2. With diagonal lines, which intersect?
    3. With vertical lines or horizontal hash?
    4. With table cell fill of a model image pre-built?
    5. With gray scale or the fill color, without content, to suggest the use of cell?

    Pages, you didn't say what version, so I'll use v5.6.2, does not provide the points 1, 2 and 3 for the cells in a table.

  • How do I get the table cells?

    It's my get code that any object in propagation.

    Int32 childCount = parent-> GetChildCount();

    for (int32 /IndexEnfant = 0; childIndex < childCount; /IndexEnfant ++)

    {

    InterfacePtr < IHierarchy > child (parent-> QueryChild (childIndex));

    ChildUIDRef = UIDRef: GetUIDRef (child);

    TextFrame table

    }

    How do I get the table cells?

    You can access the table using ITableModel and GridAddresscell.

    But to get to the ITableModel since ITextModel implies some complexity.

    Few things to understand:

    -L'interface that corresponds to the written document is ITextModel

    -The recommended method to iterate tables in a story done by ITextStoryThreadDictHier

    -Get the ITextStoryThreadDictHier on the history and the main thread as ITextStoryThreadDictHier::NextUID()

    -Now get ITextStoryThreadDict for UID and query for ITableModel. If you get ITableModel, then you have found the table.

    Once you have ITableModel you can get ITableCell as follows:

    ITableModel:QueryCellContentBoss(GridAddress); Give ITableCell

    You can refer to SnipperRunner (SnpManipulateTextModel).

    Download text template table model:

    InterfacePtr textModel (storyUIDRef, UseDefaultIID());

    InterfacePtr textStoryDictHier (textModel, UseDefaultIID());

    NextUID UID = sourceStory.GetUID (); / / Download the main thread dictionary

    Now loop the dicthier to iterate through all the threads dicts.

    InterfacePtr textStoryThreadDict (sourceStory.GetDataBase (), nextUID, UseDefaultIID());

    InterfacePtr tableModel (textStoryThreadDict, UseDefaultIID());

    If (tableModel) / / the storythreaddict represents a table

    {

    You are now in a table

    }

  • The table cell background image problem-

    I'm sure it's something super simple, but I can't see what it is. I'm working in Dreamweaver CS3, but having to modify the code by hand, because the code is not validated I fight to clean up the last error on this page before applying the model it is based on the rest of my site...

    This page was based on the original model: http://jpcltdservices.com/template-page.html

    As you can see by the w3C validator, it had a number of problems with the tags for the table background image:

    http://validator.w3.org/check?URI=http%3A%2f%2Fjpcltdservices.com%2Ftemplate-page.html & cha rset = (detect + automatically) & doctype = Inline & group = 0 & verbose = 1 & st = 1 & user-agent = W3C_Validator %2F1.606

    I cleaned up by adding the table background image css to my stylesheet main and changed the code in the page for suggested type reference.

    http://jpcltdservices.com/Alternate_template_page.html

    W3C validator shows now only 1 error:

    http://validator.w3.org/check?URI=http%3A%2f%2Fjpcltdservices.com%2FAlternate_template_pag.html & charset = (detect + automatically) & doctype = Inline & group = 0 & verbose = 1 & st = 1 & = _Validator%2F1.606 W3C user agent

    The problem is, if I replace the background = "Images/CellBG1sm.jpg td' on line 34 with style ="background-image"td tag that works on line 27, the background image disappears completely from the whole table!"

    I'm sure it's something super simple, but I can't see it. I'm working in Dreamweaver CS3, but having to modify the code by hand, because the code it generates does not validate in many cases.

    TequilaMockingbird published in macromedia.dreamweaver

    > I cleaned up by adding the css to the bottom of table
    > image to my main
    > sheet style and changed the code in the page to the suggested
    > reference style.
    >
    > http://jpcltdservices.com/Alternate_template_page.html
    >
    > W3C validator shows now only 1 error:
    >
    >
    > http://validator.w3.org/check?uri=http%3A%2F%2Fjpcltdservices.com%2
    > FAlternate_te
    > mplate_page.html & charset = (detect + automatically) & doctype = Inline & group
    > p = 0 & verbose = 1 &st=1&user-agent=W3C_Validator%2F1.606
    >
    > The problem is, if I replace the td
    > background = "Images/CellBG1sm.jpg" on "
    > line 34 with style = "background-image" td tag that works on
    > line 27, the background image disappears completely from all
    > table!

    You seem to be sensational. The CSS validator is another object of value
    tool: http://jigsaw.w3.org . I suspect this first error to main.css is
    the incorrect syntax used here:

    background-image: {"url... / Images/CellBG1sm.jpg";}
    ' background-repeat: repeat;
    }

    Go ahead and remove this rule completely.

    For an inline style, try this:

    But it might be better to remove all those inline styles and use your
    external main.CSS. For example, you are not currently using. MainContent,
    so maybe it's a good place:

    . MainContent {}
    do-family: Arial, Helvetica, without-serif, Tahoma;
    color: #3F3F61;
    do-size: 100%;
    background-image: URL("Images/CellBG1sm.jpg");
    margin: 0 auto;
    padding: 0;
    Width: 790px;
    }

    Then, in the table cell or appropriate:


    or

    Not quite $ $0,02, but HTH

    --
    Mark A. Boyd
    Keep-on-Learnine :)

  • hyperlink in the table cell?

    Hi all

    We need to navigate a path for each row in the table control. Is it possible to have a hyperlink in a table for each row cell? or do I have to use button battery to do the same thing?

    Kind regards

    Kanu

    The answer is, you can't. However, the custom hyperlink control is open-source. You can find the source in toolslib\custctrl\hyperlinkctrl.c. It's a pretty simple code module, so it is not all that difficult to modify this code so that it could work in a table cell, rather than a message text control.

    Luis

  • background in the table cell alignment does not work

    So I have one one line, a 2 column table.  In the second/last column, I have an image which must be low and stalled on the right.  However, no matter what I do, I can't image to sit at the bottom of the cell.

    If I add columns and move the image to one of the Interior columns, it aligns bottom, but if I then delete the column to the right (so that the image is now, once again, in the last column) once again the image is not aligned.

    I tried to give the image a negative margin of down, but that does not work.

    Here is the code:

    < td = class "last" style = "" vertical-align: bottom; "> < a href ="#TOPofPage1"> < img"

    "SRC ="... / RESOURCES/i_SPECIAL_art/RETURNtoTopIcon.png "alt =" "class ="TOPofPage""

    style = "" margin-bottom:-12px; "/ > < / a > < table >"

    Here's what it looks like:

    bottom alignment.PNG

    If the orange circle with the white triangle be resting at the bottom of his column... Why is it not?

    When I copy the code of your cell and just change the image of a flat triangle I, the alignment of bottom and negative margin works correctly.

    Check other style in the tr and labels of table and also all the styles applied to a party any of the table - maybe something it's setting of the alignment of the cell.

    If nothing seems obvious, perhaps copy the entire table in a fresh test project to see what's happening and add little by little in your styles to see if you can reproduce.

  • How to access the table cell script plugin c labels

    Hello

    We have a plugin written in actionscript, which prepares data in labels of each cell in a row of a table, when the user has their cursor in this line:

    var: a cell = getSelectedCell();

    for each {(var childCell:Cell in cell.parentRow.cells)

    childCell.insertLabel (labelName, theString);

    }

    public function getSelectedCell (): cell

    {

    ...

    var selectedLayers:Array = doc.selection in the table;

    var selectedLayers = obj:Object [0];

    If (obj have PointInsertion! = null) {}

    var ip:InsertionPoint = obj as PointInsertion;

    If (ip.parent cell) {}

    return ip.parent as cell;

    }

    } else if (obj as cell! = null) {}

    return items as cell;

    }

    Returns a null value.

    }

    I am now writing a C plugin that needs to read data using IScriptLabel: once again, when the user has a cursor in the same row.

    My problem is that I can't find (via the C code) against that UIDRefs the labels would have been stored by the script that the table does not seem that the objects of the cell in the same way as the script only.

    Any ideas on how to get the relevant UIDRefs?

    Thank you

    I found the answer:

    1) go to SnpIterTableUseDictHier.cpp.

    (2) go to the function void SnpIterTableUseDictHier::inspectThreadDict (const InterfacePtr& textStoryThreadDict).

    (3) add this code after the line after the line InterfacePtrMyCell (textStoryThread, UseDefaultIID());

    #define Solutiontotheproblem 1

    #if Solutiontotheproblem

    InterfacePtr iscript (textStoryThread-> QueryParent (ScriptInfo::RequestContext ()), IScript::kDefaultIID);

    {if (iscript)}

    Tags IScriptLabel::ScriptLabelKeyValueList is iscript-> GetTags();.

    IScriptLabel::ScriptLabelKeyValueList:iterator iter;

    If (!) Tags.Size ())

    {

    PMString return ("no labels found.");

    returnVal.SetTranslatable (kFalse);

    }

    for (iter = tags.begin (); iter)< tags.end();="">

    {

    PMString returnVal ((*iter).) Key());

    Return +=("::");

    Return += ((*iter).) Value();

    CAlert::InformationAlert (returnVal);

    }

    }

    #endif

    (3) voila!

    Hope that helped. If your question is the answer, please mark my solution as correct

    I used this link for the answer. The main thing to find was finding what associated text interface was IScript is associated with.

  • Vertical alignment of the table cell can be defined via CSS?

    In a table cell (IE, 'td') is it possible to define "valign" via CSS, instead of table cell appropriate?

    In other words, instead of...

    < table >

    < b >

    < td valign = "top" >

    .. is it possible to do:

    < table >

    < b >

    < class td = "top" >

    .. somehow, .and allow the stylesheet to define the vertical alignment?

    I ask because none of the attribute in Dreamweaver CS4 presets seem to provide for vertical alignment. Everything on God's Green Earth seems to be there, but the vertical alignment of the cell table seems to be the ONLY thing THAT forgotten CSS.

    miyeager, I'm sorry, I misread your question. Yes, you can. Use ' vertical-align: top of the text.

  • Contecnt Center of the United Nations in the table cell

    The situation is fairly simple, but I can't understand how of the Nations United Center content in my table cell. I speak not horizontal but vertical center. I want to type from the top left of the cell in the table, not from the Center and that the text is centered vertically.

    Sorry, I found the answer.

    The situation is fairly simple, but I can't understand how of the Nations United Center content in my table cell. I speak not horizontal but vertical center. I want to type from the top left of the cell in the table, not from the Center and that the text is centered vertically.

    Sorry, I found the answer.

  • Add notes to the content of the table cell

    Can someone tell me if it is possible to add cross-references to the text in a cell in a table? After searching in the forums, this question was raised by another user in 2006, and I was wondering if Apple had added this feature yet.

    Thanks for your help with this.

    Notes cannot be applied to the text in the body of the main text, and not in objects such as Tables, text boxes or shapes.

    Since 2013, Apple has removed a long list of features.

    Peter

  • Centre within the table cell text

    Hi-

    I'm trying to align the text in the < TD > tag in a table.  The text also works as a link.  I put the CSS:

    . Caption a {}

    text-align: center;

    do-family: "Arial Unicode MS";

    do-size: 18px;

    color: #FFF;

    }

    HTML code:

    < class td = "caption" > < a href = "#" > transport < /a > < table >

    Site:

    http://www.sbaisden.com/portfolio.html

    I tried several troubleshooting methods, but nothing seems to work.  Any ideas are greatly appreciated.  Thank you!

    Hello

    using your source code in my DW (German) I tried this:

    1 Select a column"(translated from my German DW) > green arrow above

    2. 'centre' (small green arrow)

    Good luck!

    Hans-Günter

  • Unable to get the elements placed at the top and bottom of the cell of the table with vertical-align

    Hello

    I have a three-day educational courses in the list table. In each cell, I have the title of the presentation at the top with the name of the speaker below. Because some titles are longer than others, the line grows (rightly) as longer securities are covered in Word. So far so good. Now, I want all the titles to always start at the same distance from the surface of the cell (I use padding 2px) and names of speaker all be equidistant from the lower border, (i.e. 2px).

    I tried to place the title elements with < span style = "vertical-align: top" > </span > presentation title

    and the name of the speaker as < span style = "vertical-align: bottom" > name </span > Speaker

    and I tried the same method with < div > and < p > tags. Items don't move. Can someone tell me how to make the names of the speakers will be all aligned at the bottom of each cell?

    Here is an example of the code table I've tried:

    (Thanks!)

    < table style = "text-align: center;" do-family: Arial; background-color: #f7d49c; "border ="2"bordercolor =" #467E9F "cellpadding ="2 ".

    "cellspacing ="0"width ="900">"

    < tbody >

    < b >

    < td width = "300" > < span style = "" vertical-align: top; "> This is a short title </span > < br / >"

    < span style = "vertical-align: bottom" > name </span > < table > Speaker

    < td width = "300" > < div > is the title of another presentation, which is really long because some of the presentations have titles like that < / div > < br / >

    < div style = "vertical-align: bottom" > Speaker name < / div > < table >

    < td width = "300" > < span style = "vertical-align: top" > This is yet another presentation with a semi-long title </span > < br / >

    < span style = "vertical-align: bottom" > < table > </span > Speaker's name

    < /tr >

    < b >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < / tbody >

    < /table >

    By default, the content of the table cell is average aligned.  You need not do anything.

    If you want your cell vertically aligned up or down, you can specify it in your CSS.  These effects all the text inside the cell.   It's all or nothing.

    Some text that is aligned at the top Some bottom-aligned text

  • How can we do the invisible table cells (but not content) in DW CS5?

    How can you efficiently convert the table cells in invisible ones so that the content within these cells gets stand alone, visibility-wise, please?  I looked at so many different orders of Dreamweaver CS-5, but none seem to do the trick, at least do not apparently potentially compromising the existing content somehow.  Any thoughts, please?

    Change

    BORDER CELLPADDING = "0".

    TO

    BORDER = "0".

    See what for you.

    Gary

  • Apply the Style to the table using Extendscript CC cell text

    Hello

    I have the following code. I try to scan a document and a specific keyword research based on the regex. That part works. I then get the range of text for those keywords and the highlighted text. This method works. What does not work, it is when I try to do the same in the text that is in a table cell.

    #target framemaker
    
    var doc = app.ActiveDoc;
    var totalPgfs = 0;
    
    var pgf = doc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
    
    function do_table_work(pgf){
        var result = pgf.GetText(Constants.FTI_TblAnchor);
        var all_text = '';
        for (var i = 0; i < result.length; i += 1) {
            var t_object = result[i].obj;
            var t_cell = t_object.FirstRowInTbl.FirstCellInRow;
            while(t_cell.ObjectValid()){
                var cell_items = t_cell.GetText(Constants.FTI_String);
                var tr = new TextRange();
                 tr.beg.obj = tr.end.obj = pgf;
    
    
                 tr.beg.offset = 0; //this is built dynamically
                 tr.end.offset = 7; //this is built dynamically
    
                apply_char_format(text_range)
                t_cell = t_cell.NextCellInTbl;
            }
        }
    }
    
    function apply_char_format(text_range, name) {
        var color = doc.GetNamedColor(name);
        if (color.ObjectValid()) {
            var set_val = new TypedVal();
            set_val.valType = Constants.FT_Integer;
            set_val.ival = true;
            doc.SetTextVal(text_range, Constants.FP_UseBkColor, set_val);
    
    
            set_val.valType = Constants.FT_Id;
            set_val.obj = color;
            doc.SetTextVal(text_range, Constants.FP_BkColor, set_val);
        } else {
            alert('Color does not exist');
        }
    }
    
    while (pgf.ObjectValid()) {
        do_table_work(pgf);
        pgf = pgf.NextPgfInFlow;
    }
    

    The problem is that it is not highlighting the text in the table cell as I want it. If I process the document and use the following syntax:

    var result = pgf.GetText(Constants.FTI_String);
    

    It will highlight the text (with extra code to loop through these results).

    Any thoughts on what I'm missing?

    Hi Green,

    I don't have time to debug this script completely, but I see things that seem unusual.

    1. var result is TFP. GetText (Constants.FTI_TblAnchor);
    2. var all_text = ";
    3. for (var i = 0; i)< result.length;="" i="" +="1)">
    4. var t_object = .obj result [i];
    5. var t_cell is t_object. FirstRowInTbl.FirstCellInRow;
    6. While (t_cell. {ObjectValid()})
    7. var cell_items is t_cell. GetText (Constants.FTI_String);
    8. var b = new TextRange();
    9. TR. Beg.obj = tr.end.obj = bmp;

    GetText() is valid for a table cell, I don't know if that's what you want. I think I want to explore the individual paragraphs. I'm not quite clear on what this code does do exactly, but it seems that this would make it much easier to implement the text ranges. GetText() will cover all the paragraphs in a cell, if there are several.

    Added to this, your line "tr.beg.obj = tr.end.obj = bmp;" makes no sense to me, because you're coming back the paragraph which contained the anchor point of the table. In other words, you just leave the table entirely.

    So it's just a few riddles, but it seems more likely that you would something along these lines:

    1. var t_cell is t_object. FirstRowInTbl.FirstCellInRow;
    2. While (t_cell. {ObjectValid()})
    3. var cellPgf is t_cell. FirstPgf;
    4. var cell_items = cellPgf.GetText (Constants.FTI_String);
    5. var b = new TextRange();
    6. TR. Beg.obj = tr.end.obj = cellPgf;

    Hope this helps some.

    Russ

  • "Submit to" will depend on the number of table cell

    Hello

    When you click on a "submit" button, I try to have my form go to some people based on a number in a table cell.

    For example, if the amount in dollars in the table cell, I have named "TotalPrice" is $ 1,000 or more, he goes to a group, and if it is less than $1,000, he goes to another group.

    Here is the script I am trying me, but not having not successful...

    var vEmail;
    var vCC;
    
    
    if (Page1.Table1.Row[11].TotalPrice.rawValue >= 1000)
    {
        vEmail = Page1.Buyer.rawValue; 
        vCC = Page1.RequestorEmail.rawValue + "[email protected]";
    }
    else
    {
        vEmail = Page1.Buyer.rawValue;
        vCC = Page1.RequestorEmail.rawValue;
    }

    Any advice would be appreciated.

    Kind regards

    ZeroZone

    var vEmail;
    var vCC;
    
    if (Page1.Table1.Row.all.item(11).TotalPrice.rawValue >= 1000)
    {
        vEmail = Page1.Buyer.rawValue;
        vCC = Page1.RequestorEmail.rawValue + ";[email protected]";//make sure to separate emails with semicolons(;)
    }
    else
    {
        vEmail = Page1.Buyer.rawValue+";[email protected]";
        vCC = Page1.RequestorEmail.rawValue;
    }
    
    app.mailMsg({bUI:true,cTo:vEmail,cSubject:"My Subject",cCC:vCC})
    

    Kyle

Maybe you are looking for

  • How can I stop the five-minute breaks?

    Since the upgrade to 10.11.6, my work was repeatedly interrupted by notifications on five-minute breaks.  How can I stop this?

  • Unable to load the topic: newtab page in a new tab

    Hello A recent attack hack of Bing has reset the value of browser.newtab.url to their search page. I keep trying to reset to about: newtab but when I click on OK, the URL remains the same and my changes are ignored. What can I do about it? I really w

  • WD my cloud and iTunes do not find files

    I bought a WD mycloud 4TB NAS to unload my iTunes files and photos from my Mac.  I don't want it as a back up that I have a time machine that is dedicated for backups. I want to delete the files from my hard drive on my mac and iTunes from the form o

  • How to completely reset my ipad mini?

    Hey guys,. My sister has a mini Ipad, but she forgot her password. (she tipped the password more than 6 times). I can't find a way to reset the Ipad. A remote reset does not work because it cant't connect to wifi because it is locked, I can not conne

  • optimization of the frame rate

    Please someone help me. you guys can explain why my cadence is different than 1 vi vs another vi? my setup.vi rate is 30 frames per second My rotatewithoverlay.vi is running at 10 frames per second It's because of the calculations and changing color