简体   繁体   English

将侧边栏置于屏幕右侧

[英]Make a side bar to be on the right side of the screen

Hope this on topic. 希望这个话题。

I found this skeleton and I'm trying to modify it to my needs. 我找到了这个骨架,并试图根据自己的需要对其进行修改。

  1. How can I make the side bar to be on the right side instead of left side? 如何使侧栏位于右侧而不是左侧?
  2. How can I make the buttons on the nav bar to be on the right side instead of the left? 如何使导航栏上的按钮位于右侧而不是左侧?

In my county we write right-to-left. 在我县,我们从右到左书写。

edited (sorry, forgot the second thing previously) 编辑(对不起,之前忘记了第二件事)

Add

#sidebar { float: right; }

and

.container-fluid > *:not(:first-of-type) {
  float: right;
}

https://codepen.io/anon/pen/EXvxxG https://codepen.io/anon/pen/EXvxxG

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM