We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [css]

CSS, short for Cascading Style Sheets, is a language used to control the presentation (including colors, layout, and fonts) of HTML and XHTML documents.

Filter by
Sorted by
Tagged with
72
votes
7answers
27k views

How bad is it to use display: none in CSS?

I've heard many times that it's bad to use display: none for SEO reasons, as it could be an attempt to push in irrelevant popular keywords. A few questions: Is that still received wisdom? Does it ...
41
votes
6answers
6k views

Why aren't we supposed to use <table> in a design?

What are some clear and logical reasons for why we shouldn't be designing websites with tables? Where are the benefits, what has been driving this idea in the industry? When is it okay to use a table?
16
votes
8answers
4k views

Should I use HTML5 and/or CSS3 to build my website?

The new HTML5/CSS3 (Web8!) stuff sounds cool! Should I start using it now or stick with css/xhtml wait until more browsers can use it?
17
votes
1answer
6k views

How Google reacts on display:none for CSS media query?

According to Google Webmaster guideline "Hidden text" is not acceptable. Which means I do have a dov containing some good amount of title or paragraph with link or images if I make it display:none in ...
5
votes
1answer
716 views

Are temporarily hidden elements bad for search-engine rankings?

I've been reading a lot of information saying that hidden elements are bad and that search engines penalize pages for using them. I started to get really worried about it when I realized that MOST of ...
38
votes
4answers
101k views

How do I set expiration headers for CSS, JS, and Images?

I have recently analysed my website with pagespeed addon on firebug. It suggested me to set expiration on CSS, JS and image files. I am wondering how do i do this?
43
votes
7answers
10k views

Why should we use tags like p, span, hx tags when we can use CSS instead?

Why should we use tags like p, span, hx tags when we can use CSS instead? Is it important from an SEO point of view?
13
votes
1answer
1k views

Refactoring large/old CSS files

I'm currently working on a 100,000 page website, the current design has been in place for over 5 years and successive updates have resulted in four 12,000+ line CSS files. Obviously the CSS has ...
12
votes
3answers
5k views

Robots.txt - CSS allow or disallow

Are CSS and templates allowed in robots.txt? Should it cause any problems? In Joomla, CSS and templates are disallowed in the robots.txt. Please help me find a solution to whether or not put ...
2
votes
4answers
5k views

For SEO of the company name, should we use a logo with alt text or a company name div replaced in CSS with an image?

Which of these alternatives would be the less negative to Google search engine? <h1> <a href="#" title="Company Name"> <img src="img/logo.png" alt="Logo" title="Company ...
26
votes
11answers
15k views

Are HTML tables bad for SEO?

A lot of designers discourage the use of tables but I have a layout where I'll use more div structure to achieve something made simple with a table.. Are tables bad for search engines? edit: I will ...
12
votes
2answers
407 views

How to identlfy unused css selectors and rules for css pages which cover multiple pages and are installed locally?

I'm looking for a tool which would be able to identify unused and/or duplicate css selectors and rules, with the following two restrictions: The tool would have to be able to analyze css pages which ...
5
votes
1answer
1k views

Majority of mobile devices support media queries for screen width?

Where I can find statistics on what % of mobile devices browsing the web support media queries for screen widths? I want to know whether for mobile optimization I can assume the majority of users' ...
1
vote
1answer
608 views

Does changing strong element CSS styling affect SEO?

<strong> HTML elements have default black and bold CSS styling. I want my strong elements to have light blue background, have blue as font color and underline strokes. But does changing the ...
5
votes
1answer
889 views

How to overcome politics of the net (Google translate code refuses to work from a specific region)

According to the FAQ's I am not sure if my question is a ok to ask or will be closed or should I post it in the meta or even I would blame some one for downvoting it. However it is one that has been ...
5
votes
2answers
2k views

Images as hyperlinks and SEO implications

I manage several websites, one of which is an e-commerce site with a lot of images. At the top of some product category pages, there are image links to specific products (think image banners). I am ...
4
votes
1answer
659 views

Tradeoffs around using a query string vs embedding version number in the CSS/JS files [duplicate]

I was reading articles and forum posts about using version numbers in CSS/JS files. http://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/ http://www.particletree.com/...
4
votes
7answers
646 views

What are the best ways to implement cross browser css? [closed]

What are the best ways to implement cross browser css? Rule: one approach for an answer.
3
votes
1answer
392 views

Collapsible menu and amount of links in a web page

One of my pages contain three levels of a collapsible menu (JS + CSS from mycssmenu.com). There are a dozen first level items displayed to users, each one with various second level items, and finally ...
3
votes
1answer
165 views

Adaptive websites - considered keyword stuffing by Googlebot?

I work on a SEO-dependent content website, and we are in the process of making our site adaptive/responsive. More technically, we are using CSS media queries to apply different CSS styles as the size ...
3
votes
2answers
390 views

Does Google count external Javascript or CSS files as backlinks?

Is there any information available on whether search engines (Google) count external Javascript or CSS files as backlinks? Example: Does loading FontAwesome from their CDN count as a backlink for ...
1
vote
2answers
483 views

image behind adsense

i want to have an image behind my google adsense just like the below image but when i tried the following css L{ background: transparent url("http://www.triphp.com/images/adback.png") repeat-x ...
23
votes
10answers
2k views

What is new in HTML5/CSS3?

I've seen this site and this site, but that's a lot to digest. What are the main things about HTML5 that make it different/better than regular old (X)HTML/CSS?
29
votes
5answers
6k views

Why insert static files (CSS, images, JavaScript, ECC) in a subdomain?

Why so many big and little sites inserts static files (CSS, images, JavaScript, ECC) in a subdomain like media.example.com or s2.static.example.com? What are the advantages? Why not just a directory ...
13
votes
4answers
4k views

Can CSS be copyrighted?

I know CSS on a website is protected under the website's copyright since it is considered part of the overall design. I also know that images used in CSS are copyrightable. How about when CSS is used ...
3
votes
1answer
325 views

Automated image/css sprite generation from website DOM

I know there are plenty of online tools which let's you upload your images there and it generates the appropriate CSS/sprite(s) to be used with them on your page. Is there any such website/tool ...
18
votes
4answers
5k views

Are CSS sprites bad for SEO?

Nowadays often what was accomplished with an <img> tag is now done with something like a <div> with a CSS background image set using a CSS 'sprite' and an offset. I was wondering what ...
11
votes
1answer
2k views

Duplicate content on the same page - SEO ramifications?

In certain situations, I've seen Responsive Design websites with duplicate content on the same page. The pages had duplicate HTML structure and content in some parts of it due to Responsive Design. ...
7
votes
2answers
1k views

Is it possible to make an XML sitemap pretty enough to show to users?

I wouldn't mind showing my XML sitemap to users if there were a way to make it human usable as opposed to just machine readable. Is it possible to: Choose the colors and layout Make the locations ...
4
votes
2answers
332 views

Cropping images & SEO

So I have a page with a bunch of images with largely varying sizes. Also the layout of the page is such that the images are all in the shape of square tiles, so just resizing will cause distorted ...
3
votes
2answers
266 views

is it a good seo practice to put relative keywords in a hidden div? [duplicate]

Possible Duplicate: hidden texts and page rank I was wondering what would happen if we put some (around 25) relative keywords in the page using a hidden div so that the actual user does not see ...
3
votes
1answer
2k views

How to avoid request of all images used for different devices using media query?

I want to know, how can I avoid loading all images I created for different devices using media query. Currently my mark up look like below : <img src="/media/1062/lg.png" alt="Fresh from ...
11
votes
6answers
5k views

What's the best way to show a message for only IE 6 and IE 7?

What's the best way to show a text message for only IE 6 and IE 7 ? Should I add a html tag to my webpages and normally hide it with css for all browsers except the above mentioned ? And when I use ...
5
votes
1answer
4k views

Google Mobile Usability says “Content wider than screen” even though I can't reproduce that locally and X overflow is set to hidden

Unable to fix error Google Mobile Usability > Content wider than screen in Google Search Console. I have try chrome mobile layout emulator from DevTools, set width to 320px but no horizontal scroll ...
4
votes
2answers
3k views

Why is <strong> in Safari significantly bolder than other browsers?

I am just about to go live with a new website - and during cross browser testing i noticed that the bold fonts in safari are FAR bolder (horribly chunky) in Safari than in the other big 4. The font I'...
3
votes
2answers
776 views

Can tabs of content be made SEO friendly?

My customers are eager to show news categorized in tabs. I recently developed it for them. In my experience in web designing, display:none is used widely in implementing tabs. I also know that it is ...
3
votes
1answer
2k views

Can Google crawlers/googlebot read CSS content in before and after elements?

I have a div and I am placing some text in it via content in :before and :after. Can Google crawlers read this? Example: div:after { content: 'This is from CSS'; display:block; } Working ...
8
votes
1answer
14k views

Is it necessary to specify content-type in http response header?

Except for the html document, currently all the files (css, javascript and images) served from my web server do not specify the content-type in the http response header. I happen to notice this as I ...
4
votes
1answer
116 views

Will underlying content (hidden by z-index until exposed by user action) be ignored by Google?

In my web app the application itself will take up most of the screen estate (the pink layer in the below picture), while the about page (the blue layer) is hidden below it, thanks to z-index. If the ...
2
votes
4answers
720 views

Should I jump straight into HTML 5 and CSS 3 from minimum knowledge of HTML?

I first learned HTML a long time ago, from the Visual Quickstart guide in 1999, HTML 4 for the World Wide Web. Though I have a grasp of fundamental concepts of HTML, my knowledge of CSS is woefully ...
2
votes
1answer
72 views

How Google decided how websites will look to my visitors?

I have a small WordPress website, Google shows me a print screen of how the visitors of my site see it : And as you can see in the image on the right, it seems like all the thumbnails gone and the ...
1
vote
1answer
2k views

Force visitors to get newest versions of resources (bypassing browser cache)

How can I (force) my visitors on my website to clean their cache, and get the new updated content? I find myself sometimes linking progress on some of my projects and sending it to others for feedback,...
1
vote
1answer
85 views

Tool or plugin required to show out in which html files a given css selectors is used [duplicate]

Possible Duplicate: How to identlfy unused css selectors and rules for css pages which cover multiple pages and are installed locally? I'm looking for a tool which is capable of indicating in ...
0
votes
1answer
161 views

Create sprites automatically

I get the folder with the following structure from my designer*: file.css images/ Is there any tool which can automatically create sprite from images folder and replace all images references ...
-1
votes
1answer
586 views

Make content area appear on the right of the menu_bar [closed]

This is my css code, i would like to make the content_area come to the right of the menu_bar, at the moment it comes at the bottom of the menu_bar body{ color:#000000; font-family: arial, ...