 |
boardom b2 message board
|
View previous topic :: View next topic |
Author |
Message |
hazM
Joined: 27 Feb 2004 Posts: 4 Location: Brunei, SE Asia
|
Posted: Sat Aug 21, 2004 7:41 am Post subject: problem with <?php the_content(); ?>, please help ;__; |
|
|
I'm using a layout in which the blog entries are supposed to appear within a fixed width, in my case 500 pixels, with the use of tables. For some reason, and I've tested this with and without the code, "<?php the_content(); ?>" ignores the fixed width and stretches everything else within the table cell to a little over 600 pixels. Both Mozilla and Opera show this problem while IE 5 appears exactly as I wanted, and the stretching appears (to the same width, i.e. over 600 pixels) for 640x480, 800x600 and 1024x784 resolutions.
While the only problem with this is that my Mozilla and Opera-using visitors will have to bother with a horizontal scrollbar, I'm very nitpicky and would like to know if there's anyway I could fix this? I have tried this (among other things):
Code: | <div width=490><?php the_content(); ?></div> |
but that doesn't work either. >.<
Can anyone help me out? I would appreciate any ideas or suggestions made. |
|
Back to top |
|
 |
sh0ck
Joined: 02 May 2004 Posts: 58 Location: Norway
|
Posted: Sat Aug 21, 2004 12:44 pm Post subject: |
|
|
Could you post your table code here please. Mozilla, Opera etc. always shows what the code actually tells them. This means that you might use the 'nowrap' feature (or something) to override the table borders. |
|
Back to top |
|
 |
hazM
Joined: 27 Feb 2004 Posts: 4 Location: Brunei, SE Asia
|
Posted: Wed Aug 25, 2004 12:32 am Post subject: |
|
|
My table code's mixed in with some weird CSS, I hope it's not too confusing. XP
This is the table code:
Code: | <table border=0 width=100% cellpadding=0 cellspacing=0>
<tr><td width=15><!-- CONTENT --></td>
<td class="cellleft" valign="top">
<div class="divleft">
<!-- CONTENT -->
</div>
</td><td> </td>
<td valign="top" class="cellright" width=500>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td background="bgg_top.jpg" class="walkinontop">
<table border=0 cellpadding=0 cellspacing=0>
<tr><td width=1><img src="trans2.gif" width=1 height=340></td>
<td valign="bottom">
<!-- CONTENT: Used a transparent GIF with the same height as the background picture so that the picture would show up on Opera/Mozilla -->
</td></tr></table>
</td></tr>
<tr>
<td class="walkinbelow">
<p class="pageHead1"><!-- CONTENT --></p>
<!-- CONTENT: The blog bit START -->
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<p class="date" align="center"><?php the_date(); ?></p>
<p align="right"><?php permalink_anchor(); ?><?php the_time() ?>___<br>
<?php comments_popup_link("0", "1", "%") ?> comments___</p>
<?php the_content(); ?>
<br><br>
<p align="right">
[ I counted <?php comments_popup_link("0", "1", "%") ?> footsteps... ]</p>
<br><br>
<!-- // this is just the end of the motor - don't touch that line either :) -->
<?php } ?>
<?php
if ($debug=="1") {
echo "<p>$querycount queries - ".number_format(timer_stop(),3)." seconds</p>";
}
?>
<!-- CONTENT: The blog bit END -->
</td></tr></table>
</td><td width=15> </td>
</tr></table> |
And my Stylesheet:
Code: | a:link {
color: #000066;
text-decoration: none; }
a:visited {
color: #0033ff;
text-decoration: none; }
a:hover {
color: #cccccc;
text-decoration: underline; }
body {
margin: 0px 0px;
font-family: Verdana, Arial;
font-size: 8pt;
background: #ffffff;
color: #000099;
}
.stumble {
font-family: Verdana, Arial;
font-size: 8pt;
padding: 5;
color: #0033CC;
}
.walkinontop {
padding: 5px;
width: 100%;
border-style: solid;
border-top-width: 0;
border-bottom-width: thin;
border-left-width: 0;
border-right-width: 0;
border-color: #000000;
}
.walkinbelow {
font-family: Verdana, Arial;
font-size: 8pt;
padding: 5px;
color: #000099;
width: 100%;
}
.date {
font-size: 10pt;
font-family: verdana;
font-weight: bold;
letter-spacing: 3;
color: #0000cc;
}
.divleft {
font-family: Verdana, Arial;
font-size: 8pt;
}
.cellleft {
font-family: Verdana, Arial;
font-size: 8pt;
width: 30%;
padding: 5px;
border-style: solid;
border-top-width: 0;
border-bottom-width: 0;
border-left-width: thin;
border-right-width: thin;
border-color: #000000;
background: #6699ff;
}
.cellright {
border-style: solid;
border-top-width: 0;
border-bottom-width: 0;
border-left-width: thin;
border-right-width: thin;
border-color: #000000;
}
.sidebarHead1 {
text-align: center;
font-weight: bold;
border-style: solid;
border-bottom-width: thin;
border-top-width: 0;
border-left-width: 0;
border-right-width: 0;
border-color: #ffff00;
padding: 3px;
}
.pageHead1 {
text-align: left;
margin: 10px 10px;
border-style: solid;
border-color: #000000;
border-top-width: 0;
border-left-width: 0;
border-right-width: 0;
border-bottom-width: thin;
}
.input {
font-family: Verdana;
font-size: 8pt;
background: #ffffff;
}
.button {
font-family: Verdana;
font-size: 8pt;
background: clear;
}
.question {
font-weight: bold;
color: #CC0000; }
.url {
color: #ffffff;
font-weight: bold;
text-align: center;
} |
Again, any help would be appreciated. Thanks. =) |
|
Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB 2 © 2001, 2002 phpBB Group
|