Snippets Problem: HTML ID changes when pasted twice or more

Hi there,
I have an external CSS style sheet in a website that formats elements in a snippet. However, when I paste a snippet more than once, the ID field receives a number. For example, the first snippet will post with an element as <td id="Title">, while the second paste will cause it to be <td id="Title2">. The CSS sheet only knows to format elements with the ID "Title" so when I paste this more than once the ID changes.
Under normal circumstances, I would just edit the HTML code, however, the site is meant to be heavily template driven, and the second person managing it doesn't have time to edit/learn HTML code as they are busy with other tasks. For the moment, PHP/MySQL isn't an option either.
Is there a way to have pasted elements not include an additional number in the ID fields?
Thanks,
David

You can't technically use the same HTML id twice.
<div id="edgar"></div>
<div id="edgar"></div>
Is a no-no.
Use classes instead...
<div class="edgar"></div>
<div class="edgar"></div>
Your css would go from
#edgar {
     some attributes
to
.edgar {
     some attributes
EDIT: Or in your case <td id="Title"> to <td class="Title"> and in the CSS #Title to .Title

Similar Messages

  • Font changes when pasting between InDesign documents

    I'm copying and pasting the content of one InDesign CS5 document into another and am finding that the font of my general body text is changing from Times to Minion Pro.
    This occurs with all the following methods:
    Copy and Paste multiple text frames
    Copy and Paste single text frames
    Copy and Paste content of a text frame into a new text frame
    Drag and Dropping multiple text frames
    I can't see any option in Preferences or Character pallette along the lines of 'Paste Remembers Fonts' (in the same vein as 'Paste Remembers Layers'.
    I've change the default font in my existing documents to Times and also changed it with no documents open so all new documents have Times as the default.
    I've also changed the Basic Paragraph style font to Times.
    The correct paragraph styles already exist in both documents and remain in place when I copy and paste. Fonts for all other paragraph styles (eg headings etc) come across correctly, it's only my main body text that changes, with the font of the style showing as overidden.
    Of course, I can simply select all the pasted text and clear the overides but I'd rather solve the problem properly.
    One glimmer of hope: If I start another new document since changing the default font for new docs, the copy and paste retains my Times font.
    Any thoughts? Can I fix my existing document's bad habit or will I need to start again?

    When I paste the text frames, the paragraph styles remain intact but the font changes to the ID default, Minion Pro. When I click the Clear Overides button, the font reverts to the correct font for the style. There are no Character Style issues that are causing this, it seems purely related to the default font setting.
    However, I've found a nice simple solution that I should've tried in the first place. Now that I've set the defaults to what I want them to be and tested this with a new document (as mentioned in original post), it was simply a matter of doing a Save As to get those changes to apply to my existing document.
    Thanks for the input everyone.

  • Font size changes when pasting ito new layer

    Since I updated Phothoshop to CC a strange error occures. When I copy text from one layer and paste it into a new layer the font size changes. I have tried resetting the texttool but this has no effect. Does anybody know what the solution to this problem can be?
    OS 10.9.4, CC 2014

    This should not happen.
    Try duplicating the layer with Ctlr + J...

  • Problem with "Uncommited changes" when viewing certain rows in detail group

    Hi Guys,
    When I try to view an row in a detail group I get a popup box saying that there's uncommitted changes. This will happen even when there's no changes in the master group. It will also happen for all rows in the detail group except for the first row listed.
    e.g.:
    Master Group is department
    Detail group is employees
    The detail group will display:
    Employee 1
    Employee 2
    Employee 3...
    If I select to view the details for employee 1 it will go to the form view without any problems, if I select any other row (2,3,4..) I get a popup box warning that there's uncommitted changes on the current page.
    If I go into the form view of employee 3 (confirming that there's uncommitted changes on the current page as I do) and then use the breadcrumbs to go back to the department screen then Employee 3 is the only detail group row I can go into without getting the uncommitted changes popup.
    How is it possible that different rows in a detail group can cause this popup to happen?
    I am using JDev 10.1.3.2
    and the pages where generated by JHS 10.1.2.26
    Is it possible that when the radio button that is used to select a detail group is changed that this is showing up as an uncommitted change in the javascript?
    I need a fix for this urgently so a fast response would be greatly appreciated
    Bar

    Im using a custom method to stack the detail groups and Im missing the line that adds the radio button to the ignore list:
    #if (${JHS.service.generateJavaScript})
    <afh:script text="addToIgnoreChangedFields(['${group.name}:${group.name}Table:selected']);" id="${group.shortName}IgnoreChangedFields"/>
    #end
    is there a certain place to add this in the template?

  • Placement of objects on html page change when loaded to server

    I'm having an issue with the placement of my header on my "Gallery" page when it is uploaded to the server.  When I open the file in Firefox and Safari it opens normal, with the header on top and the images for each gallery below (I have yet to add links).  However when I access this page through the server in safari it flips the gallery images and header but NOT with Firefox.  As a note, I've played around with the css a bit trying to solve the problem and I could imitate the issue when I removed the absolute position from the div "gallerycontent".
    Here's the link
    http://frozentimephotos.com/english/gallery.html
    Thanks,
    Giuseppe

    Most browser rendering issues are code related.  Validate your code with the tools below and fix reported errors.
    Code Validation Tools
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    HINT:  You have 2 sets of <body> tags in your markup.  In code view, remove this from line 12:
    <body bgcolor="#000">
    And remove this from line 37:
    </body>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Color changes when pasting from Illustrator to Photoshop

    I have set both PS and Illustrator (both latest versions) to "North America Web/Internet".
    Both documents are RGB and have the sRGB IEC61966-1 profile.
    When I copy a square in Illustrator and paste it into PS
    RGB 19,78,110 (the color in Illustrator) changes to RGB 18,78,109.
    It doesn't matter whether I paste it as pixel, smart object or shape layer. The sampled color differs from that in Illustrator.
    Doesn't anyone have a solution to this?
    It's really unnerving when you do web mockups in Illustrator and then copy/paste to PS for image creation.

    This topic is similar to a post today in Mac Photoshop forum. When you copy+paste an Illustrator object with 3D effect from a RGB Illustrator file into an RGB Photoshop document, you get a quite an extreme color de-saturation (looked like a bright blue going dull from RGB to CMYK). Only occurs with active 3D effect. If you Expand Appearance, Flatten Transparency or Rasterize, then the original color is maintained.
    http://forums.adobe.com/thread/863273?tstart=0

  • Problem with times changing when synching to calendar

    when I sync my Ipod to my calendar program (Microsoft Outlook), the times change on the Ipod. EG, if something is on my Outlook calendar for 5 pm, it will show on my Ipod for 8 pm.

    In the Pages Preferences > Auto Correction deselect Automatic list detection.

  • Font changes when pasting

    My documents are in Times New Roman. I copy some Times New Roman text (either from
    the document I am working in, or from a different document). I paste
    it in. The paste-in appears in Helvetica!! This is despite the fact that
    the font setting, at the time of copying and pasting, is set on Times New Roman.
    Also, the font is set on Times New Roman in Preferences. Of course, I am able to
    highlight the paste-in, and change it to Times New Roman; but why doesn't it
    appear in Times New Roman in the first place?? Please help. Thank you.
    - Robert

    I found the thread that contains the extremely clever
    and clearly explained solution
    using the styles menu and text attributes. It worked.
    Thank you.
    - Robert

  • Trying to copy and paste objects in keynote 6 I only get a hyperlink when pasting. Anyone else having the same problem? is there anywhere I can change it so that the copied object is pasted directly into the new slide?

    Hi
    I am trying to copy one object from one lside to another slide in the same presentation. The only thing I get when pasting is a hyperink. Does anyone know how I can turn this off so that the image or the object is pasted as copied to the new slide?
    Thanks a lot

    there are some unexpected issues when copy and pasting.
    As a workaround, use duplicate slide to get the same object in another slide, (select the slide in navigator and command D or right click > duplicate)

  • Invalid URL when pasting YouTube URL into YouTube or HTML widgets?

    Any known fix for INVALID URL WHEN PASTING URL OR EMBED CODE INTO YOUTUBE AND HTML WIDGETS?
    And video doesn't play on the widget window but rather opens YouTube OUTSIDE of mu website separately!
    It appears A LOT of people have had this Problem!

    It's very simple.
    This is what you paste in the URL field of the YouTube widget :
    http://www.youtube.com/watch?v=cbvdzQ7uVPc
    And this is the embed code from the YT page. Paste it in a HTML Snippet.
    <iframe width="560" height="315" src="//www.youtube.com/embed/cbvdzQ7uVPc" frameborder="0" allowfullscreen></iframe>
    And in case you won't see anything in the HTML snippet, either publish the page to see the result or add http: before the //.
    As you can see I haven't a problem. Probably because I'm not a lot of people.

  • Posterous blog HTML Snippet problem - not all of blog is showing up...

    Good morning all! So I was looking for a solution for our newly formed website (I'm a novice) where I could have multiple users update our blog page without having to use iWeb to do it. I read up on Posterous and it appears this would be an ideal solution. So I found some code from another Apple Discussions poster, Alancito, that would pull my Posterous blog directly into the iWeb page I created. Well it has done that, sort of...
    I see the header from the blog, but the content isn't visable. Well, actually if you highlight the header or "blog differently" and then hold down like you're scrolling down the page, the info is there. But the HTML snippet always cuts it off. Even if I expand the size of the snippet in iWeb, it ALWAYS reverts back to this same size.
    I'm in a bind here and could really use some help.
    Here's the blog page address: http://www.sporkfoodwagon.com/SporkFoodWagon/Blog.html
    And here's the code I was provided.
    <iframe height="100%" allow transparency="true" frameborder="0" scrolling="no" style="width:100%;border=none" src="http://sporkfoodwagon.posterous.com/"></iframe>
    Message was edited by: andrewrichardson

    Andrew ~ Perhaps someone will suggest a solution to the HTML Snippet problem, but meanwhile, with this recent improvement to Posterous:
    http://blog.posterous.com/posterous-unveils-pages
    ...perhaps you don't need an iWeb site at all. If you must have one, consider linking to your Posterous blog directly from iWeb's navigation bar:
    Create a blank internal page titled "Blog" (actually you can name the page whatever you want.) Then in that Blog page add an HTML Snippet with the following code:
    <script type="text/javascript">
    parent.window.location = "http://www.yourblogname.com"; // change this to your own URL
    </script>
    ...Once published, clicking on "Blog" in the navbar will immediately redirect to your external Blog page. (Thanks to Cyclosaurus for the code).
    And to return from Posterous back to your iWeb site:
    http://blog.posterous.com/pages-20-add-links-to-your-sidebar

  • White balance doesn't change when I paste my copy.

    When I use preferences or copy paste, my white balance doesn't come with the paste or preference. Is there anybody who knows what could be the problem? (I've checked white balance in the box).

    Thanks a lot for your help!
    Op 22-mrt.-2015 15:29 schreef "Jao vdL" <[email protected]>:
        white balance doesn't change when I paste my copy.  created by Jao vdL
    <https://forums.adobe.com/people/Jao+vdL> in Photoshop Lightroom - View
    the full discussion <https://forums.adobe.com/message/7327391#7327391>

  • Indesign CC 2014 - Dictionary keeps changing to USA when pasting

    When pasting from 1 Indesign document to another, even though all Indesign preferences, styles used, text boxes that I'm pasting to and from and all text - is UK English, as soon as I paste, it changes to USA.  Default is UK (when I create a new text box as well).

    If the copied text and the destination insertion point had styles with the same names but different language definitions that could happen. Because the language is applied to characters and styles it can be hard to get every character in the same language when you are cutting and pasting.
    I use this AppleScript on both the source and destination documents when there's an unwanted language mix causing problems:
    tell application "Adobe InDesign CC 2014"
        set pstyles to all paragraph styles of active document
        repeat with i from 1 to number of items in pstyles
            try
                set applied language of item i of pstyles to "English: UK"
            end try
        end repeat
        set cstyles to all character styles of active document
        repeat with i from 1 to number of items in cstyles
            try
                set applied language of item i of cstyles to "English: UK"
            end try
        end repeat
        set applied language of every paragraph of every story of active document to "English: UK"
    end tell

  • Problem with internet. When i open System preferences, Network, message drops down: 'your network settings have been changed by another application'. I click OK, but it drops a message again and again, preventing me to do anything about the setting.

    Problem with internet. When i open System preferences, Network, message drops down: 'your network settings have been changed by another application'. I click OK, but it dropps the message again and again, preventing me to do anything about the setting.

    A Fix for "Your network preferences have been changed by another application" Error 
    In the Library/Preferences/SystemConfiguration/ folder delete the following:
    com.apple.airport.preferences.plist
    NetworkInterfaces.plist
    preferences.plist
    com.apple.nat.plist
    You will have to re-configure all your network settings since deleting.
    (10.4.10)
    Use Software Update to update your OS to last version of Tiger.  Install all the other updates that goes along w/it.

  • Graphic card problem maybe? Since when I have changed the hard drive to my macbook pro and I installed all the new softwares, my mac is very slow and the screen gives crazy pictures,could maybe be the graphic card, does anybody have experienced this?

    Graphic card problem maybe? Since when I have changed the hard drive to my macbook pro and I installed all the new softwares, my mac is very slow and the screen gives crazy pictures,could maybe be the graphic card, does anybody have experienced this?

    after a restart it works for a time, but always slow. I went to the Applestore this afternoon and the made a check and said it would be the logicboard and they would have to change it for CHF 600 and it would be ready in 10 - 15 days

Maybe you are looking for

  • World of Warcraft on a 800mhz emac running - read -

    Hi All I decided to put this on as i had searched around to see if this was possible but hadn't,t found really any answers. So hear it is. I installed WOW on my just purchased 800mhz emac 40gb H/Drive,CD ROM. 1GB RAM. Having only a cd rom i had to lo

  • Error messages in invoice pool (VF04)

    Hi! When i use transaction VF04 to invoice if there are any standard errors, the transaction ends all invoices and shows a report with a log of the errors; but the important is, that it finishes all the invoices. The problem is if i put some message

  • External USB Audio - huge problems!

    Hi I have *problems with my mb pro (mid 2009*, 2,8Ghz, 15'', 4Gb RAM) *and Native Instruments Audio 8 USB interface.* The interface works well when I use it on OS X 10.5.7 / 10.5.8, but there some spund quality problems, when I am using Audio 8 on Wi

  • Car adaptor to play mp3

    I was just wondering if there is an accessory for the X so I can play my mp3 from my phone in the car.  Thanks!

  • Single Sign On Partially Working Between Portal amd ECC.

    We are running ESS in EP 7 SP18 for ESS and some transactional iViews to an ECC 6 box with EHP3. We have SSO setup between the two, and it seems to be working for the most part. I have setup the JCo Destinations (both Application Data and Dictionary