Solved

Let me try again...

Posted on 2004-10-18
1
321 Views
Last Modified: 2010-04-06
I have tried this numerous times, many different ways, this is where I am at.  Here, I will show what I have done and what the problem is.  Below is "my code", need help on finding out what is wrong, seems I get a double vision or two columns.  This is the way I did it, is this the best way to do?  Will it be read by all browsers?  Would images be better?  I tried with images but I need the inside of the cell to be dynamic so the coupon size will vary depending on the dynamic input.  I want the thing to look like a coupon, I am close just seems like I am missing something.

<html><head>
<title>dashed coupon</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
div.coupon {border-style:dashed}
//-->
</style>
</head>
<body bgcolor="#FFFFFF">
<div class="coupon"><table width="400" border="1" cellspacing="0" cellpadding="8">
<tr><td>
sample coupon<br>
save at our store today!
</td></tr></table></div>
</body>
</html>
0
Comment
Question by:precision
1 Comment
 
LVL 18

Accepted Solution

by:
arantius earned 250 total points
ID: 12342085
I take it you want a box with a dashed line around it ?


<html>
<head>
<style>
.coupon {
      border: 2px gray dashed;
      width: 400px;
      padding: 5px;
}
</style>
</head>
<body>

<div class="coupon">
      This is your wonderful coupon!<br />
      Print it out to recieve $0.50 cents off your next can of cat food!<br />
      Enjoy Kitty Loves Me brand!<br />
</div>

</body>
</html>
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now