Need help for a wordpress minor fix

Discussion in 'WordPress' started by China_girl, Jan 30, 2019.

  1. #1
    On my website header, I have different sections and sub sections. However one of the seb-sections, the text is coming in two lines, but I want it in one single line.

    I had done it before, but now I forgot how did I do it before.

    site is chinambbsabroad.com

    Screenshot_3.jpg
     
    China_girl, Jan 30, 2019 IP
  2. hdewantara

    hdewantara Well-Known Member

    Messages:
    538
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #2
    For the 2 menu items under "Other Programs"? Try to add CSS rule
    white-space: nowrap;
    Code (CSS):
    there...
     
    hdewantara, Jan 30, 2019 IP
  3. China_girl

    China_girl Well-Known Member

    Messages:
    4,095
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    195
    #3
    Which section in the editor should I put this code ?
     
    China_girl, Jan 30, 2019 IP
  4. hdewantara

    hdewantara Well-Known Member

    Messages:
    538
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #4
    Well,
    I was about to suggest line #41 inside your style.css of academica theme to be updated as follows:
    #menuhead li ul a {
    width:185px;
    float:left;
    display:inline;
    border-bottom:1px solid #555;
    white-space:nowrap;
    } 
    Code (CSS):
    but then I saw your "empty" custom.css file...

    So I guess it's better to put it in custom.css:
    /******************************************
    CUSTOM STYLESHEET
    *******************************************/
    /*
    * You can place your custom CSS statements in this file, after this message.
    * It is better to write everything custom here because this file won't be replaced during updates.
    *
    * Simply copy an existing style from style.css to this file, and modify it to your liking.
    */
    #menuhead li ul a {
    white-space:nowrap;
    }
    
    Code (CSS):
     
    hdewantara, Jan 31, 2019 IP