Hyperlink text colour styles won't apply in master page

Hello,
I've applied hyperlinks and changed the link styles with ease in all of the content pages.  However, I'm unable to change anything on the master page.
All of the hyperlinks work - I am able to link to the content pages/emails - but none of the edit link styles will apply. 
But it's a bit wonky, I have had it apply, but completely randomly and only on 1 menu item.
I designed the menu from scratch, without the use of a widget.  I thought maybe it was that, so I made a widget menu, and I can't get it to apply any edit link styles as well.
All I want is a simple rollover where the text changes to a different colour.  This should be easy!
Please help if you can, it's driving me bonkers!
Thanks.
Matthew

maceyah wrote:
@fac586 - Would adding the CSS to page0 to make it's effect global be frowned upon?I'd certainly frown upon it. According to the relevant HTML 4.01 and XHTML 1.x standards, <tt>style</tt> and <tt>link rel="stylesheet"</tt> elements should only appear within the <tt>head</tt> element of a document.
IN HTML5 the new <tt>scoped</tt> attribute allows <tt>style</tt> to be used in a prescribed way elsewhere in the document, with the effect that the styling rules specified are only to be applied to the other descendant elements of that <tt>style</tt> element's parent. No browsers yet support this feature.
Current browsers apply CSS from <tt>style</tt> elements globally, regardless of where in the document it appears, and future HTML5-compliant ones will continue to do so for backwards compatibility.
As a standards-based developer I follow the specs and only put <tt>style</tt> and <tt>link</tt> elements in the page <tt>head</tt>. When browsers get round to supporting the <tt>scoped</tt> attribute I'll follow the standards for that as well if it's necessary to use it.
In APEX, Page 0 doesn't provide any normal means to create <tt>style</tt> elements in the <tt>head</tt> of the document so as to conform with the specs.
Why bother following the standards if the browser is going to apply styling irrespective of whether <tt>style</tt> elements conform or not? Mainly to provide a better user experience. Rendering a document that contains stylesheets in the body causes flickering and jumping of content as the browser re-renders already visible content affected by CSS rules found later in the document.

Similar Messages

  • How do you apply a master page to multiple documents at the same time?

    How do you apply a master page to multiple documents at the same time?

    Hi friends,
    Thank you for trying to help me out.
    Let me explain it a bit to remove the ambiguity.
    I have 10 documents nested under a book. Each of these documents have 'n' number of pages. I want to apply my custom made master page "First" to the first page of all these 10 documents in one go. The remaining pages of the documents have to be in default "Right" master page format. How will I do it?
    I tried selecting all the documents and importing the formats from another document with the custom made "First" master page. The master page format is getting imported but the first page of all the documents still remain with the default "Right" master page format.
    I think now my question is more clear...

  • Is there a way to apply a master page to even (or odd) pages in a long document?

    I'm taking a very simple, large pdf document and bringing it into InDesign to add some graphics. The pdf is actually a customized 2-page document for a large employee group (i.e. pages 1 and 2 are for employee001, pages 3 and 4 are for employee002, pages 5 and 6 are for employee003, etc.).
    I've found a script that allows me to bring in all the pages of the pdf at one time, provided I've set up the correct number of blank pages in InDesign. What I'm looking for now is a way to apply a master page to all even numbered pages at one time. Or all odd pages. Anyone have any ideas?
    Ideally, an option that would import the entire pdf document, add the appropriate number of pages to the InDesign document, and be able to assign different master pages to even and odd pages would rock! Help!

    for (var i=0;i<= PageLength-1;i++)
    var isEven = function(someNumber){
    return (someNumber%2 == 0) ? true : false;
    if(isEven(newDoc.pages.item(i).name) == true)
              //Apply Master B for right page
              newDoc.pages.item(i).appliedMaster = app.activeDocument.masterSpreads.item("B-Master");
    //Move elements by x, y position, script label ContactEmail
    newDoc.pages.item(i).pageItems.item("ContactEmail").move([0.7292, 6.011]);
    }else{
              //Apply Master A for left page
              newDoc.pages.item(i).appliedMaster = app.activeDocument.masterSpreads.item("A-Master");
    }//for Else
    }//For

  • Object appearing on pages applied with master page

    I'm doing a multi-page brochure and I've got all my master pages set up. on the odd pages applied with master page 'A,' a colored rectangle appears when I print that is not on screen on my master page 'A,' nor is it an object on those pages. it also appeared on a pdf that i sent out.
    I can't get rid of it! I've tried to delete the master page 'A' and create a new one (made a copy of a master that didn't have issues), then applied that to the odd pages. no luck.

    Thanks Al, you've been a busy ID user over the years. Me, I've only been using it for a couple years and I always seem to learn something new every day. Thanks for your help, and I'll continue to read further into the threads. There's always more than one way to skin a cat, we all know that, so there are multiple ways to fix the problem at hand. Some of my spreads hold large photos that actually go right through the spine of the spread, and yet the two pages of the spread can actually have 2 different master pages applied. So, I've got to figure out which way is best..whether its moving the master page items away from the spine or if splitting up the pages is better (not exactly sure how that will work yet with large spread photos). I'll look into it more later, when I have more time. Right now I'm on deadline (monthly magazine), and for a quick and easy fix, I can switch master pages off and just copy the master items over to each page spread where I need them.
    and thanks for the tip on Indesignsecrets.com. I didn't know they existed....and now I do, thanks! (too many websites...too little time!

  • Hyperlink text color style in only one div (others remain the same)

    I would like to make  color changes in hyperlink text but only in one div. I have the CSS coding for the style changes. How can I isolate these changes to one div only (kind of like the compound selector approach)?
    Thanks

    Ben's answer works well, when you want to label every link individually. It provides a more universal solution, but more time-consuming in the specific div in question.
    To affect every link in a div, give the div in question an id. Then, in the css stylesheet, use the id of the div in your style selector.
    Viz.:
    in the html:
    <div id="red_div"><a href="redLink.html">This is the red link</a></div>
    in the css:
    #red_div a {color: red;}
    Of course, you can make a more meaningful id.
    The advantage to this solution is that you can add more than one div to the selector (use a comma between), as:
    #red_div a,
    #other_div_that_I_want_red a {color: red;}
    Be sure that you place this selector in the css stylesheet BELOW any other definition for the link color, or it will be redefined by the other definition.

  • Everytime I copy pages from one ID CS3 doc to another, it re-applies the master page objects!!

    Please Help,
    This is a topic I would really like to get to the bottom of.
    We have InDesign CS3 templates for creating our reports.
    These templates contain around 10 different master pages with grey placeholder image boxes and text boxes with dummy text.
    When we copy pages from one ID document to another, all the master page objects that were originally assigned to the pages are re-applied!!
    Resulting in lots of grey dummy boxes and text boxes re-appearing on top of the page items!!
    It's so annoying because we always customise the pages once we've pulled down master pages to work on, so when we copy pages across to other documents we have to apply the blank master to be able to kick out all the master objects easily.  Then we need to add the page numbers and footers back onto the blank master page.
    My question is, is there a way to switch this off, so when I move or copy pages from one document to another, nothing happens relating to master page objects, the pages simply just copy across as they are?
    Please help!  If not I may have to ask an external developer to write a script to fix this, it drives 900 of us crazy!
    thanks in advance for any help.
    Or am I just being ridiculous and not actually realising you can switch this off, doh!
    G

    Just a bit of further clarification on this issue (very few people really understand what's going on with master pages and overridden master page items):
    When you override a master page item, the object is moved to a local page, but a connection is maintained with the original master page item. This a) allows for the override to be removed (and return the object to its original state). This also, b) allows for changes made to the original master page item (other than the changes made to the local item from the point that it was overridden) to effect the local item as well.
    When the connection to the master page item cannot be maintained, the local item gets disconnected totally from the master page, and becomes a regular, run-of-the-mill page item.
    In light of this, there's three ways you can end up with duplicate master items:
    Reapplying a master page (or applying a new one). When you reapply a master, all overridden master page items get detached from the master, and the original mster page item appears again in its original state. Most of the time this produces unwanted duplication of objects. To fix up your page, you have two options: a) Delete the master page item, and b) copying the contents of the original to the new master page item. The disadvantage of "a" is that you end up with an item which is totally detached from the master, and changing the item on the master will have no effect on the local item. The disadavantage of "b" is that it's a lot of work...
    Moving a page to a different document. When you move a page to a different document which has the same master as the one originally applied, the master in the new doc is applied, and the effects are identical to reapplying a master page (i.e. overridden objects are detached). If the applied master (i.e. a master with the same name) does not exist in the new doc, the master is transferred over to the new doc along with the page, and the connections to the master page are preserved (well, re-created actually...). The workarounds in case #1 apply here as well.
    When page sides change in a document, the objects on the facing page appears.
    What happens here is a bit confusing, but here's an approximate explanation:
    When you apply a master to a page or spread in InDesign, what you are actually doing is applying an entire spread to an individual page. You can thing of a master spread as an overlay (or more precisely: underlay) on the page with a window cut out to the exact page dimensions.
    When the page side changes that "window cut-out" shifts to show the master spread items which correspond to the position within the spread of your current page (i.e. recto or verso). All objects which exist outside the window shift out of view (but still exist!).
    When an object is overridden, the position of the object is defined by its location on the local page, NOT its position on the master spread. When the page then changes sides, the object remains where it was on the page (even though the object it's connected to on the master spread moves out of the window of view). A corresponding object on the facing page of the master (if it exists) will then show in addition to the overridden one.
    Now remember: contrary to the first two cases, both objects are based on master ones: one visible one and one invisible one.
    Dealing with this third case requires much more care than the first two.
    The obvious way to deal with this would be similar to the first two, but if you remove the local object and transfer the content to the new maste object, the invisible master object on the non-visible page was actually removed, so when the page sides change again, the object will now be connected to the now-invisible master page item, and the correct master page item will be gone!
    The "correct" way to deal with this would be to transfer the content to the new master page item and remove overrides (not delete!) on the local item (which will make it disappear, because it moves back to the invisible page). Of course, when page sides change again, it becomes necessary to repeat the entire process.
    If the local object gets deleted, then your master spread is missing objects with no visible indicator of the fact. This can lead to confusion when the document might be edited at some later point in time.
    I believe that this complicated and un-intuitive behavior of master pages is part of the reason people tend to avoid using master page items. Documents tend to get messed up in really odd ways... It's a real shame, because extensive use of master page items has a lot of potential for streamlining workflows and saving an awful lot of time. This behavior really puts a damper on really using master pages as templates.
    Getting master page items to work the way they "should" was a big part of what I was trying to accomplish with AutoFlow Pro... When the master page items are defined as such (i.e. given a unique name), AutoFlow Pro solves all three of the above issues by keeping overridden master page items connected to the master page items on the currently applied master (and when a new master is applied as well!).
    (When I have a bit of spare time, I think I'll write this up on my blog with some visuals to make this easier to grasp...)
    Harbs

  • Apply custom master page for a new sub site in programming

    Hi;
    How Apply a custom master page for a new subsite ?
    My code is as follows but it not working : the master page is not applied ?
    SPWeb newSite = web.Webs.Add(name, name, name, Convert.ToUInt16(1036), "{815BF557-AFE0-42B4-92A1-A8A56011EDBF}#LaPoste.DTC.ModeleSite", false, false);
    newSite.AllProperties["__InheritsCustomMasterUrl"] = "False";
    newSite.CustomMasterUrl = "/_catalogs/masterpage/iDtc/iDtcGeneric.master";
    newSite.AllowUnsafeUpdates = true;
    newSite.Update();
    Regards

    try this:
    foreach (SPWeb site in siteCollection.AllWebs) {
    if (site.Title.ToString() == "Reporting Portal")
    site.MasterUrl = WebAppRelativePath + "_catalogs/masterpage/Branding101.master";
    //site.CustomMasterUrl = WebAppRelativePath + "_catalogs/masterpage/Branding101.master";
    site.AlternateCssUrl = WebAppRelativePath + "Style%20Library/Branding101/Styles.css";
    site.SiteLogoUrl = WebAppRelativePath + "Style%20Library/Branding101/Images/Logo.gif";
    site.UIVersion = 4;
    site.UIVersionConfigurationEnabled = false;
    site.Update();

  • Sharepoint 2013 - Error while applying custom master page.

    I am getting following error on my sharepoint 2013 site on applying a custom master page.
    System.ArgumentNullException: Value cannot be null.  Parameter name: ribbon    at Microsoft.SharePoint.WebControls.RibbonTrimmer..ctor(SPRibbon ribbon)     at Microsoft.SharePoint.WebControls.SPPageStateControl.OnInit(EventArgs e)
        at System.Web.UI.Control.InitRecursive(Control namingContainer)     at System.Web.UI.Control.AddedControl(Control control, Int32 index)     at Microsoft.SharePoint.WebPartPages.WikiEditPage.OnLoad(EventArgs e)    
    at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Does anyone know whats wrong with my custom master page?

    Hi,
    please check if its properly deployed.
    Refer the similar thread below.
    http://social.technet.microsoft.com/Forums/en-US/f07ce2f6-6607-4764-8c12-10de4ae1d635/systemargumentnullexception-value-cannot-be-null-parameter-name-ribbon?forum=sharepointgeneralprevious
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Can't apply some master pages to topics

    Hello,
    I have already logged a bug report on this, but I am hoping that someone else has encountered it and has a suggested workaround. I have searched the forums, but I didn't see this issue. We recently upgraded to RoboHelp 8, and we have installed 8.0.1.
    Our help projects typically include multiple master pages (formerly called "templates"). Most topics use the main master page, but a few need to use one of our other master pages that is geared toward a different type of user. Most of our projects have at least 3 master pages.
    After conversion from X5 to RoboHelp 8, in some of our help projects, we cannot apply the lesser-used master pages to topics. We can right-click the topic name or within the Design window and open the Topic Properties, and we can select the correct master page, either from the drop-down list or by clicking the Browse button, and we can click Apply. Initially, the topic will show the master page as being selected; however, the header from that master page will not appear grayed out in the Design window for the topic as it should, and when you save and close the topic, the master page is no longer selected for it. This problem does not occur if I select the master page that is used for most topics; that one gets selected and applied correctly.
    This problem has happened to me and to 2 of my coworkers. I got my problem topics and templates to work, but I tried many things repeatedly and cannot pinpoint what made the problem stop happening. I am currently trying to solve the problem in a coworker's project without success.
    Things I have tried:
    1. Deleting and reimporting the master pages that are not working. (When I do this, RoboHelp crashes.)
    2. Comparing the code of the non-working master pages to the code of the master page that does work. I saw no problems.
    3. Deleting the cpd file while the project was closed and then reopening.
    4. Manually changing the tags that appear in the code of the topics to see if I can fool RoboHelp into recognizing the master page. I tried putting in the meta tag and header placeholder tags, but this did not work.
    Has anyone run into this, and if so, have you found a workaround?
    Thank you,
    Tammy

    This was our error, not RoboHelp's. After trying several different things yesterday, I compared the code of a working master page to that of a non-working master page once again. I discovered an error in some JavaScript, and when I removed the extraneous code, the template worked. I apologize for not finding this before posting! I did try several things before I posted.
    Tammy

  • Menu Widget is not working correctly when applied in Master Page?

    Hi There,
    Is there a reason why menu widget doesn't work correctly when put in the master page?  When I do preview it only highlights certain menu and doesn't highlight other ones?  In order to fix this I had to take my menu widget off the master page and had to manually apply the menu widget on each page for it to work correctly?  Is there a reason why this is happening and are you guys working on fixing this?
    Best Regards,
    Nick

    Hi There,
    Just published the northcountydoulas website through business catalyst that
    wasn't working correctly...The menu widget is in the master page...
    Best Regards,
    Nick

  • Apply custom master page on a subsite

    Hi;
    I try to apply a custom master page on a new subsite but without success (any impact) :
    My code is :
    web.AllowUnsafeUpdates = true;
    SPWeb newSite = web.Webs.Add(name, name, name, Convert.ToUInt16(1036), template, false, false);
    newSite.Navigation.UseShared = true;
    newSite.AllProperties["__InheritsCustomMasterUrl"] = "False";
    newSite.CustomMasterUrl = curItem["SiteUrl"] + "/_catalogs/masterpage/rep/Generic.master";
    newSite.AllowUnsafeUpdates = true;
    newSite.Update();
    newSite.Close();
    Regards;

    hi,
    try this 
    SPSecurity.RunWithElevatedPrivileges(delegate
    using (SPSite objSPSite = new SPSite(SPContext.Current.Web.Url))
    using (SPWeb objSPWeb = objSPSite.OpenWeb())
    objSPWeb.AllowUnsafeUpdates = true;
    objSPWeb.MasterUrl = curItem["SiteUrl"] + "/_catalogs/masterpage/rep/Generic.master";
    objSPWeb.Update();
    objSPWeb.AllowUnsafeUpdates = true;
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • Applying custom master page on layout pages

    I am applying my custom master page on application layout pages which I am deploying using visual studio. My issue is; I have to copy my custom master page in the same directory where my layout pages exist otherwise its not working.
    I want to deploy my custom master in the default master page directory and refer it to my layout pages.
    is it possible or I have to copy my custom master page in the layout page directory ????

    Hi Nazish,
    By default your application pages will inherit the masterpage currently applied to the site where your app is hosted, but to specify a custom master on a app page you have to set the "CustomMasterURL" property on your site.
    Next your application page needs to inherit from the "LayoutsPageBase" class and you need to specify your custom masterpage on your application page with "~masterurl/custom.master"
    Regards, Pieter
    MCPD | MCITP
    My Blog
    Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

  • Apply multiple master pages to multiple layers

    I have a document that has multiple layer and I need to apply a different master page to each layer.
    Layers are as follows and in this order:
         USA Pricing
         No Pricing
         Euro Pricing
         Yen Pricing
         and so on.
    I have a master page created for each versions layer. I lock all layers except the USA layer and apply the USA Pricing master to that layer it looks great.
    So I lock that layer and unlock the next layer and apply the applicable master to that layer and so on but, even though the other layers are locked what ever master
    I last applied is the one that sticks to all layers.
    How do you get the master page to stick to each layer without using the Master page override to each layer and making it become part of the page?
    If you do that and then you have a change to the Master page on a specific layer/version you have to edit every page and can not simply make a global change on the applicable master!!
    Thank you in advance for any help that can be given.

    Do you mean that only one master page can be applied per page and that it is automatically applied to all layers of that page?
    "so it sounds like you need to create a new master page with the attributes you need for each layer included in one place."
    I don't understand what you mean by this? I have created multiple master pages that have everything I need on them to be applied to each layer!
    They just don't stick to the individual layer! Maybe it the "included in one place" part of your reply that will work but, I don't understand what you mean by that!

  • Style won't apply to text in Preview or Publish

    I set up a character style to apply to section titles in my topics. The style is included in the .css file with the appropriate attributes. On the WYSIWYG pane, all appears perfect, but on the preview and after I publish, the style is gone.
    I checked the .css file on the host server and it is as it should be (to the best of my knowledge). Is there anything else I could verify to correct this problem?
    Thank you for your help.

    Hi there
    I'm more than a bit concerned by your mention of "I checked the .css file on the host server and it is as it should be (to the best of my knowledge)."
    If you aren't totally certain about that aspect, the rest may be moot.
    If you right-click the topic and choose to view the source when viewing from the server, do you find the styling attributes are still there for your text? Assuming they are, the issue would have to be with the CSS file.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • InDesign Paragraph Style won't apply / change

    0 down vote  favorite  
    Im hoping someone might be able to help me troubleshoot an InDesign question. Im a beginner-to-intermediate user.
    I am unable to apply my Paragraph Style to a number of my text boxes. I have tried holding Opt/Alt while choosing the PS with no luck. I have also checked for local overrides and character styles, and there appear to be none. The fly-out menu from the Paragraph Styles menu is almost all greyed-out, so it won't let me select the Clear Overrides option.
    However, when I double-click the text box to go into the frame, I am able to select the text directly and then apply the paragraph style to it directly inside the frame. This seems weird; Im hoping there's a way that I can just select the frames normally and apply a paragraph style as usual.
    The text came from a Word document that was flowed into each chapter, if that gives any help.
    Looking forward to some advice. Cheers, -Ben

    P Spier, thank you very much. What is the work around then to achieve this? Simply selecting all the text in all of the threaded frames and applying the Paragraph Style directly to them? Is it possible to select all of the threaded frames at the same time and apply the Paragraph Style to it? Advice for best method of practice is much appreciated.

Maybe you are looking for