0

I know that browsers render fonts differently especially bold fonts look different in all browsers unless font-weigh is set to normal but this stops us using bold fonts.

When I apply font-weight: bold; to #default_menu element, menu output gets very wide in some browsers compared to some others and it is a bit too much to be hones, not like 1 or 2 px.

Is there any chance to solve this issue or at least make it better?

Thanks

Fiddle Link

IMAGE

HTML

<ul>
    <li><a href="#nogo" title="HOME">HOME</a></li>
    <li class="main_menu_seperator">|</li>
    <li><a href="#nogo" title="HOW IT WORKS">HOW IT WORKS</a></li>
    <li class="main_menu_seperator">|</li>
    <li><a href="#nogo" title="PARTNERS">PARTNERS</a></li>
    <li class="main_menu_seperator">|</li>
    <li><a href="#nogo" title="BLOG">BLOG</a></li>
    <li class="main_menu_seperator">|</li>
    <li><a href="#nogo" title="CONTACT US">CONTACT US</a></li>
</ul>

CSS

#default_menu
{
    font-weight: normal;
}
#default_menu
{
    font-size: 16px;
}
#default_menu ul
{
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}
#default_menu li
{
    display: inline;
}
.main_menu_seperator
{
    padding: 0px 10px 0px 10px;
}
BentCoder
  • 12,257
  • 22
  • 93
  • 165

3 Answers3

2

Check the following thread.

I hope this is your issue

Same font except its weight seems different on different browsers

Community
  • 1
  • 1
Arun Bertil
  • 4,598
  • 4
  • 33
  • 59
  • I read this before but I though there could be a solution since but obviously not. Thanks – BentCoder Sep 06 '13 at 12:45
  • @MadMax, intentionally posting a duplicate, without even referring to an old question yoy’ve read, is not constructive. To help people find answers, we should improve answers to existing questions, instead of spawning copies of a question with different sets of answers. – Jukka K. Korpela Sep 06 '13 at 14:17
0

Like this

please try if you want normal font please write font-weight:100; and if you want bold font please use font-weight:600;

demo

css

if you want font-weight:normal not bold use below selector;

#default_menu
    {
       font-weight:100;/* normal font*/
       font-size: 16px; /*bold font*/
    }

OR

if you want to font-weight:bold please use below selector

#default_menu
{
font-weight:600;
font-size:16px;
}        
Falguni Panchal
  • 8,873
  • 3
  • 27
  • 33
0

The font depends on the browser and operating system.

Check this

font-weight property

font-weight: 400 /* is normal, not 100 */
font-weight: 700 /* is bold, not 600. */
Diego
  • 366
  • 1
  • 7