Adding a div to the sidebar / Getting the positioning right
-
Here’s a link to my site:
https://www.jump-punch.comI’m in the process of chaning the links to list by category (some links appear twice, that’s okay, I’ll get to that later) and I want to have a separate div for some of them. I’m having difficulty positioning the “dude!!!” section (a new div) and the sidebar (another div) underneath it. I’ll deal with the IE fixes later.
Would anyone be able help out so the sidebar links appear below the “dude!!!” section? And the dude section’s position stays fixed to the right of the my blog content?
Would I have to create a wrapper that goes around the blog content and the sidebar? I’ve spent a few hours trying to get this to work and haven’t really gotten anywhere.
Here’s some examples of the CSS
DUDE CSS:
#dudecontainer{
width: 229px;
line-height: -15px;
clear: both;
position:absolute;
right: 15%;
}
#dudeheader{
height: 79px;
}
#dudebody{
position: absolute;
padding-right: 45px;
}
#dudefooter{
margin-top: 15;
position: relative;
}
#dudebody ul {
list-style-image: none;
list-style-type: none;
}#dudebody li{
padding-bottom: 8px;
margin-left: -15px;
}SIDEBAR CSS:
#sidebar {
font: 8pt ‘Trebuchet MS’, Verdana, Arial, Sans-Serif;
clear: right;
top: inherent;
}THE XHTML:
<div id=”dudecontainer”>
<div id=”dudeheader”></div>
<div id=”dudebody”>- <?php wp_get_linksbyname(‘Dude!’); ?>
</div>
<div id=”dudefooter”></div>
</div><div id=”sidebar”>
***Default sidebar code***
</div>
- The topic ‘Adding a div to the sidebar / Getting the positioning right’ is closed to new replies.