Dreamweaver CS5.5 blue fuzzy outline

Discussion in 'Web Design and Development' started by monta17, May 8, 2012.

  1. monta17 macrumors member

    Joined:
    May 7, 2009
    Location:
    Michigan
    #1
    I have created a horizontal spry menu (using Adobe Spry Menu Bar 2.0) which is great except that there is a blue fuzzy outline that appears around the link only when clicked. This only happens in Safari.

    This happened on another site where I was using an Accordion navigation and someone here told me to do the following:
    Accordion {
    overflow: hidden;
    outline:none;
    }
    .AccordionFocused {
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    }

    It worked great!

    So I'm sure that I just need to do something similar.
    HOWEVER, I have no idea exactly what to "say" and where to put it within the menuBar.css that the Spry Widget creates.

    Here is a link to the site (in progress) if that helps.
    http://www.lakeshoreproducts.com/barbara/index.html

    Thanks.
     

    Attached Files:

  2. AFPoster macrumors 65816

    Joined:
    Jul 14, 2008
    Location:
    Charlotte, NC
    #2
    I'm viewing this in Safari and I don't see it. All the code looks fine.

    My guess is that when you "test" view in Safari it is showing it but not when it's live.
     
  3. monta17 thread starter macrumors member

    Joined:
    May 7, 2009
    Location:
    Michigan
    #3
    Thanks for your quick reply.
    The image I posted is actually a screen capture from the live website. It is hard to catch if you just click quickly, but if you click and hold you should see it.

    Unless it is something gone wacky with my Safari. But, like I mentioned, I did have the same issue with a different site, using a different spry, about a year ago and the code I listed fixed it. But I don't know enough about sorting out the Spry Menu Widget code that I am using, to know where to put something like that.

    Any ideas?
    And, please, if you have a second to look at the webpage again try holding down on the "Vertical Lifts" link (the second one under "Products", then "Lifts" for a minute and let me know if you see it.
    I would really appreciate it!!

    http://www.lakeshoreproducts.com/barbara/index.html
     
  4. Comeagain? macrumors 68020

    Comeagain?

    Joined:
    Feb 17, 2011
    Location:
    Spokane, WA
    #4
    I thought safari always had done that. And, on my iPad, I can't actually go anywhere on the site. Nor would the products drop down actually open.
     
  5. AFPoster macrumors 65816

    Joined:
    Jul 14, 2008
    Location:
    Charlotte, NC
  6. UTclassof89 macrumors 6502

    UTclassof89

    Joined:
    Jun 10, 2008
    #6
    try adding these CSS rules:

    a:focus{outline:none;}
    input:focus{outline:none;}
     
  7. monta17 thread starter macrumors member

    Joined:
    May 7, 2009
    Location:
    Michigan
    #7
    Here is the menuBar css:



    #MenuBar {
    background-color:#79CDD1;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; /* Specify fonts on on MenuBar and subMenu MenuItemContainer, so MenuItemContainer,
    MenuItem, and MenuItemLabel
    at a given level all use same definition for ems.
    Note that this means the size is also inherited to child submenus,
    so use caution in using relative sizes other than
    100% on submenu fonts. */
    font-weight: normal;
    font-size: 14px;
    font-style: normal;
    padding:0;
    border-width:0px;
    border-style: none none none none;
    }
    /* Caution: because ID+class selectors do not work properly in IE6, but we want to restrict these rules to just this
    widget instance, we have used string-concatenated classnames for our selectors for the layout type of the menubar
    in this section. These have very low specificity, so be careful not to accidentally override them. */

    .MenuBar br { /* using just a class so it has same specificity as the ".MenuBarFixedCentered br" rule bleow */
    display:none;
    }
    .MenuBarLeftShrink {
    float: left; /* shrink to content, as well as float the MenuBar */
    width: auto;
    }
    .MenuBarRightShrink {
    float: right; /* shrink to content, as well as float the MenuBar */
    width: auto;
    }
    .MenuBarFixedLeft {
    float: left;
    width: 860px;
    }
    .MenuBarFixedCentered {
    float: none;
    width: 960px;
    margin-left:auto;
    margin-right:auto;
    }
    .MenuBarFixedCentered br {
    clear:both;
    display:block;
    }
    .MenuBarFixedCentered .SubMenu br {
    display:none;
    }
    .MenuBarFullwidth {
    float: left;
    width: 100%;
    }

    /* Top level menubar items - these actually apply to all items, and get overridden for 1st or successive level submenus */
    #MenuBar .MenuItemContainer {
    padding: 0px 0px 0px 0px;
    margin: 0; /* Zero out margin on the item containers. The MenuItem is the active hover area.
    For most items, we have to do top or bottom padding or borders only on the MenuItem
    or a child so we keep the entire submenu tiled with items.
    Setting this to 0 avoids "dead spots" for hovering. */
    }
    #MenuBar .MenuItem {
    padding: 80px 11px 0px 0px;
    background-color:#79CDD1;
    border-width:1px;
    border-color: transparent #ffffff transparent transparent;
    border-style: none solid none none;
    }
    #MenuBar .MenuItemFirst {
    border-style: none solid none none;
    }
    #MenuBar .MenuItemLast {
    border-style: none none none none;
    }

    #MenuBar .MenuItem .MenuItemLabel{
    text-align:right;
    line-height:1.4em;
    color:#ffffff;
    background-color:#79CDD1;
    padding: 6px 20px 6px 0px;
    width: 208px;
    }
    .SpryIsIE6 #MenuBar .MenuItem .MenuItemLabel{
    width:1em; /* Equivalent to min-width in modern browsers */
    }

    /* First level submenu items */
    #MenuBar .SubMenu .MenuItem {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-size: 12px;
    font-style: normal;
    background-color:#ffffff;
    padding:0px 2px 0px 2px;
    border-width:1px;
    border-color: #cccccc #cccccc #cccccc #cccccc;
    /* Border styles are overriden by first and last items */
    border-style: solid solid none solid;
    }
    #MenuBar .SubMenu .MenuItemFirst {
    border-style: solid solid none none;
    }
    #MenuBar .SubMenu .MenuItemFirst .MenuItemLabel{
    padding-top: 6px;
    }
    #MenuBar .SubMenu .MenuItemLast {
    border-style: solid solid solid solid;
    }
    #MenuBar .SubMenu .MenuItemLast .MenuItemLabel{
    padding-bottom: 6px;
    }
    #MenuBar .SubMenu .MenuItem .MenuItemLabel{
    text-align:left;
    line-height:1em;
    background-color:#ffffff;
    color:#333333;
    padding: 6px 12px 6px 5px;
    width: 7em;
    width:auto;
    }

    /* Hover states for containers, items and labels */
    #MenuBar .MenuItemHover {
    background-color: #7BAFDE;
    border-color: transparent #ffffff transparent transparent;
    border-style: none solid none none;
    border-width: 1px;
    }

    #MenuBar .MenuItemHoverFirst {
    border-style: none solid none none;
    }
    #MenuBar .MenuItemHoverLast {
    border-style: none none none none;
    }



    #MenuBar .MenuItemWithSubMenu.MenuItemHover .MenuItemLabel{
    background-color: #7BAFDE; /* consider exposing this prop separately*/
    color: #ffffff;
    }
    #MenuBar .MenuItemHover .MenuItemLabel{
    background-color: #7BAFDE;
    color: #ffffff;
    }
    #MenuBar .SubMenu .MenuItemHover {
    background-color: #7BAFDE;
    border-color: #cccccc #cccccc #cccccc #cccccc;
    }

    #MenuBar .SubMenu .MenuItemHover .MenuItemLabel{
    background-color: #7BAFDE;
    color: #333333;
    }
    /* Submenu properties -- First level of submenus */
    #MenuBar .SubMenuVisible {
    background-color: #ffffff;
    min-width:100%; /* This keeps the menu from being skinnier than the parent MenuItemContainer - nice to have but not available on ie6 */
    border-color: #ffffff #ffffff #ffffff #ffffff;
    border-width:0px;
    border-style: none none none none;
    }
    #MenuBar.MenuBar .SubMenuVisible {/* For Horizontal menubar only */
    top: 100%; /* 100% is at the bottom of parent menuItemContainer */
    left:0px; /* 'left' may need tuning depending upon borders or padding applied to menubar MenuItemContainer or MenuItem,
    and your personal taste.
    0px will left align the dropdown with the content area of the MenuItemContainer. Assuming you keep the margins 0
    on MenuItemContainer and MenuItem on the parent
    menubar, making this equal the sum of the MenuItemContainer & MenuItem padding-left will align
    the dropdown with the left of the menu item label.*/
    z-index:10;
    }
    #MenuBar.MenuBarVertical .SubMenuVisible {
    top: 0px;
    left:100%;
    min-width:0px; /* Do not neeed to match width to parent MenuItemContainer - items will prevent total collapse */
    }
    /* Submenu properties -- Second level submenu and beyond - these are visible descendents of .MenuLevel1 */
    #MenuBar .MenuLevel1 .SubMenuVisible {
    background-color: #ffffff;
    min-width:0px; /* Do not neeed to match width to parent MenuItemContainer - items will prevent total collapse*/
    top: 0px; /* If desired, you can move this down a smidge to separate top item''s submenu from menubar -
    that is really only needed for submenu on first item of MenuLevel1, or you can make it negative to make submenu more
    vertically 'centered' on its invoking item */
    left:100%; /* If you want to shift the submenu left to partially cover its invoking item, you can add a margin-left with a
    negative value to this rule. Alternatively, if you use fixed-width items, you can change this left value
    to use px or ems to get the offset you want. */
    }
    /* IE6 rules - you can delete these if you do not want to support IE6 */

    /* A note about multiple classes in IE6.
    * Some of the rules above use multiple class names on an element for selection, such as "hover" (MenuItemHover) and "has a subMenu" (MenuItemWithSubMenu),
    * giving the selector '.MenuItemWithSubMenu.MenuItemHover'.
    * Unfortunately IE6 does not support using mutiple classnames in a selector for an element. For a selector such as '.foo.bar.baz', IE6 ignores
    * all but the final classname (here, '.baz'), and sets the specificity accordingly, counting just one of those classs as significant. To get around this
    * problem, we use the plugin in SpryMenuBarIEWorkaroundsPlugin.js to generate compound classnames for IE6, such as 'MenuItemWithSubMenuHover'.
    * Since there are a lot of these needed, the plugin does not generate the extra classes for modern browsers, and we use the CSS2 style mutltiple class
    * syntax for that. Since IE6 both applies rules where
    * it should not, and gets the specificity wrong too, we have to order rules carefully, so the rule misapplied in IE6 can be overridden.
    * So, we put the multiple class rule first. IE6 will mistakenly apply this rule. We follow this with the single-class rule that it would
    * mistakenly override, making sure the misinterpreted IE6 specificity is the same as the single-class selector, so the latter wins.
    * We then create a copy of the multiple class rule, adding a '.SpryIsIE6' class as context, and making sure the specificity for
    * the selector is high enough to beat the single-class rule in the "both classes match" case. We place the IE6 rule at the end of the
    * css style block to make it easy to delete if you want to drop IE6 support.
    * If you decide you do not need IE6 support, you can get rid of these, as well as the inclusion of the SpryMenuBarIEWorkaroundsPlugin.js script.
    * The 'SpryIsIE6' class is placed on the HTML element by the script in SpryMenuBarIEWorkaroundsPlugin.js if the browser is Internet Explorer 6. This avoids the necessity of IE conditional comments for these rules.
    */
    .SpryIsIE6 #MenuBar .MenuBarView .MenuItemWithSubMenuHover .MenuItemLabel /* IE6 selector */{
    background-color: #7bafde; /* consider exposing this prop separately*/
    color: #ffffff;
    }
    .SpryIsIE6 #MenuBar .MenuBarView .SubMenu .MenuItemWithSubMenuHover .MenuItemLabel/* IE6 selector */{
    background-color: #7bafde; /* consider exposing this prop separately*/
    color: #333333;
    }
    .SpryIsIE6 #MenuBar .SubMenu .SubMenu /* IE6 selector */{
    margin-left: -0px; /* Compensates for at least part of an IE6 "double padding" version of the "double margin" bug */
    }
     
  8. AFPoster macrumors 65816

    Joined:
    Jul 14, 2008
    Location:
    Charlotte, NC
    #8
    Try adding this to this code: outline: none;

    Code:
    #MenuBar .SubMenu .MenuItemHover .MenuItemLabel{
    background-color: #7BAFDE;
    color: #333333;
    }
    So it will look like:
    Code:
    #MenuBar .SubMenu .MenuItemHover .MenuItemLabel{
    background-color: #7BAFDE;
    color: #333333;
    outline: none;
    }

    Other alts:
    textarea:focus, input:focus{
    outline: none;

    or

    input:focus{
    outline:none;
    }
     
  9. monta17 thread starter macrumors member

    Joined:
    May 7, 2009
    Location:
    Michigan
    #9
    (AFPoster)
    Unbelievable!!!! It works! You are the best!

    Seriously, thank you so very much!
     
  10. monta17 thread starter macrumors member

    Joined:
    May 7, 2009
    Location:
    Michigan
    #10
    ooops.
    I was too quick to believe it was entirely fixed. :confused:

    The blue outline doesn't show up on the hover state (so that's ok), but it still shows up when you click on the link. Do I need to add some kind of "select" (or whatever it is called) to the css to address this?

    Thanks!

    or... maybe that's what you are suggesting with the:

    textarea:focus, input:focus{
    outline: none;

    or

    input:focus{
    outline:none;
    }

    I'll try that (sorry)
     
  11. monta17 thread starter macrumors member

    Joined:
    May 7, 2009
    Location:
    Michigan
    #11
    I clearly don't know what I'm doing, because I can't seem to get it fixed.
     
  12. abc123zzz macrumors newbie

    Joined:
    May 10, 2012
    #12
    Have you tried doing a global shutoff of the outline? Try:

    *:focus {outline: 0;}
     
  13. AFPoster macrumors 65816

    Joined:
    Jul 14, 2008
    Location:
    Charlotte, NC
    #13
    Yes this is a good one.
     
  14. monta17 thread starter macrumors member

    Joined:
    May 7, 2009
    Location:
    Michigan
    #14
    Yes, yes, YES!
    That works!

    Thank you so much.
     
  15. monta17 thread starter macrumors member

    Joined:
    May 7, 2009
    Location:
    Michigan
    #15
    by the way, since all everyone has been so helpful on this issue...
    I have just posted another problem with the same menu bar in the following thread:

    Spry Menu Bar submenus don't stay open to click
    I'm using the Adobe Spry Menu Bar 2.0 widget in Dreamweaver CS 5.5. It works and looks great in Firefox, Safari, and IE 9. However in IE 7 you have to rollover just the right part of the drop down menu (such as the word itself) for the submenu to appear, then it won't stay open long enough to get over to it and chose an item to click on (not unless you are very fast and very lucky).

    A lot of our dealers use older versions of browsers and unless I can get this figured out, I'll have to redo the entire nav using something else.
    Can anyone help?

    Here is a link to the site (in progress). The only pages I have done are:
    Vertical Lifts (under Products, then Lifts)
    Dock (under Products, then Dock Systems)
    Manuals (under Owners)

    http://www.lakeshoreproducts.com/barbara/index.html
    [/COLOR

    If you have any ideas about this please leave me a note there. Thank you so much.
     

Share This Page