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

-3
votes
1answer
76 views

How to restrict user submitted CSS within <div> [closed]

We are having rich text editor in which we can insert html. if any input contains <style> tag then the css is applied to entire window. is it possible to restrict that CSS to be applied within ...
21
votes
5answers
2k views

Tight Coupling Between Javascript, HTML, and CSS: A More Modern Approach?

It's very common to see Javascript bound to certain selectors to find elements, store data, and listen for events. It's also common to see these same selectors used for styling. jQuery (and its ...
0
votes
0answers
78 views

Best practices in creating JavaScript styling API's: Balancing CSS and JavaScript

I have written a number of components for Durandal--DatePicker Widget, Tabs Widget, Radio Widget, etc. I'm having a little conceptual difficulty in how best to balance a styling API with CSS. For ...
0
votes
1answer
83 views

Twitter Bootstap: Backwards compatibility? [closed]

I work for a university Digital Services team. Our university's main website uses the Ektron CMS (I have my own thoughts about this, but that's irrelevant). Because we maintain a university website, ...
1
vote
3answers
153 views

What is the real difference between a minified and uncompressed file? What are the benefits of each?

I often see something like "uncompressed for development / minified for production" when reading blogs or downloading frameworks. What is the real difference between the two, and if minified is "good ...
0
votes
0answers
41 views

Including front end designers in enterprise web development

We are developing a web application using Java EE. The stack is heavy, the deployment is complex and now we want to include a purely CSS designer in the team. We want to include this designer without ...
3
votes
3answers
377 views

Reasons for moving from pure JavaScript to a JavaScript library

Being aware of the direct benefits of libraries having things wrapped in a package, making daily work easier, my question is leaning more towards the fact that many features not implemented in ...
0
votes
3answers
258 views

What process should I follow to implement (code) a web site in HTML5/CSS?

The title question is unfortunately pretty vague (or at least may be asking differently than what I intend)... but let me elaborate. I know basic HTML5 and CSS. I don't need to learn the tags and how ...
0
votes
1answer
59 views

MVC Widget optimization when accessing CSS and Resources

So we're trying to re-imagine our web solution in an MVC fashion. Going from an old webforms based solution to working with ASP.NET MVC with a bootstrap main menu and adding functionality in the forms ...
2
votes
1answer
57 views

Sass File Formating - what problems might are there with the following rules?

For a while now I have been considering the formatting of sass files to maximise their usability by other coders and I think that this would be perfect place to get some feedback on the rules I try to ...
18
votes
2answers
425 views

CSS for Visually Impaired people?

So while I was learning HTML I encountered CSS. It's interesting because with CSS you can make a webpage cool or more beautiful. But since it's more about colors, designs, styles etc., I can't know ...
0
votes
3answers
178 views

Will it be a wrong idea to have <style> in <body>?

In below code i placed internal style sheet with in body tag, instead of having in head. For Single-Page-Application I am considering to do this for styles that is only applicable to that page alone, ...
4
votes
4answers
180 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 ...
0
votes
1answer
201 views

Is a development environment required for small projects? [closed]

I won a bid on Elance and was had a request to fix some css and html issues with a WordPress site. How do I make changes to the document without working on the live site? Do you set up a development ...
0
votes
1answer
950 views

Switching between mobile webapp version using Ionic Framework and Desktop web app version?

I own a web application that make use of Twitter Bootstrap 3. This eases the design of the mobile version since it brings some responsive features. However, I would like a really native-mobile aspect ...
34
votes
5answers
2k views

Why not embed styles/scripts in HTML instead of linking?

We concatenate CSS and JavaScript files to reduce the number of HTTP requests, which improves performance. The result is HTML like this: <link rel="stylesheet" ...
3
votes
1answer
331 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 ...
-1
votes
2answers
50 views

How to manage styles on a group of websites

Up until now the styles were handled by a single CSS file (for each site). I'm customizing it like this: opened the site in Firefox opened inspector/style editor changed CSS values around until I ...
1
vote
3answers
242 views

Why are <section>, <header> and <footer> tags not used much when I see sites that are in HTML 5? [closed]

I've noticed that even when a websites front end is coded in HTML 5 as evidenced by the <!DOCTYPE html>, people rarely seem to use the new HTML 5 <section>, <header> and ...
3
votes
2answers
319 views

Semantic CSS class names [on hold]

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 ...
1
vote
3answers
412 views

CSS structure for creating responsive websites

I'm a back-end engineer who works on a small team so occasionally needs to do some front-end. I like to develop a good workflow and project structure before I start anything, so I'm wondering about ...
1
vote
2answers
175 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
198 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
60 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 ...
2
votes
2answers
2k 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
245 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
341 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
526 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
124 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
274 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
6answers
703 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
112 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 ...
0
votes
0answers
33 views

Bundling remote resources

Meteor essentially collects every CSS and JS file in your project folder and includes them for you. This is very convenient for rapid development; you can just drop files in your project, rename them, ...
1
vote
3answers
272 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 ...
3
votes
4answers
320 views

When making responsive design how many versions of account for?

I am learning how to make responsive layouts for sites and web applications. its said we need to use media queries to find out the width(resolution) and then select the layout(wireframe) for that ...
2
votes
2answers
221 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
80 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
401 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
412 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
1k 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
258 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
189 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 ...
32
votes
4answers
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 ...
5
votes
2answers
2k 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
355 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
459 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
207 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 ...
2
votes
2answers
514 views

Client side web development, general question

I'm a novice web developer, mostly worked with ASP.NET. On the server side, everything is very well documented and whenever there is an error, you get an explanatory error message. But on the client ...
4
votes
1answer
187 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 ...