Disable or hide fields that are not applicable [closed] - html

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
These are more of user interface design questions
Sometimes fields on an HTML form may not be applicable for a particular criteria (say based on the selection of an item from a pulldown menu). In such a situation, is it better to hide the field or to simple disable/gray it out? One thing I see in that is: HTML hiding fields may affect the layout of the page or have extra white space (if visibility is set to hidden)
When a form is being submitted, is it better (in general) to present a confirmation page before the user commits the information? Is there a a standard for design of this?

I believe it's better to hide the element, to remove possible confusion and to make the page cleaner. If you use display: none, instead of visibility: hidden, it will remove the extra whitespace.
I don't think it's necessary to have a confirmation page, unless there's payment involved.

Related

Why is facebook's html wrapped inside a table mobile login page? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
Improve this question
Why is Facebook's HTML wrapped inside a table mobile login page ?
Even more intriguing, inside the table there is a single tbody with a single tr with a single td.
https://m.facebook.com/ (login page)
The main difference between tables and other html elements is: They don't get rendered at all before the whole content is completely loaded. By using this trick, the authors made sure the page renders only the way as they intended and does not display only a part of the elements there.
Of course, they targeted especially mobile connections which could break while loading the page or could be terribly slow so you might start using the page although it's not loaded completely yet.

Change LongListSelector's SelectedItem's ItemTemplate [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I'm new to Windows Phone and writing an application that uses LongListSelector with group to display data. What I can't implement is, I'm trying to change LongListSelector's ItemTemplate from code by selecting an item of LLS. I tried lots of things but I think they're all for loading, I cannot change an item's template.
What should I use to change an item's template of LLS by selecting it?
Sorry for the late reply, I must have missed a notification.
So, my second suggestion still won't work. It's only for static templates, meaning once your Items DataTemplate is loaded, there's no way to change them.
What you can do though, is have the XAML of your normal and selected templates in a style and tweek their visibility based on VisualState. I've edited the sample disklosr posted to illustrate what I mean, notice how the StoryBoard of the CustomUserControl changes the visibility of the NormalGrid and SelectedGrid. You can have any layout you wish inside those two grid's bound to your dataItems.
Sample

Can a table be styled like this? Or would something else be better? [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 8 years ago.
Improve this question
Basically I am working on some practices since last week to start learning html and css, and I wanted to create a table of sorts to display items with the option to see more info and take/buy it. I was thinking in adding some background icons or image hence the strange looking table.
My question is. Can something like that be styled or would a normal table be better? To illustrate my point I did a mockup of sorts.
Oh! And as not to make another question just for that, can a dropdown list be made to have checkboxs without using jQuery? I'm afraid that is completely out of my reach with my current knowledge.
http://i59.tinypic.com/25z47dh.png
Thanks a lot in advance
Best Wishes
You have a few options:
You may use display: table and assign table 'rows' and 'columns' on div tags.
Or
You may use float: left which will line everything like a table and be more responsive.
Or
You may use display: inline-block which will behave a lot like the floats except you get a little bit more control on box height.
There is no correct answer here but my preference is with inline-block since browser support tends to be superior than floats while keeping everything responsive.

How to Make CSS3 Columns Display Properly [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I am working on a website that uses CSS3 colums to break up the text of the article to three columns. In it's current state, there is a few paragraphs, an unordered list and a few more paragraphs.
I want the article to essentally read like a newspaper, but CSS is breaking this up in a really perculiar way, and I cannot figure out how to fix it. The current website is the Hospital Safety Store. Thanks for your help!
Quite frankly, with purely css and nothing else you can't split the contents of a single div across multiple columns like that.
Each column should be it's own DIV, which means you'll have to pre-split the article into three. You could do this manually but it'd probably less of a headache to write some php on the back-end to break up the article programmatically.
I'd typically have one container-div that is the full width, and then have child div's for the different columns.

Css id used two times [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 9 years ago.
Improve this question
I heard that css id can be used for only one element in a page But this is true when we play with script but on presentation alone this is not affecting anything.
presentation Here there is no effect we are able to create things simply(created two div with same id->no effect).
presentation with script activity Here we cannot do anything this is what we know as it can be used only one time.
I know without script we are not going to do anything but i just want to share this things and get other web geeks opinion on this things.
I'm not sure what you're asking or telling us.
It's simply bad form and against spec to use an id twice in the same document, so don't do it.
If you think you want to use multiple ID's what you REALLY want to do is use a class instead.
From the CSS selectors spec:
What makes attributes of type ID special is that no two such attributes can have the same value in a conformant document, regardless of the type of the elements that carry them; whatever the document language, an ID typed attribute can be used to uniquely identify its element.
It does not specify what the UA must do when it encounters such a situation, and as most browsers are very lenient what you propose will most likely be styled correctly. But you will have an invalid document.