Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Team,

i written code as follows:
<p16 class="">NFO Opens &nbsp; : &nbsp; 24th &nbsp; August &nbsp; 2015.<br> NFO Closes &nbsp; : &nbsp; 26th &nbsp; August &nbsp; 2015. </p16>


[EDIT]
<p16 class="">NFO Opens   :   24th   August   2015.
NFO Closes   :   26th   August   2015.


i am not getting the date in proper manner.it looks like up and down in my page.date is not getting shown in proper manner.why is it so??

Thanks
Posted
Updated 2-Nov-15 19:58pm
v2
Comments
George Jonsson 3-Nov-15 1:59am    
What is the proper manner?
How do you want it to look?
R Harshal 3-Nov-15 2:35am    
in that 26th august 2015. so 2 looks small in front of 6.In that case its look like up and down.
R Harshal 3-Nov-15 3:13am    
would u help me please.
George Jonsson 3-Nov-15 4:14am    
I think OriginalGriff has the solution for you.
Suvendu Shekhar Giri 3-Nov-15 2:11am    
"looks like up and down" means?

1 solution

It depends on the font you are using: most are proportional which means that all characters are not the same width; an "I" is narrower than a "W" for example.
IIII
WWWW
Non-proportional fonts all have characters with the same widths:
IIII
WWWW

So one way to do what you want is to change the font - but that can look ugly.
Instead, consider using a table instead: W3Schools HTML tables[^]

[edit]Tablet autocorrect :sigh:[/edit]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900