CSS Problem

B

Bert Hibberd

I'm fairly new to CSS and have come up against a most frustrating
problem.

I have placed a table at the head of each section of my newsletter. I
have given the table a background image and then tried to style the
banner text over that image:

td.bannertxt {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
}

I am using the stylesheet offsite. All other features of the sheet
work fine, but this section simply won't work.

Here's the code for the banner:

<TABLE width=600 height="30" border=0 align=center cellPadding=0
cellSpacing=0
background="http://**************************/images/banner.jpg">
<TBODY>
<TR>
<TD class=bannertxt align=left width=600>BANNER Title</td>
</TR>
</TBODY>
</TABLE>

The style works during construction but as soon as it is uploaded it
fails. Everything is in lower case in the stylesheet. I am using
Dreamweaver, Topstyle and IE 6.0 in XP

I'd be grateful for any help.

Thanks,

Bert Hibberd
Australia
 
B

brucie

in post: <
Bert Hibberd said:
I have placed a table at the head of each section of my newsletter. I
have given the table a background image and then tried to style the
banner text over that image:

why not use a said:
font-family: Verdana, Arial, Helvetica, sans-serif;

just specify the generic family so the visitor gets their preferred font
for that family. never use verdana except on your own computer.
font-size: 14px;

don't specify font sizes in px. 100% is very nice.

the background attribute is only valid on the <body> element

#my-banner{width:100%;height:30px;background:#FFF url(http://...)repeat};

<div id="my-banner"><img ....></div>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top