How to choose right name for 2 same classes? [closed] - html

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 4 years ago.
Improve this question
I am having difficulties for editing this 2 things, i can't find the solution to edit individually in css.
Can you help me ?

You can refer to any HTML attribute to select individual elements:
input.zu-input-text[name="name"] {
/* CSS for "Name" text input */
}
input.zu-input-text[name="email"] {
/* CSS for "E-Mail" text input */
}
Theoretically, you could do that with placeholder property too.

Related

Is it ok to use label without an input field? [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 9 months ago.
Improve this question
I need to add some info in my form that is not related to the input fields.
Can I use <label> without having an input field because I want to maintain a consistent look with the rest of the form's text? Or should I use another method?
You can use label I think, but I don't suggest it. Use a span or a h(x) tag and add that tag to your css like :
label, span {
background: black;
color: white;
....
}

Add Cell Padding in open xml [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 7 years ago.
Improve this question
I need to add cell padding. Is it possible to do so? It should be similar to the table header.
you should use cell margins.
<w:tblPr>
<w:tblCellMar>
<w:top w:w="20" w:type="dxa"/>
<w:start w:w="20" w:type="dxa"/>
<w:bottom w:w="20" w:type="dxa"/>
<w:end w:w="20" w:type="dxa"/>
</w:tblCellMar>
</w:tblPr>
see this link for reference.

Display html tags as plain text for viewing [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 7 years ago.
Improve this question
im trying to make visible as text as now it just creates the html tag and isn't text. i've tried doing
tag {
display: block;
}
but it seemingly isn't working.
anything would be helpful thanks
To display the html tags as text you need to encode them.
For example :
<span>Hello</span>

Remove whitespace of HTML form [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
I have this code that indents/whitespaces the content.
<form action="update-carousel.php" method="post">
How can I remove such indent/whitespace? I assume with CSS, but I do not know the tags to do so.
If you want to remove margin and padding for the form-element, then use this in your css:
form {
margin: 0;
padding: 0;
}
Margin is whitespace external to the element and padding is internal.
You have to use JavaScript (and/or do it on server-side).
This question will show you how to do it.
Note: CSS is for the design of your page, not for doing such operations.

css style definition [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 8 years ago.
Improve this question
I am using style definitions like
.detail-navi-contents div.tab-active, .detail-navi-contents div.tab-inactive { }
is there any better way to write this definition? Or it ok so
What about this? If you're getting both inactive and active, then why select on them?
Try:
.detail-navi-contents div { }