I've seen in CSS horizontal tabs that the width of each tab depends on the length of the text within.
How can I make same width tabs containing words of different length and each word centered inside the tab?
Thanks
![]()
I've seen in CSS horizontal tabs that the width of each tab depends on the length of the text within.
How can I make same width tabs containing words of different length and each word centered inside the tab?
Thanks
![]()
sorry don't really understand what you mean, like this?
Code:<html> <head> <style> .tab{ width:100px; text-align:center; border:thick; border-style:dotted; } </style> </head> <body> <div class="tab"> testing what </div> <br /> <div style="border:thick; border-style:dotted;"> testing </div><br /> <div style="border:thick; border-style:dotted;"> hahahahahaha </div><br /> <div class="tab"> what happen </div> </body> </html>
Yes! thanks![]()
Bookmarks