![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
If I add "display: block" I will have the background color extended 100%. I don't want to set a width because the length of the error message is not known. |
#3
| |||
| |||
|
|
Hello, I have an input and a span as follows: label for="Title">Title</label input id="Title" type="text" value="" name="Title"/ span class="Error">Some error message</span I would like the span to be under the input and not on its right. I could add "display: block" to the span. The problem is that the span has a background color: form span.Error { background-color: #FFA0A0; color: #FFFFFF; padding: 0.2em 0.4em; } If I add "display: block" I will have the background color extended 100%. I don't want to set a width because the length of the error message is not known. |
|
Thanks, Miguel |
#4
| |||
| |||
|
|
Hello, I have an input and a span as follows: label for="Title">Title</label input id="Title" type="text" value="" name="Title"/ span class="Error">Some error message</span I would like the span to be under the input and not on its right. I could add "display: block" to the span. The problem is that the span has a background color: form span.Error { background-color: #FFA0A0; color: #FFFFFF; padding: 0.2em 0.4em; } If I add "display: block" I will have the background color extended 100%. I don't want to set a width because the length of the error message is not known. |
![]() |
| Thread Tools | |
| Display Modes | |
| |