picture on top of text

Hello,

How do I put a graphic (a red line) on top of text in Dreamweaver MX?

I'm trying to make a red strikethrough over the top of some text. If I nest layers, I sometimes get shifting of layers in Netscape 7.1. What is the best solution?

Bob
LVL 7
weikelbobAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saqib KhanSenior DeveloperCommented:
did you try <Strike> Text Here </Strike>
0
weikelbobAuthor Commented:
That would work but I need a red line strikethrough instead of black.

Bob
0
Ryan ChongCommented:
Try these suggestion:

1. put your text inside a table, then set the table's (or td) background image to an image, where the image inside is a red center strike line.

example:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<p><Strike> <font color="#FF0000">Text Here</font> </Strike></p>
<table width="119" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td background="redcenterline.gif">Text Here</td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>

2. create all stuff to a graphic

regards
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

JoshPowellCommented:
I know a much simpler idea ;)

<strike style="color:red;">Text here!</strike>

No tables needed :)


Josh
0
Ryan ChongCommented:
Ya.. and that will "strike" all the text to red color as well, what i suggeted is only the line to be red color, cheers 8-)
0
JoshPowellCommented:
Yeah, I noticed that after I posted it =P

I guess so far your suggestion is best, unless he doesn't mind red text :) But I just don't like using tables for anything other than tabular data.

I will play around with some layers :P

Josh
0
weikelbobAuthor Commented:
OK
I'd like to do it with layers, but I don't know if it's OK for all browsers to use nested layers.
Bob
0
JoshPowellCommented:
It should be OK with all modern browsers (including IE, even though thats not modern ;) )

Josh
0
weikelbobAuthor Commented:
Hi guys,

I've decided to just convert the text to a picture. What is the best way to do this?
I've got Paint Shop Pro 8 and Dreamweaver MX 2004 to use.

I've tried using convert text to curves in PSP8 but I can't get the text to insert in a reasonable way.

Thanks,

Bob
0
JoshPowellCommented:
Well, I have Fireworks.. but I can't imagine it would be too difficult

Just use the text tool to type in your text, create a new layer, use the line tool to draw a line in the new layer, change the line color, then drag the line layer on top of the text.

Josh
0
weikelbobAuthor Commented:
I've decided the better way would be to use a table every time there is a red strikethrough on the text.

I can't get a table to insert into the paragraph, it only inserts aligned to the left in the layer or table.

How do I put these small tables into my paragraphs?

Thank you,

Bob
0
Ryan ChongCommented:
>>How do I put these small tables into my paragraphs?
Actually it should be as put your paragraphs into table...
0
CoolATIGuyCommented:
Supposedly CSS3 has the option of seperate text and line-through colors...FYI


CoolATIGuy
0
weikelbobAuthor Commented:
So, I need to put my text into a table and then somhow put a red strikethrough as a background image in the table?

How does this work?

Bob
0
Ryan ChongCommented:
>>somhow put a red strikethrough as a background image in the table?
See my 1st posted comment above.. you need to create the "redcenterline.gif" as a red center line graphic..

Yet, if you foresee there are many text to be red strikethrough, i suggest you create the whole things to graphics instead. Slice that graphic into smaller pieces if it's too big.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
weikelbobAuthor Commented:
Thank you ryancys, I'll try that.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Dreamweaver

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.