css - How to move sidebar to the right-side of the page? -


i'm developing first webpage , move sidebar right-side of page. it's stock bottom , can't seem move it. should change in code?

thank you.

/*sidebar*/ #sidebar{     margin:0;     width:250px;     float: right !important;     margin-right:50px;     position:relative;     padding: 0;     text-align: left;  } #sidebarcontents{     padding:5px 0px 5px 0px; } 

make sure maincontent div float left , size controlled (as in, make sure not 100%). check width of maincontent div left , set overflow hidden


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -