All Questions

319
votes
4answers
59017 views

In CSS Flexbox, why are there no "justify-items" and "justify-self" properties?

Consider the main axis and cross axis of a flex container:                        &...
396
votes
16answers
243489 views

Is there a W3C valid way to disable autocomplete in a HTML form?

When using the xhtml1-transitional.dtd doctype, collecting a credit card number with the following HTML <input type="text" id="cardNumber" name="cardNumber" autocomplete='off'/> will flag a w...
194
votes
7answers
48970 views

Is quoting the value of url() really necessary?

Which of the following should I use in my stylesheets? /* Example #1: */ background-image: url(image.png); /* Example #2: */ background-image: url("image.png"); /* Example #3: */ background-image: ur...
112
votes
4answers
54122 views

Why are margin/padding percentages in CSS always calculated against width?

If you look at the CSS box model spec, you'll observe the following: The [margin] percentage is calculated with respect to the width of the generated box's containing block. Note that this is true...
39
votes
9answers
16981 views

Is it wrong to change a block element to inline with CSS if it contains another block element?

I know it's wrong to put a block element inside an inline element, but what about the following? Imagine this valid markup: <div><p>This is a paragraph</p></div> Now add th...
60
votes
5answers
75045 views

Are there any style options for the HTML5 Date picker?

I am really stoked about the HTML5 date picker. It is refreshing to know that the W3C is finally picking up some of the slack so we don't have to keep re-inventing such a common form of input. The ca...
55
votes
1answers
4022 views

What is the point of CSS collapsing margins?

The CSS2 box model tells us that adjoining vertical margins collapse. I find it quite annoying, being the source of many design bugs. I hope that by understanding the purpose of collapsing margins, I...
3
votes
1answers
5834 views

Which are the standard W3C meta tags?

What are the list of standard meta tags defined in W3C other than the below given at http://www.w3.org/wiki/HTML/Elements/meta <meta http-equiv="Content-Type" content="text/html; charset=utf-8" ...
47
votes
4answers
28267 views

jQuery serializeArray doesn't include the submit button that was clicked

I have a form that has two buttons. One for saving a record and the other for cancelling the save procedure. I am using the rails.js (a common AJAX/jQuery plug-in for those of you not in the know) ja...
163
votes
10answers
92006 views

input type="submit" Vs button tag are they interchangeable?

input type="submit" and button tag are they interchangeable? or if there is any difference then When to use input type="submit" and when button ? And if there is no difference then why we have 2 tags...

Previous Next