Applying h1 format

When I try to apply <h1> format text by selecting it in the design window, and then clicking Heading 1 in the properties window drop down, The <h1> encloses all of my body elements. How do I get around this? My page has almost no <p></p> tags. I'm thinking that may be the problem. Maybe I need to think of the page more like a text document and break "thoughts" with paragraphs.

I try to never restate a default value in my styles.  When you say this -
p {
          margin: 0px 16px 0px 16px;
          padding: 0px;
          font-size: 16px;
          text-align: justify;
          font-weight: normal;
all you really need to say is this -
p {
          margin: 0px 16px 0px 16px;
          font-size: 16px;
          text-align: justify;
(unless you have previously specified a rule that would add padding or weight to a <p> tag by the cascade)
Now - for something like your FAQ, I tend to always use a definition list instead of the generic tags you have used, since it's the perfect sematic container for this particular information.  Thus, I would have -
<dl>
  <h1>Lash-It Frequently Asked Questions</h1>
  <dt>HOW ARE THE CLEATS ATTACHED?</dt>
  <dd>They're self-adhesive. You peel away their backer sheet and press them in place. The tape is 3M Brand VHB (Very High Bond). It's similar to the tapes used to attach body side moldings to cars. It's super tough and sticky.</dd>
  <dt>DO THEY STICK? TEST YOUR SURFACE.</dt>
  <dd>I guarantee they will stick and stay stuck. Follow the installation instructions, and you should have no problems. Make sure that the surfaces you stick the cleats to are clean, dry, and free of any type of surface protectant. Testing with duct tape is an easy way to determine if your surface is ready for Lash-It™ cleats. If duct tapes sticks good, then the cleats will too. If the duck tape doesn't stick, then you need to clean the surface better. See instructions below for what to do to remove surface protectants like 303 Brand UV Protectant.</dd>
  <dt>A WORD OF CAUTION:</dt>
  <dd>On painted surfaces the quality of the adhesion is only as good as the quality of the paint bond. Lash-It™ cleats will stick to paint, but the tension applied to the cleats may eventually pull the paint off of the hull. Recoated polyurethane surfaces are notorious for bonding poorly. In my own experience, I recoated the inside of my wooden canoe with polyurethane, applied new Lash-Its™, and a few of the cleats pulled off. Upon inspection, I found that the cleats stuck impeccably to the poly, it was the new coat poly that failed to adhere to the old coat of poly. I would suggest you sand away any multiple layers of paint or varnish before you apply Lash-It™ cleats.</dd>
</dl>
Then you could style this FAQ by specifically targeting the component tags.  In other words, you could target the <h1> tag with this selector -
dl h1 { ... }
which would ONLY apply to that FAQ <h1> (assuming you don't have another <h1> tag in another definition list on the page).
And, you can target the FAQ Questions with this selector -
dt { ... }
thereby adding clarity to your CSS and avoiding the need to create additional classes.
Finally you get the benefit of the inherent styling of the definition list (the indentation), and you overcome the invalid/awkward usages you have in your current markup (multiple <br> tags, and improperly closed <p> tags).

Similar Messages

  • How do I apply conditional formatting using SharePoint Designer 2013?

    I'm attempting to apply Conditional Formatting to a list view web part via SharePoint Designer 2013, and I can't seem to find the option to do so.
    I've a horrible feeling I'm just being daft, but here's what I've done so far:
    - Created a new page (I've tried both web part and wiki)
    - Added a list "App part" and saved the page
    - Checked-out and opened the page via Designer
    - Clicked the "Edit file" option
    - Selected the XsltListViewWebPart tag
    So far I can't find any options to add it. If I open the Conditional Formatting pane via the View menu it tells me the following:
    > To use conditional formatting, select an HTML tag, data value, or
    > range of text, and then click Create to specify formatting options.
    I've tried selecting the web part tags in all manner of combinations with no luck. In previous version I would have simply selected the previewed data rows in the now-absent Preview pane.
    Am I missing something?

    Create and edit a Wiki Page
    Click Inset > Data View and Select “Empty Data View”
    Click Inside the <DataSources> tags </DataSources>
    Click Insert > Data Source “Your Data Source Name”
    Hold down Ctrl button and select the Rows in the order you want them to appear from your “Data Source Details” Window.
    After the Rows are selected click on the drop down “Insert Selected Fields as…” at the top of the “Data Source Details” Window. 
    Select “Multiple Item View” option (This will create the xsl where we need to add the conditional formatting to)
    Find the <tr> tag that contains the Row Data.  Insert the following right below the <tr> tag:
    <xsl:attribute name="style">
    <xsl:if test="@FieldName = 'Something'">background-color: #FF0000;</xsl:if>
    </xsl:attribute>
    I hope this helps.  I figured this out by using the old 2010 Designer to figure out the where to place the code and how to do this.

  • How to apply text formatting immediately?

    Hello!
    I apply text formatting to the empty newly created text flow. It seems to be strange that the formatting is not applied immediately, but when I start editing.
    The small sample demonstrates the problem.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml"layout="
    vertical"creationComplete="onCreationComplete()"
    >
    <mx:Script>
    <![CDATA[
    import flashx.textLayout.events.FlowOperationEvent; 
    import flashx.textLayout.formats.ITextLayoutFormat; 
    import flash.text.engine.RenderingMode; 
    import flash.text.engine.FontLookup; 
    import flashx.textLayout.formats.TextLayoutFormat; 
    import mx.controls.SWFLoader; 
    import flashx.textLayout.edit.EditManager; 
    import flashx.textLayout.container.ContainerController; 
    import flashx.textLayout.elements.TextFlow; 
    private var textFlow:TextFlow; 
    private function onCreationComplete():void { 
    var container:Sprite = new Sprite();canvas.rawChildren.addChild(container);
    var containerController:ContainerController = new ContainerController(container, canvas.width, canvas.height);textFlow=
    new TextFlow();textFlow.flowComposer.addController(containerController);
    textFlow.interactionManager=
    new EditManager();textFlow.flowComposer.updateAllControllers();
    private function onClick():void { 
    var charFormat:TextLayoutFormat = new TextLayoutFormat(); 
    var containerFormat:TextLayoutFormat = new TextLayoutFormat(); 
    var paragraphFormat:TextLayoutFormat = new TextLayoutFormat();charFormat.fontSize=36;
    textFlow.interactionManager.selectAll();
    (textFlow.interactionManager
    as EditManager).applyFormat(charFormat, paragraphFormat, containerFormat);textFlow.interactionManager.refreshSelection();
    textFlow.flowComposer.updateAllControllers();
    ]]>
    </mx:Script>
    <mx:Canvas id="canvas"width="
    200"height="
    200" borderStyle="solid"/>
    <mx:Button id="button"label="
    Push me"click="onClick()"
    />
    </mx:Application>
    When you click the button new font size is set. But the cursor in text field is not changed to a bigger one until I start editing. Also if to look at the textFlow internals in debugger you can see that new font size is not set...
    How can I force this?
    Kind Regards

    This is arguably a bug with a few things conspiring to cause the problem.  The general idea is that each paragraph ends with a paragraph terminator and the final terminator isn't selectable - that seems to be the core of the problem.  The other conspirator is that with a point selection character level format changes aren't applied until the next character is entered.  So with an empty document you always have a point selection. I could see character level format changes applying instantly to empty paragraphs.  I'll file a bug for more investigation.
    As for workarounds - well there's always direction model calls - just set the format directly on the span.  Another possibility would be to detected exactly this case and insert a character and then undo it.
    Note in your sample code the refreshSelection and updateAllControllers calls after applyFormat are redundant and can be safely removed.  Also any of the formats passed to applyFormat can be null.
    Hope that helps,
    Richard

  • Apply conditional formatting for a textbox in a matrix that contains an expression

    I have a matrix that contains one row, and one of the columns in this row (a field ) contains an expression. I know this field is "Textbox24" but anyway, I have created a placeholder for this field and in Placeholder Properties I have given the
    label "PD". Note that the Value in this placeholder shows "Expr" because it contains an expression.
    I don't think this is relevant, but just in case, the expression is:
    =Code.GetPercentageDifferenceBetweenCurrentAndPreviousValue()
    where GetPercentageDifferenceBetweenCurrentAndPreviousValue is custom code for the report which returns a decimal value. This works correctly in Preview mode.
    I now want to apply conditional formatting on this field so the colour of the font changes depending on the value of the expression. I clicked on the text box of that field, and in Properties > Color > Expression > I entered
    =IIF(Fields!PD.Value >= 50,"Green","Black")
    When I go to Preview mode I get the error "The Color expression for the text box 'Textbox24' refers to the field 'PD'. Report item expression can only refer to fields within the current dataset scope or, if inside an aggregate, the specified
    data set."
    I have tried a couple of other forms of the sytax for Fields!PD.Value but it doesn't work. Is my problem a syntax problem or a scope problem, and how do I solve it?
    Thank you

    From your description, PD is not a field so you cannot reference it as a field. You can do what you want by referring to the textbox:
    =IIf(ReportItems!Textbox24.Value >= 50."Green","Black")
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.? I want to alter the formatting (i.e., text and/or cell background color), but not cell content.

    Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.?
    I want to alter the formatting (i.e., text and/or cell background color), but not the content, of the target cell(s).

    Hi Tom,
    Your LOOKUP formula will return a value that it finds in the "other" table. That value can be used in conditional highlighting rules. (Numbers 3 calls it conditional highlighting, not conditional formatting. Just to keep us awake, I guess, but it works the same).
    Please explain what you are trying to do.
    Regards,
    Ian.

  • Apply character formats in the Marker window

    We need the ability to apply character formats (including superscript and subscript) in the Marker window. I use this feature to generate LOM files, which are greatly helpful, but after generation, I must edit the file directly to apply character tags to individual items to correspond with the style of the text from which the markers have been generated.
    For example, I have a list of warnings at the beginning of my book. I place a marker in each warning in the chapters to generate the list of markers. Some of the warnings in the chapters contain the product name which includes an Italic character and a superscript registration character. (The client's style is to use the registration character at every instance.) When I place the text in the Marker window, I have no way to include the character formats for Italics and superscript. Therefore, when the list of warnings is generated, the product name is not styled correctly, and I must edit every instance in that file--every time I generate for a revision.
    If the Marker window would accept character format codes like the Variable window does, the problem would be solved.

    I've never done a LOM, but if you are pulling across text at the marker, and LOMs work like TOCs, try the following.
    Apply a Character format to the source text with the attributes you need.
    Make sure that format also exists in the Character Catalog of the LOM file.
    In the case of TOCs, this causes the TOC lines to use that Character format (as defined in the TOC, as long as the format name is the exactly the same).

  • Unable to apply color formatting to document library custom view using javascript

    Hello,
    I have applied color formatting to some values in Document library at "Allitems.aspx" page.
    Created one view where record of library displaying as per sort rule and trying to apply the color formatting on that view, but its not getting apply.
    also tried to insert that list as web part in one page with the same view(created by me) and tried applying color..but not working.
    I used below script for color formatting, included in script editor web part:
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function()
    $Text = $("td.ms-cellstyle.ms-vb2:contains('Very limited risk - acceptable A')");
    $Text.css("background-color", "#7FFF00");
    $Text = $("td.ms-cellstyle.ms-vb2:contains('Measures Required (in 6 months) - M')");
    $Text.css("background-color", "#D2691E");
    $Text = $("td.ms-cellstyle.ms-vb2:contains('Immediate measures required - I')");
    $Text.css("background-color", "#6495ED");
    $Text = $("td.ms-cellstyle.ms-vb2:contains(Stop work until measures are taken - S)");
    $Text.css("background-color", "#DC143C");
    </script>
    Could please suggest a way out.
    Thanking you in advance.
    Regards,
    Jayashri

    Hi Jayashri,
    Follow the steps to debug your JS code, preferable in IE browser
    Press F12 to open your developer tool
    Select Script tab
    Search for your code, set debugger point by clicking on the left extreme position on line numbers
    Click on Start debugging at top, if its not there in your browser just refresh the page, it will hit the debug point.
    Hope it will help you in debugging your code, if you need any further details about debugging this, mail me @
    [email protected]
    Thanks
    Shakir

  • Apply a format mask in OA Personalisation

    Hi,
    Can anyone tell me if it's possible to apply a format mask to a number field using OA Personalisation? I'd like to change the format mask of the amount fields on the Purchasing Requisitions page.
    Thanks in advance for your help.

    Hi,
    Which type of format mask you want you didn't specfy, please refer Topic Numbers/Currency in JDev guide.
    Please check if this programming unit helps.
    public String roundOffToTwoDigit(String number)
    DecimalFormat formatter= new DecimalFormat("###.##");
    double numberD = Double.parseDouble(number);
    return formatter.format(numberD);
    public double roundOffToTwoDigit(double number)
    try
    DecimalFormat formatter= new DecimalFormat("#.00");
    formatter.setMaximumFractionDigits(2);
    formatter.setMinimumFractionDigits(2);
    return new Double(formatter.format(number)).doubleValue();
    catch(java.lang.NumberFormatException e)
    e.printStackTrace();
    return 0.0;
    Regards,
    Reetesh Sharma

  • Apply conditional format to hierarchy groups

    Hi experts!
    (Using obiee 11.1.1.5.0)
    I have a report that it has 3 columns
    Hierarchical Column // Actual // Diference
    Hierarchical column has different calc groups and when I have created this group with Format Option I fill format that I want.
    Now I want to apply same format in Actual and Difference column.
    I can't do that with conditional format in answers Actual Column because I can't see this group.
    How can I achieve this??
    Thanks!!

    My group of hierarchy is a new step in selection steps on table (add new group calc). When I create this new group I can put format (only in this group) but I don't know how to reference Actual column to this group.
    Any help?

  • Apply source formatting doesnt work for php

    for whatever reason i cannot get Apply Source Formatting to
    reformat any of my PHP code
    i have my files saved as .php, i have my php tags at the
    beginning and end of the document, and i also have Code Coloring
    set to PHP
    is there something i am missing? how can i let dreamweaver
    know that i am using php otherwise?

    Dang - it works for me. Or maybe I just thought it did.
    Apologies....
    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
    ==================
    "David Powers" <[email protected]> wrote in message
    news:f5tst1$c7a$[email protected]..
    > Murray *ACE* wrote:
    >> Which DW? It works for me in CS3 on
    XPPro/Vista/OSX10.4x (and in
    >> previous versions, too).
    >
    > Really, Murray? You must have a very special version of
    Dreamweaver.
    > Source formatting doesn't work with any server-side
    language or
    > JavaScript. It's something that coders have been asking
    for for a long
    > time. DW CS3 certainly doesn't format PHP in XP Pro.
    >
    > I suggest that the OP adds his/her voice to the request
    for source
    > formatting for non-HTML code by filling out the feature
    request form:
    >
    >
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    >
    > --
    > David Powers, Adobe Community Expert
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    > Author, "PHP Solutions" (friends of ED)
    >
    http://foundationphp.com/

  • "Apply Source Formatting" fails with FieldSets

    When I'm working with fieldsets, "Apply Source Formatting"
    seems to ignore the fieldset tag and stacks everything between the
    tags even with the left side of the fieldset indicating to me that
    it doesn't recognize it. Any fix for that?
    Dreamweaver 8.0.2

    Jack,
    Try Edit > Tag Libraries... and then edit the source
    formatting settings
    for HTML/fieldset.
    HTH,
    Randy
    > When I'm working with fieldsets, "Apply Source
    Formatting" seems to ignore the
    > fieldset tag and stacks everything between the tags even
    with the left side of
    > the fieldset indicating to me that it doesn't recognize
    it. Any fix for that?
    >
    > Dreamweaver 8.0.2

  • How to apply a format to all hyperlink in CS4 file

    Hello, this is my first post,
    We are writing a magazine that we will publish as a PDF. We would like all hyperlink to stand out (we created a character style with these attributes: Candara Bold, Dark Red). The magazine will have a lot of hyperlinks in the form of numbers ("go to section 145") so manually formatting them is our last resort.
    We could not find an option in CS4 to do so. Any idea? Maybe GREP rules? Something else?
    Thank you.

    If you were a bit more specific in your request, I think we could come up with better advice for you. John's seemingly less-than-helpful suggestion is, I think, actually the best solution if you are keying your text directly into ID. But we don't know how your magazine is being written (Word content placed correctly with File -> Place? copied and pasted from web browser? Google Docs? database?), so it's hard to make appropriate suggestions. If you're keying it in manually every time, do you have enough control over the people doing the keying so they type the same "go to section ###" everytime? Is there any chance that they'll say "please see section ###" instead? If so, and if it's easier to trust 'em to type it the same way everytime than it is to trust 'em to apply a character style, then maybe a GREP style is the way to go.
    If they are already set up as links in ID, then you can shift-select them all in the Hyperlinks panel and choose "Hyperlink Options" and associate 'em all with a character style in one go. This is completely obvious to me but once again we don't really know what it's like on your side.

  • Place Word table and apply defined formats in ID

    Hi,
    I have a Word file that contains text as well as tables. These tables are defined as table format in the Word file and I also have defined table formats in ID. Now I would like to place this Word file in ID and the table should automatically be formatted in ID according to my defined table formats. I know how this works with Excel files but I don't get it with the Word file. Any help is appreciated.
    Thanks
    Chantal

    InDesign doesn't automatically format imported text, it just imports it as good as it can. It does not format text, nor tables.
    Perhaps you were thinking of Table Styles? You can define as much as you like, but you have to apply them yourself, just like Paragraph Styles.

  • Applying date format??

    Hi
    Whenever I try to apply a date format from within the
    Bindings Panel it
    doesn't get set?
    I click on the date on the design page =
    <%=(rsNews.Fields.Item("NewsDato").Value)%>
    Then I go to Bindings Panel and choose = Date/Time / Long
    format ........
    and then nothing happends??
    Am I doing something wrong? It has always worked this way -
    but ....
    Helle :-(

    Can it have something to do with &lt;html:form&gt; ? Since it works using &lt;c:out value="${bindings.MyDate}"&gt;&lt;/c:out&gt; inside a html:form.

  • Apply conditional formatting when a report is exported to CSV format

    Hello
    OBIEE dasboard has the option to export the report data to CSV format.
    But the problem is that on some columns of the report, it uses various different types of conditional formatting that tells, what to display when data is equal to one of those edge cases. So hence the report on the dashboard page shows accordingly which is fine.
    But when the report is exported to CSV format, no conditional formatting is applied and all the raw data is shown without any formatting.
    Is there any way to make sure that the conditional formatting is applied even in the data exported to CSV format.
    thanks

    CSV is supposed to be a data dump .. i dont think you can have formatting saved when u download csv file.. try downloading it to excel and changing it to CSV

Maybe you are looking for

  • Missing XML files in Export of Portal Resource in WebCenter Portal App

    Using JDeveloper 11.1.1.5.0 1) Create a JSF fragment in the Portal Project/WebContent/oracle/webcenter/portalapp/pages -> untiltled3.jsff. 2) From the Component Palette -> Webcenter Content Display Templates, drag a Content Template Def onto the jsff

  • Weblogic Cluster and Perfoemance Reduction

              Hi All,           Is there a performance reduction caused by using Weblogic Clustering?           I am experiencing much slower performance in my clustered           environment compared to my non-clustered environment. They           are b

  • No Sound For Yahoo Games

    I am new to using the Beta version of Safari for Windows. Everything is working fine so far except when I try to play some games in Yahoo there is no sound. The game loads and plays fine, but no sound. I have installed all of the plug-ins as recommen

  • New SSRS 2012 Service Application Fails to Upgrade ReportServer Database

    Hi -  I am in the middle of an SSRS upgrade from 2008R2 to 2012, SP 2010 integrated, without upgrading the database engine. This is on my DEV environment. I am running into problems when I add the new SQL Server Reporting Services Service Application

  • IBM U2 Universe JDBC or ODBC, Can't connect

    Hi, I can't find a definite answer on the forums, so I will post this here. I'm trying to set up a JDBC or ODBC connection to a Universe 10.0 database. I've been able to setup both the ODBC and JDBC drivers in other programs, but coldfusion still isn