Viewing 6 replies - 1 through 6 (of 6 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Typically you’d target the textual element, the anchor tag within that list.

    E.g:

    .main_nav ul a {
     font-size: 200em;
    }

    Good CSS reference site:

    https://www.w3schools.com/css/default.asp

    Also:

    https://csscreator.com

    Best to avoid changing theme files – so use a Custom CSS plugin for any changes – Custom CSS Manager is a good one.

    Thread Starter Ioan

    (@ivevera)

    My theme includes a custom css field, so I don’t need more plugins.
    Thanks Andrew, I’ll try your suggestion and reply asap.

    Thread Starter Ioan

    (@ivevera)

    Ok, it worked, thanks andrew.
    one last question: how do i center the header logo? the “float:” works only on left/right.. it doesn’t have an center option..
    Any suggestions? thanks

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    This article should help with centering things: https://www.w3.org/Style/Examples/007/center.en.html

    If you’re trying to center an inline element, you can get away with using text-align: center; on its parent element.

    If you’re trying to center a block element, you usually add a width and then a margin left and right of “auto”, e.g margin: 0 auto;.

    If it’s an element with variant widths, like a navigation menu (where items can be added/ removed/ edited) then you can avoid adding a width and instead display that element as “table”, e.g display: table;. Then continue to add the left and right margin auto styles.

    Thread Starter Ioan

    (@ivevera)

    Ok, thanks, I managed to do it newbie way (my way :D, I mean I added transparent margins to my header so it will fill the entire space in the header..). btw, It doesn’t matter as long as it works.
    You’re awesome, thanks again.
    -solved-

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to change top menu's font size?’ is closed to new replies.