Twenty twelve header image and navigation in same line

最后都变了- 提交于 2019-12-08 11:19:18

问题


How can you put the navigation in the same line as the header image in twenty twelve? Right now the navigation menu is above the image, but I would like them to be next to each other. Is there any way to achieve this? Thanks!


回答1:


Add "position:relative" to #masthead:

#masthead {position: relative;}

then position your navigation with position absolute:

#site-navigation {
    position: absolute;
    bottom: 0; /* or top, if you prefer */
    right: 0;
}


来源:https://stackoverflow.com/questions/13199046/twenty-twelve-header-image-and-navigation-in-same-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!