Click here to Skip to main content
15,891,811 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello there, I am trying to use macron for my website but it doesn't look like a real macron and look very strange. Suppose i want to write word 'Māori' but in some font style it doesn't appear so well. so if i write ma-ori and then use CSS to align '-' sign over 'a' to make a macron word. Does anyone think this should be possible?

Cheers!
Posted

I don't know about moving it over with CSS, I doubt it. but you might look into SVG as an alternative to getting the exact look you want.
 
Share this answer
 
If you want to align only '-' sign over 'a'
<p class="macron">M<span class="mc-word">a<span>cron</p>

CSS
.macron{ font-size: 60px; }

.mc-word:before{
  display: block;
  content: '';
  height: 2px;
  width: 10px;
  background-color: #000;
  position: absolute;
  margin: 0 auto;
  margin-top: -50px;
  margin-left: 60px;
}


And for all the macron word, you can use HTML codes. i.e Ā
See the complete list here[^] and W3C[^]

-KR
 
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