merothe
Member
Posted 2 years ago #
Hi,
I seem to be unable to make any changes to the format of the page content of my site. Am fairly new to css so imagine it is a simple mistake somewhere!
Essentially, if I make any changes to #content in my stylesheet it doesn't change the appearance/style on the site.
The code in my main index template is below (I am guessing my problem is from here):
<?php get_header();
?>
<div id="#menu">
<?php include (TEMPLATEPATH . '/sidebar.php'); ?>
</div>
<div id="#menuright">
<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
</div>
<div id="#content">
<?php the_content(__('(more...)')); ?>
</div>
Thanks
richarduk
Member
Posted 2 years ago #
<div id="#content">
<?php the_content(__('(more...)')); ?>
</div>
Try getting rid of the hash, so:
<div id="content">
<?php the_content(__('(more...)')); ?>
</div>
Not sure about <?php the_content(__('(more...)')); ?>
Shouldn't it be `<?php the_content('More...'); ?>
`
"<?php the_content(__('(more...)')); ?>" is correct. It is gettexted.
S.K
merothe
Member
Posted 2 years ago #
That fixed that problem - Thanks! I can now change the style of the content.
Only problem now is that the content is below both the menus instead of between them...
I have tried
#content {
float: left;
clear: both;}
with the menus as
#menu {
background: #000
right: 2px;
width: 200px;
height: auto;
float: left;
text-indent:10px;
margin: 0 10px 0 0;
}
#menuright {
background: #000;
width: 200px;
float: right;
margin: 0 0 0 20px;
font-style:italic;
}
but no luck..any thoughts?
cryonics
Member
Posted 2 years ago #
Maybe
position:absolute
for the content...
merothe
Member
Posted 2 years ago #
That did it! - thanks
It then overlapped with the menus but i played around and this works for now
#content {
position: absolute;
width: 390px;
margin: 0 210px 0 200px;
}