CSS family names and whitespace
-
A CSS validation notes the following: Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space. Not sure what this means or how to fix. Help. thanks
-
thanks Gareth. That was the problem
Brett
-
I'll take a stab without seeing an example.
This is the correct:
font-family:"Trebuchet MS", Helvetica, sans-serif;
This is wrong:
font-family:Trebuchet MS, Helvetica, sans-serif;
The browser would make the font family TrebuchetMS, which of course doesn't exist.
Add the double quotes and it will pass validation and render correctly! I hope that helps and I am understanding you question properly.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Moz bar not working on https://www.fitness-china.com/gym-equipment-names-pictures-prices
Moz bar not working on our website about gym equipment names https://www.fitness-china.com/gym-equipment-names-pictures-prices How long fix it?
On-Page Optimization | | ahislop5740 -
Site name in page title - leave it or remove it?
Hi all, Recently came across some authority blog (quicksprout to be precise) which stated that apart from main page, contact page, about us and some other generic pages, site name should be removed as it might produce duplicate content. example "How to blog | Example Site name" This mostly is the issue with tags and categories pages as it shows on Moz issues. Is that really a problem and site name should be taken off them? Thank you.
On-Page Optimization | | Optimal_Strategies1 -
Can I put the company name in the image alt text instead of just the service type im trying to rank for?
Hello, if I am trying to rank for a service type and the exact phrase is in the companies name, can I put the company name in the image alt text instead of just the service type? Seizing the opportunity to get another mention of the businesses name...two birds with the one stone if you will... For example, "lawn cutting" being the service type but the company's name is Paul's lawn cutting. Could i put Pauls Lawn Cutting in the image alt text, or just stick to lawn cutting? Thanks in advance
On-Page Optimization | | Gavinn0 -
Eliminate render-blocking CSS in above the fold content with shopify
Hello, It seems that my shopify website needs to eliminate render-blocking CSS in above the fold content to get better mobile speed and I don't see or find anything about how this could be done. I have succeeded with a wordpress site but the way things are restricted with shopify, I have not been able to do the same. The other thing would be to leverage browser caching which I have no clue how it can be done with shopify either. Thanks!
On-Page Optimization | | Mabo320 -
Unused CSS Tool Recomendations
Hey moz, Im currently converting my site to mobile as its an older template based on tables it will make a lot of CSS redundant. I cant delete as i go incase a page uses it im unaware of so need to clean it up when its done. Is there a tool that crawls my entire website and highlights the unused CSS in the files? Ive found a few paying tools that claim to do so but am reluctant to just spend money on something without a recommendation. Cheers!
On-Page Optimization | | ATP1 -
Keyword vs Brand Domain Name
Hi guys, I'm about to launch a new site for a friend who is an accountant in a specialist field. He's already bought 2 domains: **www.[keyword]-accountants.net ** **www.[brand]accountants.com ** We have made the decision to use the brand domain to host the site but what can we do with the keyword domain as exact match domains still seem to be ranking well in the serps? e.g. build keyword links to the keyword domain (heavily seo'd content) and build brand links to the brand domain (conversion-optimised content) then after while 301 the keyword domain? Any new suggestions will be gratefully received!
On-Page Optimization | | Tman30 -
External vs inline for CSS menu
Which is better for search engines: external or inline menus? And which language: CSS, Javascript, or both?
On-Page Optimization | | teatable0 -
Link Product Thumb & Product Name with same anchor link?
We have an issue on one of our sites we're monitoring a campaign for that seems to have TOO many links on each page. I think the biggest reason is that each product listing on each category page has two separate anchor links into that page. One for the thumb and one for the name. So even though there should only be 60-70 links on each category page, that amount is being inflated because each product listing technically is being split into two separate links. Question is, should I place the thumbnail and name within the same anchor link? We do this on a lot of other sites we operate, but I'm not sure what's a better strategy. It would seem to me that it would be better to have a single anchor link that shares the thumb and product name.
On-Page Optimization | | AarcMediaGroup0