Solved

Let me try again...

Posted on 2004-10-18
1
319 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

762 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

15 Experts available now in Live!

Get 1:1 Help Now