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)

2
votes
2answers
31 views

What consumes less resources on the client side, an animation with gif or CSS?

What is better for the client side, an animated gif or the same animation done as a sequence of images with CSS ?
0
votes
1answer
25 views

How to calculate in CSS? [closed]

I want to make CSS like this Width : 80%; Height : (width-30%); but I do not know, in order to measure height: width-30%. I've been using calc() but still can not
1
vote
2answers
69 views

Images and styles won't load when HTML is opened through the file system rather than through localhost webserver

I'm trying to translate a tutorial of a software. The tutorial is all in HTML, with CSS and some javascript. I'm noob in web development, so I'm a little lost. The problem is: I found the source-code ...
3
votes
5answers
166 views

designing web UI

I'm pretty comfortable with the backend side of web development (say, using java spring mvc, or grails), but I really don't know where to start when it comes to client side UI (as in designing pages ...
6
votes
1answer
153 views

Do loading screens positioned above site content harm SEO?

I use a white div covering all screen before the page loads on a website. Will this hurt my Google Search position? It's not like I'm hiding links on purpose, and I've seen loading screens on many ...
1
vote
4answers
808 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 ...
1
vote
2answers
131 views

How to deny direct access to font files used in CSS?

I have a website that displays texts with unique, copyrighted fonts. I use a CSS file with "font-face" elements (see the example below) and I store the font files in a folder called "type". I would ...
3
votes
1answer
180 views

How does the Media Query apply to smartphone resolutions?

With the launch of new iPhone 6 Plus with a resolution of 1920x1080 px, it got me thinking how is this resolution different from the screen widths we UI developers define in our CSS in media-query ...
0
votes
0answers
52 views

If I used CSS to size an image, would google understand the new size?

Say I have this html code (replace x and y with actual numbers): <html> <head> <style> IMG {width: 100%;height: auto; max-width:xpx; max-height:ypx;} </style> &...
2
votes
1answer
144 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/...
13
votes
8answers
34k views

Font displays differently in Firefox vs. Chrome

It seems that my menu bar is displayed with a different font stretch in Firefox than it is in Chrome. See the following: Here is the CSS applied to this element: font-variant: small-caps; font-...
1
vote
2answers
548 views

How do I Add Expires headers for CSS file with ?ver=4.1

I'm optimizing my website with Gtmetrix and in Add Expires headers section it shows the below error- There are 49 static components without a far-future expiration date. css/front.css?ver=4....
1
vote
1answer
105 views

Mobile Google Chrome Not Resizing Responsive Website

I am new to designing responsive websites which are done in pure PHP and CSS, and I am not using any CMS like wordpress. I am using @media screen and (max-width:....) for the responsive design only (...
5
votes
2answers
5k views

Clearing cache with CloudFlare?

Is it possible to clear or avoid CloudFlare cache while doing development? I'm developing a site that has caching on several levels - WordPress supercache, the caching done by the browser, and ...
0
votes
2answers
123 views

Ä Umlaut-dots too close to the letter in Firefox

In Mac-FF 41 (and 40) the Umlaut-dos of the letter Ä are rendered too close to the rest of the letter, as it shows in the picture below. In other Browsers however (Chrome, Safari) the type renders ...
4
votes
4answers
923 views

CSS3 Validation: Is it worth it?

I'm currently building a project, and I'm writing the site using HTML5 and CSS3. I have validated the HTML and it passed first time (very pleased as it was my first time coding HTML5!). And then I ...
8
votes
1answer
99 views

Is there any good reason for two CSS files to @import each other?

I'm working on some critical style revisions for a client's WordPress site that was designed by another team. The CSS seems to be a tangled mess. One of the idiosyncrasies I've found is that the ...
2
votes
3answers
7k views

How to show a preview thumbnail on Facebook of a imageless website?

I have recently designed a website with no img tags, only one big fat CSS sprite with everything in it. Though, when I try to publish that website on Facebook, it won't show a preview thumbnail — ...
0
votes
1answer
49 views

Do I really need to support older browsers?

When an automatic update hits Windows, it updates all software to the latest, stable version. When you update Linux, it does the same. Why should I worry about writing code for older browsers when ...
3
votes
2answers
247 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 ...
0
votes
1answer
30 views

My site breaks on specific resolutions

It is all started here : How Google decided how websites will look to my visitors? Google told me that my site looks bad for my visitors and "Barnettt" answered me that it is happening in specific ...
0
votes
1answer
48 views

What technologies do i need to learn to make a blog? [closed]

I am making my first website which will be my personal blog. My main purpose to make this is to learn website development. I know a fair amount of HTML, CSS and JavaScript. I understand these are all ...
2
votes
1answer
66 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 ...
0
votes
1answer
50 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 {...
2
votes
1answer
73 views

CSS overflow bug on Mobile [closed]

I'm using the Gridless CSS Framework's html/body tags as wrappers; which works great! I'm un-role'n my site; the role main attribute would span across the page on desktop/mobile. But the new heading ...
0
votes
1answer
148 views

Managing Web Templates using CMS such as Orchard [closed]

I want to build a new web site for a construction company. And i found many online web templates that can satisfy my Interface requirements such as these web templates:- http://www.templatemonster....
1
vote
1answer
91 views

Google says my website has render blocking css while it doesn't

Google says the mobile version of my website has render blocking css while my website has only one css file that is placed before the closing body tag. I even test putting the css after closing html ...
1
vote
2answers
210 views

website Font Embedding, which way would be the best for cross browser capability?

Sometimes clients of mine request a specific font to be used in their website. I try and embed it using CSS @font face, but It is not very cross browser friendly. Sometimes I use Google fonts but they ...
0
votes
1answer
80 views

hide text between normal text without bad effect on search engine [duplicate]

I need put some hidden text between my normal text. I do it like this: <p> some text <span class="hide"> hidden text </span> some text </p> .hide{display:none} But I ...
3
votes
2answers
199 views

Internal server error when using base64 encoded icon on the home page

I have an "index.html" (or .php - it makes no difference) file in the root / of my hosting space. That "index.html" file has this line of code in it: <link rel="icon" href="data:image/png;base64,...
1
vote
1answer
857 views

Is there a single set of Media queries for all the devices? [closed]

I am using different media queries for each type of resolution, is there a better way of doing this?
11
votes
5answers
3k 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. ...
2
votes
2answers
258 views

Two duplicated <h1> tags and one hidden

Is that bad for SEO? <h1 class="responsive-hidden">This is my title</h1> <h1 class="hidden responsive-show">This is my title</h1>
1
vote
2answers
3k views

How to change the background color of searchbox for Google CSE?

How can I change the background color for search box of google custom search? It is white by default, I want to set it to gray, so that it looks like this example. The V1 CSS code for the search ...
0
votes
1answer
36 views

What is the difference between Flat Style design and a Metro UI? [closed]

When I look at the two they look the same, only there's not that many named "Metro." Is three a difference other than the name that Microsoft came up with?
0
votes
2answers
27 views

Graphic-only header - CSS and readability/SEO

I know it's not ideal, but if there's a 100% bitmap graphic header (with a text title rendered in the bitmap), the old way of making sure that there was a text counterpart to the graphic was to offset ...
18
votes
6answers
9k views

How can I find unused/unapplied CSS rules in a stylesheet?

I've got a huge CSS file and an HTML file. I'd like to find out which rules are not used while displaying a HTML file. Are there tools for this? The CSS file has evolved over few years and from what ...
1
vote
1answer
125 views

How to link to Avatar image in BlueSpice MediaWiki of fixed size?

The BlueSpice MediaWiki adds a profile picture that a user can set for themselves or take an automatically generated one. These images are visible on pages to see who has edited or viewed a page ...
7
votes
2answers
327 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 ...
0
votes
1answer
22 views

Images are blurry in one category and not the other [closed]

You can see what I mean if you check out the site: http://healthitlink-e8865038.cloudapp.net All the images in the Apple/iOS category are blurry but if you click over to page 5 you'll see the ...
0
votes
2answers
134 views

Why isn't the HTML break tag acceptable anymore for top and bottom margins?

I'm starting to think I'm making less with adsense now because of insufficient margins. I tried with CSS margins with using the margin and padding properties of applicable elements, but then I noticed ...
1
vote
1answer
39 views

Is Image Spriting for Articles Images a good solution?

I am starting an online portal and I calculated that I need about 102 Images (based on the amount of articles), the problem is I want to keep the whole page below 800KB (Including all assets). I want ...
11
votes
8answers
4k views

CSS style viewer/tester

Is there a site out there that has a bunch of typical HTML for seeing what the CSS looks like once applied? I mean, something full of table, a, div, span, p, whatever. You go there, paste in your ...
37
votes
6answers
4k 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?
3
votes
5answers
2k views

How can I determine the background color of a site?

How can I determine the background color of a site (so I can use that color in Photoshop)? I looked at the source code, but I don't know code well enough to figure out what's what...
4
votes
1answer
760 views

Using display:none legitimately. Still a SEO risk?

My webpage has a certain text on the footer, about 2 paragraphs. However, it is only relevant to pages and not posts. I would like to hide it on posts. If i do this using CSS display:none will I get ...
1
vote
1answer
121 views

How do you get CodePen to display the results? [closed]

I created a CodePen to compare it with jsfiddle. I added the html and the css. But...what now? How do I get it to show the results? In jsfiddle you select "Run" and, when satisfied, "Update". But ...
0
votes
0answers
18 views

A CMS for a beginner developer [duplicate]

I am a beginner developer who knows HTML, CSS and lately have entered in web development world with learning some beginning php scripts. I just want to know is there a clean CMS that allows me to ...
0
votes
1answer
25 views

Does putting everything in one SASS file violate the style guides?

I'm not a fan of having a lot of files in my project. I use vim and it's a lot easier to have all my stuff in one place rather than jumping between files. However as I understand, it is preferred to ...
1
vote
2answers
85 views

How does copying website pages and content but changing CSS affect SEO?

I have a media site that has thin content, I'd like to copy the pages to various domains I own. On the sites that will be receiving the duplicate content the CSS will be changed in various ways from ...