Positioning text within block

Hi
I am wanting to postion text within a Box/block, these are list items that I have used as navigation buttons.
I have set the box size and have selected "center" for text positioning, this positions the text in the centre horizontally ok.
I would like to know how to position the text centrally verticially aswell?
Many thanks
Mark

Hi
Thanks for quick answer.
I can get the padding within a div option to work, but one of the List  items/ button texts needs different padding to the others because it is two lines of text.
Can I differentiate the treatment of one "Li" ??
Cheers
Mark

Similar Messages

  • The Content sync feature won't allow me to style specific text within a text block.

    I am trying to change the color of a few words within a paragraph but after I add a content tag to it, it will not let me. It will just change the color of all text within the block. Is this a bug?

    The issue I am having is that I can't do any text styling to specific words within my text box like I can without a content tag.
    Let me explain. I have a few words within a text block that I want to emphasize with a color. It will not allow me to highlight the word and change its color if it has a content tag - it will change all of the text within the block that color. I have no problem doing it without the tag. Why is that?

  • How to apply style to partial text within a tag in xml file

    I have created a webpage using Dreamweaver CS4 Spry Regions. Everything is functioning as expecting, however now I need to apply a style to part of the text. Every occurance of the company name needs to be in italics - the problem is that the company name appears within different parts of the text within a set of tags.
    http://www.certifiedangusbeef.com/private1/sales/facts/index.php
    ie - <description> this is my company name which must appear in italics</description>
    In this example, only "company name" needs to be italicized. We have created an XSL file that applies the italics properly when the XML file is viewed in the browser. But it does not have any effect on the final web page - as though spry is blocking the XSL or we've missed a step in linking all the files together.
    Here's the XSL code:
    <?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="facts.xml" --><!DOCTYPE xsl:stylesheet  [
    <!ENTITY nbsp   "&#160;">
    <!ENTITY copy   "&#169;">
    <!ENTITY reg    "&#174;">
    <!ENTITY trade  "&#8482;">
    <!ENTITY mdash  "&#8212;">
    <!ENTITY ldquo  "&#8220;">
    <!ENTITY rdquo  "&#8221;">
    <!ENTITY pound  "&#163;">
    <!ENTITY yen    "&#165;">
    <!ENTITY euro   "&#8364;">
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:template match="node()|@*">
            <xsl:copy>
                <xsl:apply-templates select="node()|@*"/>
            </xsl:copy>
        </xsl:template>
        <xsl:template match="text()[ancestor::description]" name="replace">
            <xsl:param name="pString" select="."/>
            <xsl:choose>
                <xsl:when test="contains($pString,'Certified Angus Beef ®')">
                    <xsl:value-of select="substring-before($pString,'Certified Angus Beef ®')"/>
                    <i>Certified Angus Beef<sup> &reg;</sup> </i>
                    <xsl:call-template name="replace">
                        <xsl:with-param name="pString"
                        select="substring-after($pString,'Certified Angus Beef ®')"/>
                    </xsl:call-template>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="$pString"/>
                </xsl:otherwise>
            </xsl:choose>
        </xsl:template>
        <xsl:template match="text()[ancestor::item]" name="replace1">
            <xsl:param name="pString" select="."/>
            <xsl:choose>
                <xsl:when test="contains($pString,'Certified Angus Beef ®')">
                    <xsl:value-of select="substring-before($pString,'Certified Angus Beef ®')"/>
                    <i>Certified Angus Beef<sup> &reg;</sup> </i>
                    <xsl:call-template name="replace">
                        <xsl:with-param name="pString"
                        select="substring-after($pString,'Certified Angus Beef ®')"/>
                    </xsl:call-template>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="$pString"/>
                </xsl:otherwise>
            </xsl:choose>
        </xsl:template>
    </xsl:stylesheet>

    An element attribute is set with the method
    setAttribute(String name,
                             String value)or the
    setAttributeNode(Attr newAttr)method.

  • How to align text within an EditText?

    Hello,
    using this simple one as an example:
    var w = new Window('dialog');
    w.preferredSize = [200,100];
    w.et = w.add('edittext', void 0, "Some text");
    w.et.preferredSize.height = 40;
    w.show();
    The "Some text" is placed top-left in the EditText - is it possible to control its alignment, i.e. ['center', 'middle']?
    (just to be clear, I'm not interested in the EditText position within the Window, but just the text within the EditText itself).
    Thank you!
    Davide Barranca
    www.davidebarranca.com

    Davide, use the below example with either left, center, or right.  You have to have the justify line right after the line that creates the edittext box:
    #target photoshop
    var dlg = new Window('dialog','test')
    dlg.txt = dlg.add('edittext',undefined,'this it the text');
    dlg.txt.justify = 'center'
    dlg.txt.size = [200,60]
    dlg.show()

  • Apply different styles to text within a Text field?

    I am working on an application that consumes a user-generated
    HTML file and displays it on part of a Flex screen. The main
    problem is HTML can look something like this (for example):
    Hello <span class="greeting">Mr. Smith</span>,
    how are you doing <span class="title>today</span>.
    Unfortunately, the Flex Text control only accepts a single
    style that is applied to all text within the control and the
    htmlText property only allows for very basic HTML markup and does
    not include support for applying styles to a part of the text.
    I've thought about creating a series of Text controls (each
    with its own style as needed) and putting them together in an HBox.
    However, this messes up word wrapping if the text exceeds the width
    of its container.
    Anyone have any ideas how to solve this problem?
    Thanks!
    Dustin

    Could you please elaborate your requirement since you can have different instances of synchronized text have different formatting.
    So your original menu can consist of various text blocks (marked with different content tags) and then duplicate them and apply different formatting to the copied text. The text is still linked and an update to one will get synced to the other.
    If you are looking at applying different styling to chunks of text within one textframe (marked using a content tag), THAT is not possible, since the tagged content is supposed to maintain integrity of text and not the associated styling (which you should be able to apply independently).
    Hope that makes sense.
    Cheers,
    Vikas

  • Having trouble positioning text

    http://kurtesposito.com/contact.htm
    Looking for some help on how to position this text on this page. Not sure what I'm doing wrong. Also looking for helping on that horizontal strip of white running along the top of my image.
    Thanks

    You have some errors.
    Line 136, you are attempting to merge html and css...
    <img src="images/hurtlogo_original.png" height="80" width="329" float=left />
    float=left is not valid html or css. If you want the image floated left, you need to put it in a style attribute and format it as css...
    <img src="images/hurtlogo_original.png" height="80" width="329" style="float;left;" />
    You also have several line items (the <li> tags around line 139) that are not properly contained within a <ul> or <ol> tagset...
    <div id="nav">
    <ul>
    <li><a href="index.htm">Home</a></li><li><a href="about.htm">About</a></li><li><a href="portfolio.htm">Portfolio</a></li><li><a href="http://kurtesposito.com/blog/">Blog</a></li><li><a href="contact.htm">Contact</a></li>
    </ul>
    </div>
    As far as your original issue, not knowing how to position text, did you have some more information on what you wanted to do?
    I'm also not seeing white space with your image (I assume you mean the KurtLogo?).

  • How to center text within image

    If you go to http://www.terwax.com/bf2.html , youll see text in the left side. It took me enough time to center the image. Now that i created ap tag within div, i was able to put text but in every browser its different. Below is the code. Please help me find easy way that can center the text within image.
    <!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>Terwax - Battlefield</title>
    <style type="text/css">
    body {
         background-color: #333;
         height:inherit;
         width:inherit;
         margin-left: auto;
         margin-right: auto;
         text-align: center;
    #apDiv1 {
         position:absolute;
         width:753px;
         height:110px;
         z-index:1;
         left: 286px;
         top: 174px;
         overflow: visible;
         text-justify: auto;
    </style>
    </head>
    <body>
    <div>
        <img src="images/import.png" alt="back" width="1288" height="992" align="middle" />
        <div id="apDiv1">Thanks for coming to the site. I am currently working on it. This isn't finished yet and a lot of graphics to come! Keep checking back and if you don't like or like something, make sure to hit me an email at [email protected] .</div>
    </div>
    <p> </p>
    </body>
    </html>

    Terwax.com wrote:
    That code didn't fix the problem
    It just moved the text right to the bottom of page. Last time i did this, the text was static. It couldn't be highlighted.
    I know there are tutorials, but i just need help with this as i can finish the website. I am doing all the tutorials currently (lynda.com), but its a long way from now and will be happy if someone can help me get the text in the grey box rather than falling out of it.
    Try the code below in IE9. It should work if the browser is backwards compliant. I'll be amzed if it doesn't. Unfortunately I don't have IE9 available to test in. Didn't even know it was available. Is it a beta version of the browser which maybe hasn't been fully tested yet?
    <!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>Terwax - Battlefield</title>
    <style type="text/css">
    body {
        background-color: #333;
    #imageWrapper {
    position: relative;
    width: 1288px;
    margin: 0 auto;
    #apDiv1 {
        position:absolute;
        width:753px;
        left: 270px;
        top: 174px;
    </style>
    </head>
    <body>
    <div id="imageWrapper">
        <img src="images/import.png" alt="back" width="1288" height="992" align="middle" />
        <div id="apDiv1">Thanks for coming to the site. I am currently working on it. This isn't finished yet and a lot of graphics to come! Keep checking back and if you don't like or like something, make sure to hit me an email at [email protected] .</div>
    </div>
    </body>
    </html>

  • Changing text within frames without adding space at bottom

    Anyone know if there's a method for changing text within frames so that the successive text automatically flows into position without creating blank space at bottom of that current or a subsequent frame?

    Peter,
    You can combine the discussions if you want.  I actually deleted a sentence beginning the second discussion explaining that it was related to the first.  I thought it might impede the discussion.
    Let me describe my problem more completely.  I'm adjusting a book that was carefully crafted using frames for each page so that the text extended to the bottom of each page (frame).  This often splits text within a paragraph between two pages.  This was done so that the customer doesn't feel they are purchasing any blank space and for the aesthetic purpose of filling each page with text.  The only exception is the beginning of new chapters or sections.
    The problem is that I want to change a word here and there in preexisting paragraphs.  When I do, space often one-third the page length is generated at the bottom of a page (frame).  To fill that space and extend text to the bottom of the page again requires -given my current understanding of options- selecting the paragraph (beginning on one page and completed on the second) that has become interrupted by the blank space and performing a "keep lines together" option.  Unfortunately, this usually generates new blank space on a subsequent page, requiring a new "keep lines together"; in a seemingly unending regress of this procedure.
    What I require is a method enabling me to add text within a paragraph that will avoid the generation of the blank space by flowing the subsequent text (composing one or more paragraphs and splitting a paragraph between pages if required) to the end of the page; completely filling the page without requiring any use of "keep options" or whatever.
    Richard

  • I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content)

    I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content) is there a fix to this problem? using 8.1, Monitor is a high res.2560x1440.

    Another View.
    the GUI is so hard to read (so small) I enlarge my Ps UI by the instructions below...which helped a lot.

  • How can I position text vertically in a Numbers spreadsheet cell?

    Hi,
    I would like to position text in a series of Numbers cells in a vertical direction to reduce the width of the spreadsheet.  I can't find a way of doing this using the inspector or fonts panels?  Can anyone suggest a solution?
    Thanks in advance

    Is it so tiring to use the Search tool before asking a question ?
    Yours was asked and responded many times.
    Sometimes I wonder if I'm right when I think that human brain is more efficient than computers.
    These dumb machines are able to search by themselves and give links to some existing answers in the "More Like This" box !
    Yvan KOENIG (VALLAURIS, France) mardi 17 mai 2011 17:39:25

  • How can I detect a certain text within a field within CASE using IF

    Dear all,
    for a transformation / generation of values receiving from R/3 into BW I try to
    manupulate three fields. I have a problem detecting a string in a field.
    I am using a CASE with several WHEN clauses on one field. Depending on the
    value, an IF is integrated. There I look into another field evaluating, if it contains
    a certain string. E.g. IF STRING CP 'xyz' OR 'abc'.
    System gives error for the locigal expression. I also tried CS, but same error.
    How can I detect a certain text within a field and which is the right logical
    expression.
    Many thanks in advance!!!
    Claudia

    Hi,
    Folow the blow example...
    May be it helps....
    DATA: hex1 TYPE string,
          hex2 TYPE string.
    hex1 = 'FFFF'.
    hex2 = '123FF'.
    IF hex1 CP hex2.
    ENDIF.
    Cheers,
    SImha.

  • Box in  Sap Script and text within

    Hi,
    I want to create a box at the end of the main window and text within it.
    The main window can end at 1st page itself or it can be extended to second page based on the articles. So the box should appear at the end of the last article in the main window.
    and also i would like to know, how do we write text in a box.
    Could any1 help me out on this.
    Thanks

    You can create a variable window in the main window.
    You can restrict the last item of the main window by varying the size of main window. In your wite-form ,
    CALL FUNCTION 'WRITE_FORM'
          EXPORTING
             element                  = 'ITEM'
          function                 = 'SET'
          type                     = 'BODY'
          window                   = 'MAIN'
          EXCEPTIONS
            element                  = 1
            function                 = 2
            type                     = 3
            unopened                 = 4
            unstarted                = 5
            window                   = 6
            bad_pageformat_for_print = 7
            spool_error              = 8
            codepage                 = 9
            OTHERS                   = 10.
        IF sy-subrc <> 0.
    DO this. in the bottom of the main window, create a variable window.
    you can add your text in the variable window inside main window.
    it will be displayed just after the item ends.
    Reagrds,
    Pritha.
    Message was edited by:
            Pritha Agrawal

  • Is there a way to find text within InDesign documents in a search using windows environment?

    We are working in Windows and transitioning from using Word to InDesign for our documents.  InDesign documents do not show up in the results when trying to search for a file name or file contents. How can we search for specific text within our InDesign documents?  Any suggestions would be greatly appreciated.

    http://markzware.com/products/pagezephyr-search/

  • Style sheet changing when applied to text within a table

    Hi everyone,
    I'm using ID CS2.
    I've defined a paragraph style sheet with the regular weight of a certain typeface, however when I apply this style to text within a table, the typeface changes to the bold version of the font even though the regular version is specified in the style.
    Does anyone know if this is a known issue with styles being applied to tables or is it a sign of a corrupt file or something? Is there a fix?
    Thanks

    Is there a character style applied to the table or text in the table. I had many issues with this over-riding my paragraph style.

  • How do I Create a Hyperlink to other text within same email?

    I want to use Mail to send out Newsletters.
    Content section would contain hyperlinked text to each section (or Heading in PC world) below.
    How do I create a hyperlink to text within the same email?
    It's not hard to do in the PC world, how about the Mac world?
    I bought the book "Mac OS X 10.5 (ISBN: 978-0-321-50263-6) and it does not help with this matter but I've also asked the question at www.ExplainMyBook.com because I thought the book "Mac OS X 10.5 Leopard" might help me out.

    not possible AFAIK. Mail html capabilities are pretty rudimentary and this is one of the things it can't do. You might be able to achieve it if you create an html file with such internal anchors in a some html editor, then open that file in safari and embed it into an outgoing email from there. i couldn't make it to work though when I tried.
    You should probably stick with a different email client if you want things like that. I know Thunderbird can do it for example.

Maybe you are looking for

  • Printed Documentation Research

    I would like to put some proposals to Adobe to let them know well or otherwise the current workflow for producing a printed document works for you. Also what do you particularly like or dislike, things you want to do but cannot. I would welcome your

  • App does not show up when I search for it in Apps on Iphone

    Hi All, When I search for "My Vodafone" App in Apps on my iphone 5 I only get "My Vodafone (NZ)", New Zealand. I want the one for Ireland and I know it exists. I live in Ireland, my phone was bought in Ireland. How do I find the Irish version of "My

  • Creating a background sign?

    i have a scene taking place in a hollywood office, and i'd like to create a sign, like the hollywood sign behind them or maybe a bunch of buildings behind them. how do i do this? kinda new to fcp and studio....

  • Jsp usebean sharing issues

    Hi, I am using a bean called productTransfer in two different JSP's: JSP 1: <jsp:useBean id="transferbean" class="transactions.productTransfer" scope="session"/> JSP 2: <jsp:useBean id="invTransfer" class="transactions.productTransfer" scope="session

  • Opening .psd Files from cs3 In CS5?

    I'm new to photoshop CS5 and I'm getting this error on some PSD files "Could not complete your request because it is not a valid photoshop document" and I think its because these .psd files were made/saved in CS3. So is there any way I can open CS3 .