I'm having difficulty getting some CSS working and not sure where the problem is!
I'm using the following code to display a box in the right hand bar. This will contain text that will change automatically on a weekly basis.
The CSS for this is as follows:
The work in progress can be seen at this url: http://www.magicalwonders.com/acatalog/Exclusives.shtml At the moment I have a couple of examples of text that changes on refresh..
Although the style of border, background color and font-size is being applied, the padding is not - and the text is sticking to the left hand border!
I know I've messed up somewhere. I'm still trying to get to grips with CSS. Can anyone let me know where I've gone wrong?
Many thanks,
Myles
I'm using the following code to display a box in the right hand bar. This will contain text that will change automatically on a weekly basis.
Code:
<table border="0" width="120px"> <tr> <td class="thinblackline" > <div align="center"><b>What people say</b></div> <!--#include virtual="/cgi-bin/randtext/randtext.pl?file=test.dat"--> Some random text to test layout... </td> </tr> </table>
Code:
.thinblackline { border-width: 1px; border-color: #000000; border-style: solid; padding-top:3px; padding-left:5px padding-right: 2px; padding-bottom: 3px; font-size: 0.6em ; background: white ; }
Although the style of border, background color and font-size is being applied, the padding is not - and the text is sticking to the left hand border!
I know I've messed up somewhere. I'm still trying to get to grips with CSS. Can anyone let me know where I've gone wrong?
Many thanks,
Myles
Comment