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

1
vote
2answers
204 views

Is it correct to say that CSS is AOP? [closed]

With selectors being a counterpart to pointcuts, and rules pretty much doing the same as advices do, - can we say that cascading style sheets are adhering to aspect-oriented paradigm ? And a corollary ...
1
vote
3answers
236 views

History of vendor css prefix

When and how did this process of prefixing css with vendor specific prefix begin. Which browser/org start this and why was this started. I searched the web but found no details on this.
0
votes
1answer
65 views

Styling the HTML tag in a web document

is it good Coding Practice to add style to the <html> tag of a web document? why should you not style the <html> tag of a web document? I ask this because of this answer on a ...
1
vote
2answers
5k views

How can a website look different in safari Windows and Safari mac?

I have a website. I've been testing crossbrowser on my windows PC, and it looks good in all browsers, but on Mac in Safari it looks like the CSS is not getting interpreted right, or there is a ...
0
votes
3answers
257 views

What's wrong with this approach to CSS?

I have a static Jekyll website. The website is constructed once, on my computer, and then sent to the server in the form of plain HTML, image, and CSS files, to be served by a regular HTTP server. ...
0
votes
1answer
400 views

Interview for job that uses skills you have no experience with? [closed]

I am currently employed as a software developer using C# and C++. However, I want to find a new job for personal reasons and applied for a job ad that listed PHP, CSS, and Javascript as the skills the ...
1
vote
2answers
1k views

Can I use a @font-face of “Courier New”?

I currently have my font stack: font-family: "Courier New", Courier, monospace; In all browsers that I test in I see the font displayed in the Courier New font except for my android devices - my ...
0
votes
3answers
188 views

CSS File Editing for Teams? (how to avoid stepping on each others' feet?!)

I'm wondering if anyone has a good solution for when you're working as a team and there's a single file used throughout a project (like a styles.css file) and everyone needs to use it throughout the ...
-1
votes
3answers
349 views

What would be a good “umbrella” term for HTML, CSS, SQL, JavaScript and the like? [closed]

There appears to be a pretty clear consensus on the question about whether HTML and CSS are programming languages. They are not. HTML is a markup language and CSS is a stylesheet language. You could ...
2
votes
5answers
777 views

How can a server side developer survive in a position which expects front-end involvement? [closed]

My background is back-end server development. Very back-end. Now I work in a position where I need to also take care of front-end. Nothing fancy but I need to be able to code for front-end as well. ...
0
votes
1answer
118 views

Are there presently any standardized “grammar” rules for HTML & CSS?

Over the years I have assigned values to classes and html elements in all sorts of ways: myClass MyClass my_class my-class . . .and so on. As I am always trying to hone my craft and make my code ...
2
votes
3answers
367 views

Cogent arguments for 'semantic css' over 'object oriented css'

[Context - I'm a Java developer, having a discussion with a designer who works in the html/css space] I was having a discussion with a co-worker today about the merits of 'semantic css'. His ...
1
vote
4answers
441 views

When making responsive design how many versions of account for? [closed]

I am learning how to make responsive layouts for sites and web applications. It's said we need to use media queries to find out the width(resolution) and then select the layout(wireframe) for that ...
2
votes
2answers
241 views

When should I start using frameworks? [duplicate]

I'm little confused with the motive and need for frameworks. At what stage should I use frameworks? For example, if I want to use some CSS framework, should I learn CSS at pro or advanced level to use ...
1
vote
1answer
83 views

Un selectable content using CSS

I have found a website where the text is select protected. How can i make this without JavaScript. I think it is possible by using CSS. A set of paragraph is protected with non selectable contents. ...
4
votes
1answer
474 views

Is there a way to prevent the editing of HTML and CSS contents in a page using Firebug-like tools?

Is there a way to prevent the editing of HTML and CSS contents in a page using Firebug-like tools? I found that some users are editing some values in hidden fields and some contents which written ...
-1
votes
4answers
443 views

Am I required to memorize coding in a work space or can I fall onto references to provide me edge to finishing my development? [duplicate]

I would like to know if I am expected to memorize coding in a workspace or am I allow to fall into references whenever I am unsure. In a week of non-stop self learning, I feel I can understand the ...
-3
votes
3answers
2k views

HTML + CSS or HTML5 + CSS3 or HTML5 + jQuery [closed]

I want to be a good UI Developer. I'm confused whether I should learn (I need some serious suggestions): 1) HTML + CSS + JavaScript or HTML5 + CSS3 + JavaScript or HTML5 + CSS3 + jQuery 2) Is it ...
6
votes
1answer
279 views

Is there a standard way to structure a website

When I first taught myself how to make websites (html/css) I used exact pixel width and height for all div elements. I've also practiced making websites with nothing but percentage width and height. ...
3
votes
2answers
1k views

Are unused CSS rules so costly that they must be removed?

I have been reading various Web application optimizing articles and many of them suggest to remove unused CSS rules. Currently, I have a page which has jQueryUI css, Bootstrap CSS, Datatables CSS and ...
3
votes
1answer
191 views

Having a Starting Place for Coding a Site [closed]

This is more of preference question that I wanted to toss out to other developers to learn a bit more about others process when developing a site. Every time I start a site I feel I could save a lot ...
36
votes
5answers
1k views

What's the right way to work with a graphic designer?

Recently, we worked with a graphic designer (arranged by the client) to provide the skin for a Django+Bootstrap application we had built. The designer provided a series of static images of the new ...
6
votes
3answers
4k views

Responsive Web Design vs. User-Agent Sniffing

The CSS3 media query feature has led to many interesting possibilities in terms of developing websites which adjust to many different screen sizes and devices. However, in practice, I'm starting to ...
1
vote
4answers
436 views

Is XML, HTML/CSS, XSL analogous to Model, View, Controller?

For some time in personal projects I have been using XSL to convert my raw XML data into human-friendly HTML/CSS (in simple projects, I have no JavaScript, so let's leave that out of the equation for ...
4
votes
3answers
551 views

What is the best way to construct your CSS documents?

Normally I start a project working on a site, I'd do the basic html skeleton and then start tweaking the styles using CSS. Slowly I'd just add one CSS rule after another with no "organized structure" ...
2
votes
1answer
211 views

Is there a name for CSS code smell that can be seen in class names like “float” or “white”?

I noticed some code in our projects using CSS class names such as red, black or float. I want to provide some information for people so they know to avoid it. Is there a common name for that code ...
4
votes
1answer
207 views

Where did the html/css 'float' concept come from?

Pretty straightforward, was wondering what the inspiration or precedent for the CSS 'float' concept. I'm not familiar with any other graphic APIs or other layout DSLs that use this concept, but it's ...
0
votes
1answer
475 views

Mobile-first implementation or desktop-first? [closed]

When working with CSS media queries, I am unsure of whether I should program in a mobile-first style, or a desktop-first style. For example, let's say I'm given a design that consists of a set of ...
-1
votes
1answer
74 views

Better performance on web with big PNGs [closed]

I'm currently developing a web that is all made from images (an HTML version of a Flash web). The client provided me with a big PSD which I had to export each layer as a PNG to keep transparencies. ...
2
votes
4answers
734 views

Why Have People Started Deeming it Necessary to Separate JS hooks from CSS hooks in HTML?

Edit: Point of clarificatioon, IDs and classes as separate hooks is just one form of the applied idea in question which is to never use the same hooks for CSS as you do in JS. I've also seen people ...
1
vote
1answer
173 views

Why do we program each file separately and place them in separate folders and how do all these file come together?

I was wondering how the cover flow effect is coded. I used this link which gave me the code on how it all worked out : http://luwes.co/labs/js-cover-flow/. I am completely new to complex programs so ...
1
vote
4answers
168 views

Suggestions for CSS frameworks? [closed]

So I've started developing web sites and have learned HTML and CSS fundamentals. However, I often run in to WTF-moments concerning layout; what looks good in one browser may look strange in another ...
-3
votes
3answers
4k views

how easy is html/css? [closed]

many people say that html/css is something easy, it looks easy at first sight but when i worked on some projects i noticed that : same value works differently depending on other properties and on ...
5
votes
1answer
519 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
340 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 ...
22
votes
3answers
13k views

Are there any advantages of SASS over LESS?

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
6k 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? ...
2
votes
0answers
138 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 ...
7
votes
4answers
1k 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
361 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
218 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
375 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
311 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
179 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
451 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
654 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
484 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
1k 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?