Shading blocks of text
-
Hi,
I’m trying to create shading behind a block of text on my home page. The html code works on my edit page but won’t translate when I publish. Can anyone advise what I’m doing wrong or another way to do this? Also, if you can tell me how to create shaded boxes for my widgets, that would be great too!
Here is the code I’ve used:
<table>
<tbody>
<tr><p style=”text-align: justify;”> text </p>
</td>
</tr>
</tbody>
</table>The blog I need help with is: (visible only to logged in users)
-
The bgcolor attribute is deprecated – no longer supported in current HTML. You need to write:
<td style="background-color:#ffffcc;">But there’s no point using a table for a single block. See here:
-
- The topic ‘Shading blocks of text’ is closed to new replies.