Jump to content
  • 0

Сайдбар уехал под контент


alex89
 Share

Question

Подскажите как сделать сайдбар справа, при уменьшении этого параметра

#contentwrap {

background: #FFFFFF;

border: 1px solid black;

width: 770px;

}

сайдбар уходит под конент,вот css сайдбара

/* SIDEBAR(S) */

.sidebaradbox {

margin-top: 0px;

text-align:center;

}

.ad125 {

margin: 6px;

}

.sidebar {

margin-left:20px;

font-size: 15px;

font-style: oblique;

color: #0000ff;

width: 310px;

background: #fff;

text-align: left;

}

.sidebar a {

text-decoration: none;

color: #6D6D6E;

}

.sidebar a:hover {

text-decoration: underline;

color:#0000ff;

}

www.pechati89.ru

Edited by alex89
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Подскажите как сделать сайдбар справа, при уменьшении этого параметра

#contentwrap {

background: #FFFFFF;

border: 1px solid black;

width: 770px;

}

сайдбар уходит под конент,вот css сайдбара

/* SIDEBAR(S) */

.sidebaradbox {

margin-top: 0px;

text-align:center;

}

.ad125 {

margin: 6px;

}

.sidebar {

margin-left:20px;

font-size: 15px;

font-style: oblique;

color: #0000ff;

width: 310px;

background: #fff;

text-align: left;

}

.sidebar a {

text-decoration: none;

color: #6D6D6E;

}

.sidebar a:hover {

text-decoration: underline;

color:#0000ff;

}

www.pechati89.ru

Посмотри вот этот вариант

Link to comment
Share on other sites

  • 0

Можно сделать так:


<div id="wrapper">
<div id="middle">
<div id="container">
<div id="content">
<p>текст</p>
</div><!-- #content-->
</div><!-- #container-->
<div class="sidebar" id="sideLeft">
<p>текст</p>
</div><!-- .sidebar#sideLeft -->
</div><!-- #middle-->
</div><!-- #wrapper -->


#wrapper {
width: 1000px;
margin: 0 auto;
}

/* Middle
—————————————————————————--*/
#middle {
width: 100%;
height: 1%;
position: relative;
}
#middle:after {
content: '.';
display: block;
clear: both;
visibility: hidden;
height: 0;
}
#container {
width: 100%;
float: left;
overflow: hidden;
}
#content {
padding: 0 0 0 270px;
}


/* Sidebar Left
—————————————————————————--*/
#sideLeft {
float: left;
width: 250px;
margin-left: -100%;
position: relative;
background: #B5E3FF;
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy