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)

3
votes
3answers
372 views

How to reuse font families in CSS for quicker CSS loading

Let's say I use different fonts on my page, let's say I use 3 different fonts in 10-20 different CSS rules and in each of them I must use the following and similar: font-family:"Lucida Sans Unicode", ...
1
vote
3answers
50 views

external CSS file or CSS added to head via code?

I am building a website that uses a custom CMS. I am seriously considering not using external style sheets and adding all of the required CSS to the head of the pages that as needed (using PHP and ...
1
vote
2answers
30 views

Parts number and Google Site Search

I am using Google Site Search on our site and am looking for a way to get our parts number to show on the results page when searched. For example, if a user searches E23-457-123 or E45-65-322 or ...
2
votes
2answers
602 views

Responsive design best practice: Duplicate html elements for media querying and SEO impact?

I have a page with, in order of html appearance, a figure tag, headgroup tag, and an article tag. In order to make a page's design responsive using media queries, I need a different order for ...
6
votes
8answers
3k views

If CSS is getting better why do big-brands websites still use tables for layout?

Everybody is referring to how content should be separated from layout and I am one strong advocate of that architecture, I find it easy too to use CSS to layout, much much easier than tables, But ...
1
vote
1answer
34 views

Can I add microdata on generated content from CSS?

If I generate content with CSS can I still apply microdata to it in the HTML? Will Schema or RDFa accept an alt or title tag as a value. h1:after,h2:after,h3:after,h4:after,h5:after,h6:after ...
0
votes
1answer
57 views

Does CSS formatting of <h1>, <h2> tags have effect on search ranking? [duplicate]

I have a web page where I made some style into <h1>, <h2> tags, will it make some effect on my SEO ranking?
0
votes
1answer
136 views

Joomla theme only 1 page or module

Hi how can I theme only 1 page or module in joomla 1.5? And I don't mean change the css but change the php file, so I can choose to display the date above the title and not below. This should be very ...
1
vote
1answer
78 views

From SEO point of view is hiding H1 in this case bad for indexing?

I'm having to use a 3rd party CMS and I cannot change the contents of the h3 (or the h3 itself) I've not had too much dealing with "cufon" - presume its an old fashioned way of using a specific font. ...
1
vote
2answers
111 views

Google Page Speed's “above the fold” CSS tuning

Putting all 15kb CSS file inline on 100 pages of the site is not smart I think. How do I pick which CSS classes and IDs from CSS file to put inline (and leave other ones on external CSS file) to a ...
1
vote
2answers
63 views

Difference between “:” and “=” in HTML and CSS?

I am very new to HTML and CSS but while learning I ran into something that I was curious about. How come when you want to style or change font size etc. you use :. Example: style="color: red; ...
0
votes
0answers
14 views

SEO for Backlinks Using JavaScript on a Third-Party site [duplicate]

We are currently implementing a widget that companies can put on their website. We give the publisher a script tag with the source pointing to a javascript file hosted on a CDN with the code they need ...
3
votes
1answer
436 views

Hiding Menu Item with CSS - will Google penalise my site?

I want to hide some sub menu items, using the CSS class, and assign it to the specific menu item. For example the class is no display: /* Hide menu items */ .nodisplay { display:none !important; } ...
5
votes
1answer
63 views

Which browsers do not support user-defined tags?

I recently added HTML5 <nav> and <footer> elements to a page, thinking that HTML5-capable browsers would use them for semantic things like navigation, while older browsers would see them ...
4
votes
0answers
12k views

What is a good default font family for any IE8/9, Chrome & Firefox? [closed]

I have users complaining that fonts are not clear on some browseres (especially displaying data in grids...I'm using Trebuchet MS per default of asp.netmvc3 css site styles) Q: What is a good overall ...
5
votes
3answers
5k views

Numbered list with subclauses

I'm trying to create a legal document with decimal numbered subclauses, then alpha and roman subsub and subsubsub clauses. (whew!) `1. MAIN HEADING 1.1 This is an example of a sub-clause and you can ...
13
votes
4answers
2k 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 ...
1
vote
1answer
87 views

CSS Display Table, any SEO implications?

I want to use CSS display table in place of JS for vertical-alignment and equal heights of HTML elements, however I'm not sure if there are any SEO implications of this, will crawlers try and ...
0
votes
1answer
93 views

When creating DOM elements with JQuery is it better practice to style them with JQuery or in the stylesheet [closed]

I am working on a code base and am using JQuery to add DOM elements.I want to know if it is considered better practice to style them with JQuery or just create them with JQuery then go to the style ...
0
votes
1answer
25 views

Changed an unordered list from images links to CSS background text links - uncached versions are showing broken

We had unordered list for social media icons that had ahrefed images. We swapped them out for text links that used CSS background images. If a user just loads the page, they'll get the old version. ...
5
votes
4answers
2k views

SEO and browser compatibility differences for headings <H1> though <H9>

We all know the importance and significance of Headings for Professional Webmasters. These were known for professional developers as: <h1>Heading 1</h1>, and H2 through H6. As a daring ...
2
votes
2answers
194 views

Alter the appearance of form elements for Paypal buttons without having to edit the CSS from my theme

I have template from ThemeForest and I don't want to edit CSS from this template, because I don't have time for it. I want integrate Paypal buttons to my web page. The problem is Paypal buttons use ...
1
vote
1answer
316 views

issue with wordpress theme background on widescreen computers [closed]

I am using the theme "irresistible" and I wanted to a add a picture of the person for whom I am building the site. Normally the background CSS uses repeat, but I don't want their picture to repeat i ...
6
votes
6answers
2k views

How to find the exact font used by the browser

I have used the CSS style sheet as font-family:arial,helvicta,sans-serif. When I checked it in browser, I don't know which font it is using from the font-family. I want to know the exact font used ...
3
votes
0answers
52 views

What is this modern look called and what is the template used for it? [closed]

I haven't been paying attention to modern websites for a while, but in the few years or so a bunch of websites with the same, very smooth, very sleek presentation format have appeared. Some examples: ...
0
votes
0answers
65 views

How to load the WordPress themes correctly in my local host?

I have a new customer that has send me a WordPress project. So to install the project it in my local machine, I have created a virtual host like the one below in my machine. So I can access like this ...
2
votes
1answer
117 views

Will using same colour H1 as background hurt SEO if I use background image?

Can it hurt SEO if H1 headings are the same colour as the standard body background colour, even if all H1 headings are placed in divs that have a contrasting background image? (So to be clear: the ...
16
votes
6answers
10k views

Is there a tool that converts css to less.css?

I have a pretty big CSS file, that I want to convert to less. When I wrote the CSS I did not know less.css, but now I still want to use my old CSS. Is there a tool that can help me to convert it ...
2
votes
4answers
115 views

Splitting big CSS file into parts for quicker loading

So I have a relatively big CSS file. I thought about doing the following, splitting it to 3 parts: 1st part will have the main selectors that are needed to run on the main page that gets the biggest ...
1
vote
2answers
868 views

Applying a CSS style to drop-down list

I have a PHP function to display all my custom taxonomies in a drop-down list, but I don't like the drop down menu style. I want to change the look of it. How can I customize its look?
11
votes
1answer
798 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 ...
1
vote
1answer
142 views

How to style a div on the home page like a blog post [closed]

I have a theme. Because I don't have a static home page, a list of my latest posts is my home page. I want to add a drop-down box which I have coded on my starting home page which should remain ...
1
vote
0answers
355 views

Vertically center h1 in div [closed]

I know there are various solutions posted for this issue here, but for the life of me I can't get any of them to work. For a responsive website I'm trying to center an h1 text in a div. Centering ...
1
vote
2answers
125 views

How to show only disqus thread-votes and nothing else

I want to show just the thread vote portion of the whole disqus commenting system. How would I go about doing it? Here is an example of what I am asking for: http://i.stack.imgur.com/7FvYO.png could ...
1
vote
1answer
151 views

Using a CDN for CMS software (multiple sites)

I'm currently researching ideas for the media management side of a CMS I'm writing. I was looking at having images served from a CDN which is fine on a single site, but I want all sites that run the ...
4
votes
1answer
271 views

What is the correct way to code incoming links for SEO?

Our site is giving out 'badges' to our authors. They can post these on their personal blogs and they will serve as incoming links to our site. We want to give out the best possible code for SEO ...
2
votes
2answers
989 views

Load custom CSS through browser to site being viewed?

Is there a way I can load a CSS stylesheet to a site I'm viewing in a browser? I'm working on my company website. For obvious reasons I don't want to make changes to the live version of the site ...
4
votes
1answer
441 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 ...
1
vote
2answers
63 views

The actual difference between styesheet in the header and a seperate file

I have always been taught to have all of the CSS in a separate file that is referenced from the head of the page. Reading this article, the author is talking about making the Guardian website ...
4
votes
2answers
2k views

If I override <STRONG> in CSS, does it retain any style elements?

If I override the HTML tag <STRONG> in CSS by specifying a different font weight and size, does it retain any other style settings or properties? strong { font-weight:700; font-size: ...
11
votes
6answers
1k views

How can I encourage the browser to download images from CSS file faster?

I use CSS to place a lot of my images (as backgrounds for <div>) and I often find that they load very slowly this way. They seem to be the last thing to load. Even small little icon images ...
18
votes
5answers
2k views

Remembering CSS left, top, right, bottom

When using CSS what little tricks have you done to remember (perhaps a saying?) the order of left, top, right, bottom when defining combined CSS attributes such as border, margin and padding. I'm ...
2
votes
3answers
532 views

How to get an image 100% in the middle of every single screen in the world

I have a website with some images, and I want them to be in the middle, now on my screen they are in the middle. Because I've put them there by moving them to one side, when I get my friends to look ...
1
vote
1answer
105 views

The Joomla 'create a template' tutorial

I've recently downloaded Joomla using an instant download option, and now I'm looking to create my own templates. I went to http://www.siteground.com/tutorials/joomla15/joomla_create_template.htm and ...
0
votes
2answers
80 views

Trouble with my website and IE7

Sorry I'm new here but I have a serious problem: I changed the CSS style sheet for IE7 for my site, but now when using IE7 it has no graphics and all of the scripts code is printed. I have tried ...
3
votes
4answers
963 views

Using CSS sprites and hidden text - effect on SEO?

I am using CSS sprites for buttons on my website, They are used for stop/play/download etc. If I'm using for example an <i class="preview">preview "track name"</i> play button with the ...
3
votes
2answers
172 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 ...
1
vote
1answer
173 views

Images randomly not showing up

I just uploaded a website for a client which looked good while previewing locally. When I visit it on the server though some images aren't loading properly. It seems to be quite random, and sometimes ...
3
votes
3answers
1k views

How can you identify duplicate CSS rules?

I'm not talking about used/unused here. I have two stylesheets and some rules differ (either in selectors, rules or both) and some are exactly the same. So I'm looking for a way to extract and move ...
6
votes
2answers
611 views

Including specific characters with Google Web Fonts

I'm using the Open Sans web font from Google Web Fonts on my website. I only need the basic latin subset, but I do use the Psi (Ψ) character quite often as well and I would like to use the Open Sans ...