I work on asp.net mvc i face issue on design html table . issue text of any feature wrap on new line and not alignment
so how to prevent text wraped on new line using html and css
so can any one help me
my issue is text of feature display on two line
and i need it display as one line
as you see text underline red color as
resignation
submition
date
expected
resignation submition date
???
??????
expected
??? ??????

Ali BenchaabanPosted Jan 3, 2024, 2:30 PM
Here is the implementation with your code by applying the
white-space: nowrap;property to thelabelselector in thePlease if it's Ok for you accept the solution to close the subject.
Regards,
BENCHAABAN Ali
ahmed salahPosted Jan 2, 2024, 10:48 PM
ok can you show me how to use white-space: normal|nowrap|pre|pre-wrap|pre-line;
on my sample please
can you show me how to use it
Ali BenchaabanPosted Jan 2, 2024, 10:39 PM
Hello,
To achieve this you use white-space property of CSS. This property forces the contents of th to display in one line. There are many property values that exist in the white-space function.
Try this example in jsfiddle uses white-space property to prevent cell wrapping using CSS.
https://jsfiddle.net/alibenchaaban/wmhudk4n/5/
Regards,
ahmed salahPosted Jan 2, 2024, 10:06 PM
so how to modify it
please can you show me if possible please
Sam HobbsPosted Jan 2, 2024, 10:03 PM
If I understand what you are saying then the problem is that there is not enough room for all of it to be in one line. The table cell for
The Reason of Resignation:haswidth:200pxand that apparently is too small. You must make the horizontal space larger somehow.