dongmi4720 2013-05-14 22:11
浏览 12

翻译时导航栏延伸到第二行

I'm building a website that is going to be displayed dynamically in either English or Spanish. When in Spanish the words are longer and cause the navigation bar to lap onto a second row.

http://bit.ly/ZZ5Waq

What code do I need to change?

Thanks! -Cullen

EDIT: I would rather not make the font smaller. It's important that it remains the same size in English.

However I am willing to make it smaller/reduce padding in the Spanish version.

Does anyone know how to add CSS styles if the URL of the page has /es/ in it? Preferably with PHP.

  • 写回答

2条回答 默认 最新

  • doubingqi5829 2013-05-14 22:27
    关注

    You can do lots of things to make the navbar 1 line.

    1) Making a smaller font-size or a different font-style that has shorter character spacing.

    2) As well, you can try to make the padding within each menu list smaller so that it will fit in.

    3) Although you probably wouldnt' want to do this, you could even make the spanish version of the site have different layout width (making the width of the container larger).

    There's lots of different ways, you'd just need to change up your codes and see how it looks. It might also very well be the case that you end up going with the 2 lines, or you might just find a way to shorten your menu lists.

    Without posting any of your codes, it'll be difficult to help you further.

    评论

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作