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:
- set
min-width: 1250px;
onbody
tag - move
sidebar
element beforepage
element - 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
Post a Comment