Can you change the colour of <legend>? [closed] - html

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 4 years ago.
Improve this question
I was wondering if you could change the colour of the line that the tag <legend> makes?

You can do it by changing the border-color of fieldset tag.
CSS code
.fieldset{
border-color: #ff0000; /*color of your choice*/
}
Html code
<fieldset style="border-color:#ff0000">
<legend>Some name:</legend>
</fieldset>

Related

how do i use different fonts of the words a <p> paragraph ?? in css and html [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 months ago.
Improve this question
for example
how must I use different fonts in a paragraph? I attached an example in the above image?
I tried using
creative corner
Just for completion, the comments pretty much answered it already.
HTML
<p class="myTitle">creative <span class="myClass">corner</span></p>
CSS
p.myTitle {
font-family: sans-serif;
}
p.myTitle .myClass {
font-family: monospace;
}

why is my text decoration none not working? [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 3 years ago.
Improve this question
The CSS text decoration is not working
See fiddle
a {
text-decoration: none
}
If you are trying to remove the bullet you need this:
.page-header nav li {
list-style: none;
}
See the update fiddle
https://jsfiddle.net/px9g3nLy/

How can I apply style to a div based on condition? [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 3 years ago.
Improve this question
I have a div, i want to show/hide it when condition.
I use this.
<div th:style="${#Model.SelectionList.Any()} ? 'display:block' : 'display:none'">
But don't hide div.
Simply use
For C#
<div style='#String.Format("{0}", (Model.SelectionList.Any() ? "display:block" : "display:none"))'>
For VB
<div style='#String.Format("{0}", If(Model.SelectionList.Any(), "display:block", "display:none"))'>
For ThymeLeaf
extend the curly braces
<div th:style="${#Model.SelectionList.Any() ? 'display:block' : 'display:none'}">

How to remove bullet points from <li> in TCPDF [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 5 years ago.
Improve this question
This is part of a PDF that I generated with TCPDF:
How would I remove the bullet points?
Give this a try:
li { list-style-type: none; }
That should make the markers disappear from the list.

Styling the clicked placeholder in CSS [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
When styling a placeholder, we use ::-webkit-input-placeholder, but what if we want to style a placeholder of a clicked input text field?
For an example, http://www.bbc.com/news/uk
the color of placeholder of the search box on the right top in the website is dark gray, but when you click in the search box, the color turns into light gray. Can I know how was that done?
You can use the :focus and ::-webkit-input-placeholder to achieve this. Here is the working demo
HTML
<input type="text" placeholder="My Placeholder" id="myInput">
CSS
#myInput:focus::-webkit-input-placeholder {
color: red;
}