Avoid sidebar overlapping content on tumblr with CSS positioning -


i'm having problems avoiding sidebar overlap main content of blog on tumblr. using premade template on tumblr have modified. ways can position sidebar in top right corner, using absolute or fixed position:

#sidebar{ position:fixed; top:20px; right:20px; } 

when using e.g. relative, sidebar position in bottom after main content.

my page built this:

<body>     <div id="page">          <div id="header">         </div>         <div id="content">         </div>      </div>      <div id="sidebar">     </div>  </body> 

click here see page. tried putting sidebar inside page div, there's constraint on width, keep. thank in advance.

according latest comment, should problem:

you set min-width on page, rearrange markup little, , remove styles on sidebar. if leave now, following help:

  1. set min-width: 1250px; on body tag
  2. move sidebar element before page element
  3. remove position: fixed; sidebar element

this prevent menu overlapping page content , add horizontal scrollbar page when user's window less 1250px. if want support smaller min-width or if have problem background image becoming not centered @ small resolutions, minor modifications necessary.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -