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
4answers
276 views

Naming CSS classes and IDs

I'm quite a CSS beginner. I've read some introductory books but now I came across a sort of question that isn't answered in any of them: Let's say I have a basic HTML-based website with a standalone ...
5
votes
2answers
417 views

CSS in a CMS - Pros/Cons [closed]

I am a regular user of Wordpress and whenever I feel the need to change the look of a DOM element, I prefer to use it inline. This is just because I don't want go back to the stylesheet and create new ...
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 ...
5
votes
2answers
416 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 ...
5
votes
1answer
993 views

OOCSS / BEM / SMACSS architecture

I've been working through this article to organize my front-end code. It references articles on BEM / SMACSS, which in turn reference other articles. I'm really trying to understand what the best ...
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
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 ...
5
votes
2answers
562 views

Best way to convincingly evangelize front end best practices to colleagues?

I've had experiences in the past working with (traditionally back-end) developers, whose occasionally cross into the front end realm. The resulting code would typically involve: global namespace ...
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 ...
5
votes
2answers
240 views

CSS practices: negative positioning

I'm somewhat of a novice to CSS. Anyway, I noticed that an extremely common method used in CSS is to have negative or off-screen positioning, whether it be to hide text or preload images or what have ...
5
votes
1answer
452 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: ...
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 ...
4
votes
6answers
1k views

Can CSS be considered a DSL?

According to Wikipedia, CSS is a style sheet language. However, it's pretty much the only such type of language in use (at least from a web developer's perspective). When trying to categorize CSS as ...
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?
4
votes
4answers
26k views

Is CSS a programming language? [duplicate]

Possible Duplicate: Why does it matter that HTML and CSS are not programming languages? As I understand a programming language is something that can be used to solve a problem/perform an ...
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" ...
4
votes
3answers
955 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 ...
4
votes
3answers
305 views

Is it possible to combine XPath and CSS selectors?

Just came through XPath. I got curious about this. Why is there a different way to select tags in XPath and CSS(selectors). Why cant there be a common way in both XPath and CSS?
4
votes
2answers
1k views

Are there any frameworks available for drawing with CSS?

I realize this sounds silly. Let me explain: I just came across this page about using CSS elements to create shapes- square, circle, triangle, star, yin-yang (yin-yang!), etc. using pseudo elements. ...
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 ...
4
votes
1answer
946 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 ...
4
votes
1answer
148 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 ...
3
votes
5answers
2k views

HTML 4, XHTML and CSS 2 - How long until these are obsolete?

I got into the game of programming, exactly a year ago. Now i am posing as an HTML, CSS and Javascript Guru. html5 and css3 are the new things out there but in my opinion they are still experimental, ...
3
votes
4answers
2k views

Can you write a (dynamic) website using only XHTML and CSS?

I am more of a desktop developer that a web developer. Therefore I only know XHTML and CSS when it comes to the web (and C#, if that is in any way useful). I have a little experience with ASP.NET with ...
3
votes
4answers
146 views

to what level should the drawn design match the real web site

I am working on a web site. The client has drawn it in Microsoft Publisher, and I am using this drawing as a working graphical design. The problem is that there are a lot of places on the web site ...
3
votes
1answer
367 views

Specifically for JS, CSS, HTML: what is the difference between optimization, compression, minification, tidying, concatenation?

When we talk about source code and the file which contains the code like CSS, HTML, JavaScript and we also talk about performance of a web site or application, what is the differences between these ...
3
votes
1answer
469 views

Why are there so many CSS properties which are essentially the same?

This answer really made me wonder. I've written CSS before and (usually) I don't really bother to support browsers other than recent firefox and chrome, but in researching I've noticed that, for the ...
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
3answers
681 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 ...
3
votes
4answers
241 views

Should I rely on Visual Studio in adding HTML and CSS?

I am wondering if I should rely on Visual Studio in adding HTML and CSS elments by using the viusal toolbars or should I write them by myself? Is it considered bad practice if I relied on Visual ...
3
votes
3answers
439 views

Recommended requirements when outsourcing xhtml/css site building?

I'm considering outsourcing a part of our web application development project for freelancers, namely the site building part. What I mean by site building is the process of creating the xhtml/css ...
3
votes
5answers
429 views

How to get into web coding?

I don't know how to get into this area, or more specifically, become a website maker. Here's what I now html some java script C# and a little of everything else (php, css, xhtml, ect.) I've been ...
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 ...
3
votes
5answers
335 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 ...
3
votes
2answers
758 views

Semantic CSS class names [closed]

I always read articles that suggest to not use presentational CSS class names. Currently I'm working on a small website project. The footer on this website looks like this: Although it's pretty ...
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?
3
votes
3answers
1k views

Is using Javascript/JQuery for layout and style bad practice?

Many, but not all, HTML layout problems can be solved with CSS alone. For those that can't, JQuery (on document load) has become very popular.* As a result of its ease, many developers are quick to ...
3
votes
1answer
827 views

html/css/js best practices [duplicate]

Possible Duplicate: What should a developer know before building a public web site? Are there any books or resources on html/css/js and web design best practices? There are plenty books ...
3
votes
1answer
199 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 ...
3
votes
1answer
272 views

Is it standards-compliant to style the <html> node?

I am working on a website theme. I want to use a repeating background on the <html> node so I can have another background overlapping it on the <body> node. Otherwise, I would add the ...
3
votes
1answer
195 views

Peer review for UI Development

I am the only front-end developer in a team composed for 3 .Net devs, 1 QA and 1 PM. Although we have another team from another office halfway around the world, to whom would i do code review with? ...
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 ...
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 ...
3
votes
0answers
71 views

Why does the order of the link elements in <head> matter? [migrated]

From Code Academy's Make a Website: CSS Styling: <head> <link href="font.css" rel="stylesheet"> <link href="main.css" rel="stylesheet"> </head> ...
3
votes
4answers
1k views

Guidelines for HTML/CSS/JS optimization process

Currently we have a Development server on which we write the HTML/CSS/JS code. We do not optimize our code using compressors/minifiers. So our deployment process from Development to Production is ...
2
votes
3answers
649 views

Writing a client contract for Web development?

I am a small time web dev freelancer during my time off at university and I have some horror stories when it comes to designing sites for people (not that the sites are bad - just the clients DO NOT ...
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. ...
2
votes
5answers
1k views

It's 2011 - why do I still have to use tables for email?

This might seem like a rant, but I am curious. CSS replaced tables for layout a long time ago. But we still have to use tables for layout when creating rich emails. Why is this? Are there any other ...
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 ...
2
votes
2answers
2k views

When should I use a CSS class over inline styling?

I have some hidden divs that I show via JavaScript when a button is clicked. Right now, I'm hiding them with by using inline styling (i.e. style="display:none;"). This works, but are there general ...