Cascading Style Sheets (CSS) is a language for specifying the layout and presentation in general of markup such as HTML and XML.

learn more… | top users | synonyms

5
votes
1answer
647 views

Copyright notice in CSS or XML files

I'm currently working on an open-source project. Currently, we put our copyright notice at the top of every Java source file. I was wondering whether it was advisable or common practice to put ...
5
votes
3answers
436 views

CSS Classes for semantics vs. styles in general cases

The W3C spec on the class attribute says There are no additional restrictions on the tokens authors can use in the class attribute, but authors are encouraged to use values that describe the ...
9
votes
1answer
2k views

Why doesn't CSS natively support variables and hierarchy?

I am new to UI development, but I feel very uncomfortable with how CSS works. My use case is that I wanted to apply some specific styles inside a particular div on a page. CSS attempt: div.class1 ...
26
votes
3answers
16k views

Are there any advantages of SASS over LESS? [closed]

I'm trying to do research on these css preprocessors. Are there any advantages of using sass over less as a css preprocessor? Factors that i'm looking for include community size, software project ...
23
votes
8answers
7k views

Should I write HTML or CSS first?

There are a lot of analogies for HTML/CSS development; which can be a bit confuse for a beginner. HTML = foundations/house CSS = walls/blueprint/wallpaper Is there any best practice here? ...
3
votes
0answers
142 views

Switching CSS to use asset pipeline in Rails?

I have a lot of legacy CSS files from what was a Rails 2.x app that got upgraded to Rails 3.2.8, and I want to switch over to using the Rails asset pipeline for stylesheets. The issue is, the CSS ...
8
votes
4answers
2k views

css - use universal '*' selector vs. html or body selector?

Applying styles to the body tag will be applied to the whole page, so body { font-family: Verdana } will be applied to the whole page. This could also be done with * {font-family: Verdana} ...
1
vote
3answers
415 views

CSS vs codebehind, if I have to do part of the style in codebehind, should I do all of it there?

I'm working with ASP.Net and trying to style an ImageButton. I tried to do this via CSS only to discover that for some reason, .Net writes out an inline style setting the border width to 0 ...
2
votes
1answer
231 views

What is the most performant CSS property for transitioning an element?

I'm wondering whether there is a performance difference between using different CSS properties to translate an element. Some properties fit different situations differently. You can translate an ...
5
votes
2answers
422 views

Using table-styled divs instead of tables

I was referred here from stackoverflow as my question was apparently too broad. I'm working on a template, and I know using CSS is preferred over HTML tables for positioning... But, is it acceptable ...
1
vote
5answers
411 views

CSS naming guildlines with elements with multiple classes

Its seems like there are 2 ways someone can handle naming classes for elements that are designed to have multiple classes. One way would be: <span class="btn btn-success"></span> This ...
5
votes
1answer
186 views

Why is CSS3 doing animations?

Like what the title says, why are there animations in CSS3? With basis from the "rule" of separation of concerns, HTML is the content, CSS is the style, and JavaScript is the interactive component. ...
5
votes
1answer
521 views

What is the proper way to create a cross-fade effect?

When creating an image slider, using a cross fade is one of more popular effects. Various sliders use differing techniques to create such an effect. Major techniques I've found so far are: Method 1: ...
17
votes
7answers
3k views

ASP.NET Webforms developers and web designers: how to interact?

I'm an ASP.NET Webforms developer, and I face some problems when I deal with designers. Designers always complain about the asp.net server controls. They'd rather just have an html file and create ...
1
vote
2answers
844 views

What is the impact of CSS Validation Failure?

I am developing a asp.net website. When I used the CSS property "word-wrap", VIsual Studio 2010 is showing a warning: Validation (CSS 2.1) 'word-wrap' is not a known CSS property name. When I tested ...
5
votes
3answers
594 views

Multiple style sheets best practice

I currently am working on a project which has one large style sheet for about 20 pages. The style sheet contains some styles which are specific for certain pages. I'd like to break the style sheet up ...
3
votes
2answers
2k views

Less vs Stylus vs Sass [closed]

I'd like to start using a CSS pre-processor to cut down development time. Which one of these is the fastest from this perspective?
4
votes
1answer
150 views

Which CSS attributes should be in HTML and which in BODY? [closed]

I have the following: html { overflow-y: scroll; } body { font-family: Georgia, "Times New Roman", serif; font-size: 1.125em; line-height: 1.5em; margin: 0 auto; max-width: 41em; } Which ...
6
votes
2answers
10k views

front end development test - html/css/jquery/javascript

We are continually revamping our front end developer test that we do in-house after a candidate has passed an online test. The online test has questions such as: How does a for loop start? What is ...
0
votes
3answers
193 views

Can display issues affect SEO?

Can website display issues on certain platforms affect a website's search rankings and potentially hinder any SEO efforts?
1
vote
3answers
617 views

Next step after creating mock-up screens

I have created some mockup screens for my app in HTML/CSS. I have 4 screens in total. They contain no client-side coding i.e. Javascript or jQuery. The screens themselves are quite bland at the ...
2
votes
2answers
6k views

Is it better to use multiple html pages or just change content on the same page using JavaScript?

Is it better to use multiple html pages and link them together with href or just change content on the same page using JavaScript? I am thinking of how to layout a page and I don't have a lot of ...
0
votes
1answer
188 views

Css design skills

I have seen this article: CSS3 Loading elements at HTML5 and CSS3 Tutorials pages. How did someone made this calculations? what angle, how much space, how much rotation to give? If I do it with ...
3
votes
3answers
849 views

Using “Context-based” CSS Class Names

This morning I found a note on my desk with some tips from a higher up developer who had been looking over some HTML/CSS I had put together. One of his suggestions was for me to "stay away from ...
-2
votes
1answer
2k views

visibility:hidden Vs visibility:collapse

In CSS, what is the difference between visibility:hidden and visibility:collapse They are given to be separate in W3Schools, but I see no difference in their output. I have tried it in Google Crome. ...
0
votes
1answer
185 views

Why Browsers do not resolve simple known issues? [closed]

Why Browsers do not resolve simple known issues such as: (in the context of CSS) Do NOT start a class name with a number! This is only supported in Internet Explorer and Do NOT start an ID name ...
7
votes
5answers
1k views

Best practices for web page styling with CSS? [closed]

I have a website to design. I have information on how the page should look and interact. The problem is I'm not good in front-end design, and have put many many hours to get the hang of the stuff. ...
0
votes
6answers
460 views

Should i expect real world questions from interviewing agency ? [closed]

I started coding almost a year ago. By "coding" I mean HTML(5), CSS(3), and only few times I implemented some AJAX and JavaScript. I am interviewing for a position that expects me to know HTML, CSS, ...
0
votes
3answers
400 views

Is a client side developer usually expected to do design work also, or know designing and CSS as well? [closed]

If I'm applying for a client side developer job, am I usually expected to know designing as well? Such as CSS? I have knowledge of JavaScript, JQuery, Ajax and HTML5 basics, and HTML DOM. Is this ...
7
votes
6answers
3k views

Why don't browsers support haml and sass?

The time needed to download a website would be significantly reduced, and parsing would be also easier I think. Why are not these languages imposed as a standard? Obviously they are better than raw ...
3
votes
1answer
207 views

today's multi-device world for web development

With the huge explosion of mobile devices and addition of HTML5/CSS3, there seems to be a shift towards "responsive" designs (i.e., adapting to smaller screen sizes) which seems to be achieved using ...
5
votes
2answers
484 views

When should I start the server side coding?

I am creating a website, where users can upload their own videos. So far I am just building the main structure with HTML and CSS. Is it a better practice to write server-side code before the site ...
1
vote
3answers
137 views

Can the user not manipulate html elements which are disabled for non-permitted user

With todays browser extensions/tools is it not easily possible for a user to edit the html/css settings of a website and so enable some disabled buttons etc... to gain access to not permitted areas?
41
votes
7answers
41k views

How can I evaluate a candidate's knowledge of Html/CSS during an interview? [closed]

I am trying to determine some good interview questions to assess the ability of people coming in for a Html/CSS job, however that topic is extremely broad, and I'm not sure what sort of questions I ...
22
votes
1answer
3k views

The Box Model: Internet Explorer vs. W3C

Today, the Internet Explorer Box Model problem is mostly a non-issue. Most web developers place a <!DOCTYPE> tag to enforce standards compliance, and nobody really cares about supporting ...
0
votes
1answer
435 views

HTML/CSS in Other Spoken languages? [duplicate]

Possible Duplicate: Do people in non-English-speaking countries code in English? Do developers who don't natively speak English still code using english property and tag names? Like, would ...
4
votes
3answers
1k views

What Technology can Render Medium Scale 3d Environments in a Web-Browser [closed]

I intend to make a web application that displays 3d environments that can be navigated by dragging(with a finger or mouse depending on the platform). The web app will render 3d environments of ...
3
votes
3answers
3k views

How do I prevent useless content load on the page in responsive design?

In responsive design, elements are hidden in the page with @media queries and display: none in CSS. Ok. In my design however browsers that have less than 800px in width should avoid loading some ...
25
votes
7answers
16k views

Practical considerations for HTML / CSS naming conventions (syntax) [closed]

Question: what are the practical considerations for the syntax in class and id values? Note that I'm not asking about the semantics, i.e. the actual words that are being used, as for example ...
4
votes
1answer
1k views

Build tools for php, html, css, js web app development

What are some recommendations for a build tool that would allow me to upload changes to a web server or a repository and minify the js and css automatically, and possibly even run Closure compiler on ...
3
votes
1answer
204 views

confusion understanding the fluid 2 column navigation layout

I'm trying to understand the following cross-browser layout: http://matthewjamestaylor.com/blog/perfect-2-column-left-menu.htm but I'm having some confusion with some of its parts and there isn't ...
28
votes
7answers
3k views

Referencing external javascript vs. hosting my own copy

Say I have a web app that uses jQuery. Is it better practice to host the necessary javascript files on my own servers along with my website files, or to reference them on jQuery's CDN (example: ...
8
votes
3answers
320 views

Is there a drawback in defining multiple small DRY classes, instead of bigger more repetitive classes? [duplicate]

I read some articles and it seems that using multiple classes in CSS is encouraged. I am curious to find out if there is a maximum number of classes an element can have before this multiple class ...
4
votes
3answers
1k views

Is it a bad practice to use inline styling with generated code?

If I'm using a technology like Grails. It's really easy to wind up with inline styling. Are there any downsides to auto-generating code with inline styling? Is this considered bad practice? Why?
3
votes
5answers
368 views

How would you architect an application which is largely a collection of flowcharts?

I am working with a history teacher on a history app. He has like 200 flowcharts that he wants to put into the app (among other things). The two likeliest-looking ways to do it: HTML/CSS. The big ...
9
votes
3answers
3k views

Is CSS resizing of images still a bad idea?

It's always been looked at that using width/height attributes on images which aren't what the original image actual is is a bad idea. It could mean pixalated images or download sizes bigger than ...
0
votes
1answer
751 views

Use Theme/Skin or CSS in Asp.Net

I am working on a website which is using Skin templates everywhere in the page. Because of this all the controls, even labels, are server controls. I was wondering if it is worth changing at least ...
2
votes
2answers
7k views

Percent or Pixels HTML/CSS

Coding a new website. Basically, for position elements using CSS I would use percents and figured that was the best thing to do since everyone's monitor was a different size. But I noticed a lot of ...
11
votes
6answers
2k views

How can I write HTML, CSS, and JavaScript to make back-end developers work easier?

When I get a design from a designer, I get it as a PSD (Photoshop) file. I always expect proper layer and folder names, basically a clean and managed PSD. From this desigbn I develop HTML, CSS and ...
2
votes
1answer
776 views

How can I simulate clicks for a mobile browser?

I am creating a web app. I was testing it on a mobile browser and noticed that :active pseudo class doesn't really work. How should I simulate clicks for a mobile browser? I'm specifically interested ...