Questions tagged [css3]

24 questions
15
votes
3 answers

Why doesn't CSS allow single-line comments?

I understand that CSS only supports multi-line comments like such /* foobar */ Why is there not support for single line comments. // foobar They are just as common in programming and seems particularly useful for a language like CSS where each…
Goose
  • 1,858
  • 2
  • 15
  • 27
11
votes
1 answer

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 { font: normal 12px arial, helvetica,…
Yugal Jindle
  • 359
  • 2
  • 12
10
votes
8 answers

Is it necessary to memorize code?

I am a new developer, who just got hired at a big company. I don't know how but I guess they are desperate. However, I am well-versed with HTML5/CSS3 though things change and new things are released and I keep up with as much as I can. But this…
AAA
  • 313
  • 1
  • 3
  • 9
9
votes
3 answers

Why shouldn't "responsive" web design be a consideration?

This might seem like more of a graphic design question than a programming question, but I think it has much more technical/programming merit than actual graphic design. The concept of "responsive" web design revolves around using media queries in…
Nic
  • 1,411
  • 8
  • 21
7
votes
1 answer

Why CSS3 Basic Box Model is "Dangerously outdated"?

These days I'm learning CSS by reading specifications, but I noticed W3C marked CSS Basic Box Model Level 3 as "Dangerously outdated" without any further explanation. So my question: What's the reason for considering that specification…
Sayakiss
  • 285
  • 2
  • 8
7
votes
3 answers

Where to put css media queries in a CSS file?

Where to put CSS media queries? Each after the related element class style or pack them at the bottom of the CSS files? which one is standard? or which one do you prefer?
Milad Rahimi
  • 227
  • 2
  • 9
5
votes
5 answers

Wrong use of CSS3 Animations or not?

Well, I started using some CSS3 animations a couple of days ago. After hardcoding I've started trying different tools like Adobe Edge Preview version. I made a short animation to get the functionality of the…
3
votes
1 answer

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 CSS3's Media Queries. My question is, given the…
paul smith
  • 423
  • 1
  • 5
  • 11
2
votes
2 answers

Visual Studio build everytime JS and CSS changes?

I am relatively new to Visual Studio Development and I was wondering - it seems that everytime I make changes to my JS or CSS in my project - I have to "build" the project again. Is there any way to simply refresh the browser as opposed to building…
Andy
  • 131
  • 1
  • 4
2
votes
1 answer

CSS3 will be standardized by browsers?

I'm using CSS3 for the first time, but using specific styles with prefix for each browser looks strange. The need of using -moz-, -o-, -webkit- and another prefix turns the CSS bigger and harder to maintain. I want to know if the browsers are…
Renato Dinhani
  • 2,885
  • 2
  • 17
  • 18
1
vote
2 answers

How to make scalable modules in a div element

I'm interested in creating web modules that are encapsulated by a div element in a manner that, by simply resizing the div, everything in that div scales to the dimensions of that div proportionately (fonts, sub-divs, etc.). A couple of weeks ago, I…
Lonnie Best
  • 210
  • 2
  • 9
1
vote
1 answer

Is it okay to use CSS3 with HTML4?

Is it alright to use CSS3 with HTML4. It seems like CSS3 would be a HTML5 complaint deal. But I'm not sure if that's the case. If it's not okay, what are the downfalls to using CSS3 with HTML4, opposed to CSS3 with HTML5?
user160274
1
vote
1 answer

CSS3 shorthand properties

Working on my own I tought I need to learn that css3 shorthand properties, because - as I know now, it affects website's loading time, so I need to optimize it a little bit. I was thinking - is there any order how to write property values, when…
davisdev
  • 39
  • 4
1
vote
1 answer

Should I provide fallbacks for HTML5/CSS3 elements in a web page at this point?

I'm wondering if I should bother providing a fallback for HTML5 tags and attributes and CSS3 styling at this point in time. I know that there's probably still a lot of people out there who use older versions of browsers and HTML5/CSS3 are still…
Abluescarab
  • 521
  • 5
  • 14
0
votes
3 answers

Using the symbol ⎋ to denote any "escape" in Javascript, CSS, HTML etc

I know that: Computer keyboards have an Escape Key The symbol for the Escape Key is U+238B Broken Circle with Northwest Arrow (⎋) and I also know that: HTML5 & CSS3 both have escape characters Javascript has the backslash escape character (\)…
Rounin
  • 275
  • 1
  • 10
1
2