Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Header Tag / Logo Replacement - Opinions?Header Tag / Logo Replacement - Opinions?
Previous
 
Next
New Post
8/12/2009 11:50 AM
 

Jon Edwards wrote

 

 I don't know it all, but I do know its a fine art and there must be several arguements for it.

Boy isn't that the truth, my real problem being the sheer signal-to-noise ratio since there are so many "SEO Experts" offering their opinions that are rarely based on any imperical evidence. Also, thanks for the code snippet, I'm just starting to delve into ASCX skinning and while it's proving far more efficient, there are a number of little tricks and code that I'm still learning.

Thanks!


Wells Doty Jr
Online Content Development
 
New Post
8/12/2009 4:06 PM
 

[EDIT - Some further investigation...]

OK... OK... So I'll be the first to admit I have been terribly and horribly wrong.  And I'll tell you all why....

You shouldn't use display: none for the span - .logo span {}!!!  It's not necessarily the wrong way, but its not the best way.

Like I said, I don't know it all...  But I do do homework (Yes, I said "doo-doo").  And here's the homework:

  • Browse to xml-sitemaps.com (brilliant site)
  • In the menu, select "TOOLS"
  • Then select "Search Engine Bot Simulator"
  • Then type the url of a site that uses my method...
  • The results are staggering and Wells was kinda right about 7 posts up... See: http://css-tricks.com/css-image-replacement/ - Display: None is bad for screen readers... The XML-Sitemaps.com simulator confirms this...  So I have to go and change 4 of the sites I used this on...  Silly, stupid me.

So, what to do...

I've check on some reputable sites, and most use "text-indent: -9999px;"

I check out some of their sites in the simulator, and well, yes...  ...The web-crawlers pick up on it. [Still Relevant - kinda]

Let's go back to the law, shall we...

The W3C specification states, "lease note that a display of ‘none’ does not create an invisible box; it creates no box at all..." - Which is subsequently not read as by searchbots as there is no box... [EDIT - on screen readers]  Unlucky.

From what I see, the text-indent technique is now the staple, stable, cleanest, bestest way of doing what I proposed.

My apologies for leading anyone astray.  I am going to correct my mistakes tomorrow.


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
New Post
8/12/2009 4:15 PM
 

HERE'S THE HTML:

<h1 class="logo"><a title="Your Title goes here" href="http://www.domainname.com">Your website <em>- A few more user readable words or a phrase/em></a></h1>

HERE'S THE CSS:

.logo {
    margin: 0px;
    padding: 0px;
    float: left;
    text-indent: -9999px;
}
.logo a {
    display: block;
    width: 960px;
    height: 100px;
    background-image: url('images/logo_sprite.png');
    background-position: center bottom;
    background-repeat: no-repeat;
}
.logo a:hover {
    background-position: center top;
}
 

Hope this helps...


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Header Tag / Logo Replacement - Opinions?Header Tag / Logo Replacement - Opinions?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out