Things you can do with Flexbox that were impossible without it [closed] - css

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
What are the completely new things you can do with Flexbox which you wouldn't be able to do before in any way using only CSS (without markup changes). I understand Flexbox makes many layout issues much more straightforward and easier to maintain, but am also interested in knowing what unique features it brings that were completely impossible before. After reading some articles I still can't crystallise any thorough list in my mind, so far being able to come up only with 2:
Layout mixing items with fixed and relative sizes. In many cases it could be done using calc function (though it will quickly become messy), but I think some borderline cases can't be make up for without adding extra markup (or am I wrong an it can?)
Displaying things in the order completely independent from the source order

Related

What specific use cases would you use id selectors instead of class selectors? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I also found this post, Why should I not use style IDs using CSS? saying
Styling IDs goes against DRY principles and is something that should
be avoided, if it makes sense. There are situations where you need to
style a single object and you know it will never be shared with
anything else on the page so I think saying never style IDs is
disingenuous, as long as you're aware of the maintainability risk and
it's acceptable do what you need to do to get the job done.
What I use more or less all the time is querySelector/querySelectorAll
They give you a whole lot more than getElementById can, though can do the same as well like this, using CSS selectors
var el = document.querySelector('#foo');
Btw, id an element is not bad practice, though sometimes it is not as practical as using classes, mainly as they always need to be unique, which on the other hand is their strength, find one using getElementById is fast.

How can I suggest things to W3C? [duplicate]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Recently I've wanted to do a number of things using CSS only to find that the best solution is to use Javascript. This has made me wonder, does anyone here know how to go about making development suggestions to be implemented into CSS 3 spec?
It would be great if we could get some sort of feature request/vote based system going that the w3 guys could at least look at. I know, as a programmer, I often overlook obvious things when I'm deep into something.
You should probably subscribe to the www-style mailing list of W3C
This mailing list is for technical discussion on Cascading Style Sheets (CSS) and its specifications. All posts to this list must be about the development of the CSS specification itself. This list is also the preferred place for discussing working drafts that are published by W3C's CSS Working Group.

The best way of combining a picture with textboxes [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I've gotten a task which I feel I really don't know the best approach for.
So here I am, asking for your help and opinions.
I've been assigned to create a form on a webpage (ASP.NET WebForms) with multiple textboxes
where people should fill in different measures. The textboxes are to be placed on top of a schematic sketch over the measured object in question, hence the textboxes won't be positioned in a straight vertical alignment but can be
The way I've done it so far is by having it grouped as follows:
Div with the background image (relative positioning)
Div with measurement texbox (absolute positioning)
Now, while this works, is there another way of achieving this or is this the best way?
I haven't dabbled to much in HTML5 and maybe there are something that can be utilized there?
Your help and opinions are greatly appreciated.
Your approach is common practice and definitely what most people would advise. I don't think HTML 5 has anything new to offer here.

What constitutes reasonable unit testing of a web application's interface? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
We have a large web application in my office and we have a relatively large testing framework in place for the codebase (jsdriver and mocha). I'm pretty happy having a lot of the code tested (modules for web queries, controllers, etc.), but we have a lot of code that checks styling down to the pixel, which really bugs me. We have a lot of hard-coded values in the tests that make sure everything is where it's supposed to be.
For example, we have a widget A and another widget B inside of it. We then check if B is globally located properly in relation to its relative position and A's relative position. This means if we go into the styles and move something down a couple pixels, we have to go into the tests and change that hard-coded value by a couple of pixels.
This seems to create a very tight coupling of the style and tests, which I don't see a lot of value in. From an interface perspective, I see more value in testing things like is widget X visible when we move into this state. Is this a standard practice to so closely follow the pixel values? And if not, is there a better way to do it?

How do I submit suggestions to the CSS spec? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Recently I've wanted to do a number of things using CSS only to find that the best solution is to use Javascript. This has made me wonder, does anyone here know how to go about making development suggestions to be implemented into CSS 3 spec?
It would be great if we could get some sort of feature request/vote based system going that the w3 guys could at least look at. I know, as a programmer, I often overlook obvious things when I'm deep into something.
You should probably subscribe to the www-style mailing list of W3C
This mailing list is for technical discussion on Cascading Style Sheets (CSS) and its specifications. All posts to this list must be about the development of the CSS specification itself. This list is also the preferred place for discussing working drafts that are published by W3C's CSS Working Group.

Resources