Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    New Coder
    Join Date
    Dec 2010
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Website Changing When uploaded to server.

    Hi all, first post im new here.
    I have created a site and all works on computer when tested on ie. although when i upload the site to my server i get problems. the first was when i cliked the footer at bottom to load up chat it had a dotted grey box witch stayed there untill some one cliked on homepage again. i used <body onclick="self.focus();"> to stop this, although i only wanted this to happen on the footer. so i deleted the line and re uploaded it and it seems its still doing what this code does and stopes the boxs.
    any idea why?
    Rob.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,639
    Thanks
    6
    Thanked 1,004 Times in 977 Posts
    The dotted line is probably the outline that appears when an anchor is active/has focus. You can remove it with outline: none; applied to the respective element in your stylesheet.

  • #3
    New Coder
    Join Date
    Dec 2010
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thats what i was going to replace it with. Altough i have took the <body onclick="self.focus();"> out of the file and now it still seems to do what the code says.
    URL removed as requested
    it still is taking the grey boxs out altough ive deleted the code?
    Last edited by WA; 01-10-2011 at 08:06 PM.

  • #4
    New Coder
    Join Date
    Dec 2010
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok ive just tryed my site on a differnt computer and the grey boxs are working how they should again... Any idea why my computer still sees the old code?

    Also
    if i place outline: none; if the footer css part will it just remove it from the footer?

    Thanks,Rob

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,639
    Thanks
    6
    Thanked 1,004 Times in 977 Posts
    No, the outline is not inherited, it only applies to the element(s) you assign it to. In your case you need to assign it to the anchor element in the footer.

    Note, however, that the outline is a helpful indicator for people browsing without using a mouse or using other devices, and removing it can have negative impact on accessibility. It may be OK in this specific case but generally you should think twice whether to remove accessibility enhancements just because you don’t like the looks or whatever. After all, it’s millions of other people that are using your site, and therefore millions of different preferences. An interesting fact might be that not only you can remove the outline, you can also style it like the border property.

  • #6
    New Coder
    Join Date
    Dec 2010
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I no it will be a accessibility problem although they can still contact us though the contact us page. will design better next time!
    Thanks for the info.
    Rob.

  • #7
    New Coder
    Join Date
    Dec 2010
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Right this is realy stressing me out now! outline:none; worked then i edit a few words saved again and now it wont!
    ive checked and the code is still there altough its not working!!!
    Any ideas?

  • #8
    Regular Coder
    Join Date
    Dec 2010
    Location
    California
    Posts
    201
    Thanks
    30
    Thanked 8 Times in 8 Posts
    try adding this code exactly how it's shown

    :-moz-any-link: none;

    this will get rid of all outlines in FF!

  • #9
    New Coder
    Join Date
    Dec 2010
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi, Thanks but i only want to get rid in one place of site.
    rob.

  • #10
    New Coder
    Join Date
    Dec 2010
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Any ideas any one?

  • #11
    New Coder
    Join Date
    Dec 2010
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorted now!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •