Solved

Let me try again...

Posted on 2004-10-18
1
323 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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
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)

773 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