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

learn more… | top users | synonyms (4)

54
votes
5answers
13k 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 ...
14
votes
8answers
3k 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?
16
votes
4answers
35k 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?
33
votes
5answers
3k 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? ...
4
votes
1answer
593 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 ...
11
votes
1answer
824 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 ...
40
votes
7answers
7k 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?
14
votes
4answers
13k views

How to pre-load images used only on hover?

I have a link that starts with one background image and then changes on hover to another. Both background images are set in the CSS. My browsers (any of them) don't seem to load the hover image ...
18
votes
11answers
9k 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 ...
10
votes
2answers
342 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 ...
14
votes
1answer
5k 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 ...
13
votes
4answers
3k 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 ...
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' ...
5
votes
1answer
463 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 ...
4
votes
7answers
510 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
346 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
152 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 ...
1
vote
2answers
257 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 ...
21
votes
10answers
1k 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?
10
votes
4answers
10k views

How do you save/export changes made in Firebug?

Using Firebug to edit CSS, how do I save/export changes made to the CSS? TOOLS: Firefox, Firebug MAJOR UPDATE: If you know of a way to lock the forward/back/refresh on a FireFox tab, please let me ...
3
votes
1answer
299 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 ...
22
votes
4answers
2k 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 ...
12
votes
3answers
2k 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 ...
11
votes
3answers
1k 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 ...
3
votes
2answers
181 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 ...
10
votes
6answers
3k 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
273 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. ...
4
votes
2answers
181 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 ...
4
votes
2answers
2k 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 ...
3
votes
2answers
693 views

tabs and seo issue

my customers are eager in showing news categorized in tabs and i recently developed it for them. as my experience in web designing display:none is used widely in implementing tabs. and as i know it is ...
2
votes
4answers
514 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 ...
1
vote
1answer
339 views

CSS Sprites: Are they worth the trouble?

I can't help but wonder whether CSS sprites are very much over-used. First of all, if I stick all my images in a single file it makes an aweful lot of empty space. I know, that shouldn't make an ...
1
vote
1answer
70 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 ...
1
vote
3answers
579 views

Can you make total height for a 3-div-sandwhich equal 100% if top & bottom divs are in pixels? [duplicate]

Possible Duplicate: Any problems with DIVs inside a table cell? Ok so I've got a header and a footer with absolute positioning and heights of 144px. The content div in the middle area needs ...
0
votes
0answers
11 views

Make Offscreen Sliding Content Without Hurting SEO [duplicate]

On my website I have content which is positioned off the screen, and then slides in when you click a button. For example, when you click the news button, content slides in with news. It didn't occur ...
0
votes
1answer
151 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 ...
0
votes
1answer
339 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, ...