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
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
432 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
424 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
266 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 ...
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 ...
6
votes
3answers
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
393 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
497 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
208 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
551 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
199 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
441 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
73 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
640 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
169 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
166 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
3k 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 ...
-1
votes
2answers
537 views

What are some interview questions I can expect for a technical evaluation? [closed]

I am 20 years old and I've been doing some web development work for about 2 years or so. I have an interview for a Junior Web Developer position and the company knows that but I'll still be going ...
5
votes
1answer
453 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
290 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
1k 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 ...
19
votes
3answers
12k 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
136 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
887 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
315 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
213 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
353 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
271 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
176 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
419 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
2k 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
538 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
440 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?
4
votes
1answer
146 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 ...
5
votes
2answers
6k 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 ...
6
votes
3answers
272 views

Where can I learn about browser-specific quirks?

I am a professional iOS, Java and C# programmer. Now I want to build a website. The problem is I have already started building it and I am finding IE is not rendering it correctly. It is rendering ...
2
votes
3answers
146 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
519 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
4k 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
172 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
603 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
1answer
833 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
180 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
950 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
396 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, ...