I’m trying to get my posts to automatically divide into two columns with one column fixed, one scrolling. Example –
Similar to this website.
So far I’ve managed to divide the post into two, though it’s not behaving how I want it to. I did –
The HTML
<td class="entry-content-left">
<div class="entry-image">
<td class="entry-content-right">
<?php the_content(); ?>
The CSS
.entry-content-left {
font-size: 18px;
line-height: 26px;
width: 531px;
float: left;
color: #444444;
}
.entry-content-right {
font-size: 18px;
line-height: 26px;
width: 531px;
float: right;
color: #444444;
}
.entry-image {
float: left; width: 75%; position: fixed;
Here is my website.
You can do this using
position:fixed;
(more info). I made this quick layout using divs, (you should not be using tables for this kind of content) that should be the desired layout :FIDDLE
HTML:
CSS: