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)

12
votes
5answers
2k views

Is it OK to use jQuery for responsive web design?

I have been tasked to update a site to make it responsive and appear correctly on smart phones. Unfortunately, the site in its current form isn't very easy to work with - I can't just change the CSS. ...
-1
votes
0answers
21 views

Social icons appear on top left of screen when loading [migrated]

I have a block of social icons on my website at the top right of the header, when the website is loading you can see the icons appear in the top left, but they move over to their correct position once ...
3
votes
3answers
333 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
41 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 ...
0
votes
0answers
5 views

Image disappears when setting float to left [migrated]

I just got into HTML/CSS development and I'm trying to build my first WordPress Theme, but I'm having some issue's with the HTML and CSS. What I'm trying to accomplish is to have a header which ...
1
vote
2answers
26 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 ...
1
vote
1answer
30 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
34 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?
1
vote
1answer
34 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
71 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
54 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
13 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
305 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
54 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 ...
0
votes
1answer
28 views

Why would layout differ on first-load of a webpage?

Not entirely sure I understand what's going on, but would appreciate some pointers or things to try. (In Chrome/Mac...) In an incognito window, try loading http://ireland.media.info - and look at ...
1
vote
1answer
62 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 ...
2
votes
1answer
112 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 ...
0
votes
1answer
35 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 ...
3
votes
0answers
49 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
52 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
84 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 ...
2
votes
4answers
95 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
0answers
191 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 ...
4
votes
1answer
178 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 ...
0
votes
1answer
22 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. ...
2
votes
3answers
403 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 ...
3
votes
1answer
217 views

How to check if linked JavaScript and CSS files are being used?

I've inherited a website that seems to import every JS and CSS framework my predecessor could think of. Is there an easy way to analyze the site and determine which ones are actually being used? Or ...
0
votes
1answer
64 views

What HTML and CSS markup is best for SEO for a list of questions (like on Stack Exchange sites)

On the StackOverflow a question block (in the q-list on the index page and so on) represented by the following html code: <div class="question-summary narrow tagged-interesting" ...
0
votes
1answer
61 views

Is possible create a Microblogging Service in HTML and CSS? [closed]

Is possible create a simple Microblogging Service in HTML and CSS with Login similar to Hatena Haiku? PS: is possible to host in Google Drive?
2
votes
1answer
82 views

Can Google see CSS transitions?

I heard that Google "rewards" you for styling the links differenty from other text that are not ought to be clicked. It makes sense I guess. But what if my links are black, like the rest of the page, ...
1
vote
2answers
61 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
1answer
185 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. ...
1
vote
1answer
136 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 ...
3
votes
3answers
351 views

Responsive web design on the “frontend” vs “backend”?

Apparently there are two ways you can do responsive web design. I'm not sure how to call the two methods but let's just say they are frontend and backend: By frontend I mean, the usual way where the ...
1
vote
1answer
860 views

Problem loading a local file in html using the “iframe” tag

I am trying to load a local html file within an iframe but nothing happens. I hear this is a security feature of my OS (windows 8). I am designing a website that is not domain registered yet and need ...
0
votes
0answers
23 views

unable to scroll to the right on certain mobile devices

I've noticed that on certain mobile devices users are unable to scroll to the right or zoom in or out. Up and down works as expected. I don't know if this is relevant, but I am using Wordpress 3.6 ...
0
votes
2answers
256 views

Exactly what is Google's PageSpeed Service recommending and how to optimize CSS?

Looking at my webmaster tools, Google kindly recommended that I could further increase the performance of some of my sites and to look at the recommendations provided by their PageSpeed service. So I ...
0
votes
0answers
18 views

Analyzing a specific style of element in browser

I want to watch a specific style of element. For example, I want to analyze background-color of a element. I want to know which the color of it comes from, for instance, a class, a id, or parent ...
0
votes
3answers
50 views

I want to view whole site by disabling CSS [closed]

I want to view on site by disabling CSS, I don't want open each page and through Firebug to disable it. Any suggestions?
0
votes
2answers
67 views

Same URL rendering different content

We have a CSS file hosted on cloudfront. Whenever the file is updated we add a version number to the file. We also have VPN in our office through which we connect to QA servers. Now a very peculiar ...
-1
votes
1answer
48 views

Source for free complete CSS+HTML layouts? [closed]

Where can I find complete free HTML+CSS layouts to choose from?
1
vote
3answers
157 views

CSS: single directive generic class vs. style-attribute on element

Single directive generic class CSS .text-center { text-align: center } HTML <p class="text-center">center me</p> That is our (not really) generic class and while we see this more ...
2
votes
2answers
174 views

Print friendly version best practice

I am currently recoding a website from tables to modern html/css and have several 100 pages to go over. The problem is, each page has its own print version in another file, also with tables. Would ...
0
votes
0answers
16 views

HTML structure and informations for image thumbnail - SEO [duplicate]

I wonder will the content which shows on focus for the images in this tutorial be indexed properly by search engines?
2
votes
1answer
589 views

What is the maximum safe line length in css files?

YUI Compressor and other minifiers tend to remove unnecessary whitespaces, causing long lines. Safari 5 seems to fail rendering some rules from the css files when the file has more than 5000 ...
1
vote
2answers
232 views

CSS files not updating on FTP transfer overwrite

I have a weird issue: I have made changes to a CSS document but when I upload it and overwrite the existing file nothing changes - the old file remains. I have tried this on several FTP clients to ...
0
votes
2answers
66 views

Does google take into account page load differences from caching?

Here's what I mean by that. If I use internal CSS, the page will load a bit quicker on the first time it is visited, but with external CSS a user can cache the document and load the rest of the site ...
-4
votes
1answer
35 views

Font creation for logo [closed]

I have a template and that template has a logo. The logo is something called "Cream". I really like the way it has been set up. I want the same style with different name. How to do that? The problem ...
4
votes
1answer
238 views

What is the best way to optimise a site with lots of images for a Retina display?

I am going to have a website which will deal with a lot of images. What is the best way to optimise them for Retina display without having much of an impact on website loading times? There seems to ...
0
votes
1answer
80 views

more capability from CSS [closed]

so i've just finished a book to learn CSS. (known HTML since high school but didn't have the initiative to pick up CSS 'til now). anyways, ever since i started reading about pseudo-classes in CSS i ...