Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Closed Thread
Right aligned dot leader line in HTML?
Old 01-24-2007, 10:46 PM Right aligned dot leader line in HTML?
Average Talker

Posts: 16
Trades: 0
Does anyone know how to make a nice right aligned leader line in HTML? My client has a list of products with prices and wants it to look like it does on her order form - which uses dotted leader lines. But putting them in manually does not work right - its crooked looking. Is there a way to do this in HTML?

Thanks
Kristi
Grafiti4u is offline
View Public Profile
 
 
Register now for full access!
Old 01-24-2007, 11:39 PM Re: Right aligned dot leader line in HTML?
Silent77's Avatar
Ultra Talker

Posts: 269
Name: Silent
Location: Ohio
Trades: 0
Could you post an example of what your talking about?
__________________
Firefox
rediscover the web

Please login or register to view this content. Registration is FREE
Down with internet explorer!
Silent77 is offline
View Public Profile Visit Silent77's homepage!
 
Old 01-25-2007, 12:02 AM Re: Right aligned dot leader line in HTML?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Kristi an example would help. Do you have an image of what the client wants.

The way I usually add dotted lines is through css and using the border property on one of the elements. You can set borders to to be dotted or dashed though the border-style property.

It sounds like you have a form and how you structure the form will determine where the best place to add the border will be.

As for the right aligned if I could see an image of what you're looking for and maybe also a link to the page in question or the code for the page I could probably help more with how to set it up. If I'm understanding right I don't think you're going to need to add something to align the border. It will be more a case of structuring the html to display the border where you want it to be.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
View Public Profile Visit vangogh's homepage!
 
Old 01-25-2007, 03:29 AM Re: Right aligned dot leader line in HTML?
moondog's Avatar
Ultra Talker

Posts: 256
Location: Croatia
Trades: 0
I usually do that, like Van Gogh said, with CSS, but example will be helpful
moondog is offline
View Public Profile
 
Old 01-25-2007, 04:57 AM Re: Right aligned dot leader line in HTML?
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
please dont forget to post an example of the design or any refernce website for the desired look.
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
View Public Profile Visit saadatshah's homepage!
 
Old 01-25-2007, 10:16 AM Re: Right aligned dot leader line in HTML?
Average Talker

Posts: 16
Trades: 0
Well, its pretty simple. For instance, in Word they have a form like this:

Carpeting. . . . . . . . $ 30.00
Lamps . . . . . . . . . . $ 22.00
Tables (2) . . . . . . . $135.00
Silverware . . . . . . . $ 80.00
Stools (4). . . . . . . . $220.00
Chairs (10) . . . . . . $280.00
Tables (2) . . . . . . . $135.00
Lamps . . . . . . . . . . $ 22.00

I am not sure if you can tell, but if I just manually type in the dots and the prices, it looks 'wavy'. In Word, you can set the decimal points to line up, or have a dot leader that goes to the right, then you type in the price and things line up exactly. I can just forgoe the dots and us table cells to align things, but the dot leaders are nice because in a long list you see where you are. I just thought there must be some way to do this in HTML. Thanks!
Grafiti4u is offline
View Public Profile
 
Old 01-25-2007, 03:58 PM Re: Right aligned dot leader line in HTML?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
There is no leading dots in HTML or CSS, it's just not capable of it. You have to either use a border as suggested, or you fake it with a background image - or you abandon the idea altogether. At some point you have to tell a client that there's a big difference between print and the web and the web does not work like Word - or any other word processor for that matter. We all want to keep our clients happy, but sometimes it's just not possible to do what they want.

In your case, I think I'd use a background image of a single dot, set to repeat horizontally, and spaced over to clear the words.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
View Public Profile
 
Old 01-25-2007, 04:06 PM Re: Right aligned dot leader line in HTML?
Skilled Talker

Posts: 62
Name: Daniel
Trades: 0
You might consider using alternating colors with a table to get things across. It looks slightly nicer and is quite easy.

Code:
 
<style>
table {
border: 0;
border-collapse: collapse;
}
td.desc1 {
width: 130px;
text-align: left;
}
td.price1 {
width: 130px;
text-align: right;
}
td.desc2 {
width: 130px;
background: #ddd;
text-align: left;
}
td.price2 {
width: 130px;
background: #ddd;
text-align: right;
}
</style>
 
 
<table>
  <tr>
    <td class="desc1">Carpeting</td>
    <td class="price1">$30.00</td>
  </tr>
  <tr>
    <td class="desc2">Lamps</td>
    <td class="price2">$22.00</td>
  </tr>
  <tr>
    <td class="desc1">Tables (2)</td>
    <td class="price1">$135.00</td>
  </tr>
  <tr>
    <td class="desc2">Silverware</td>
    <td class="price2">$80.00</td>
  </tr>
  <tr>
    <td class="desc1">Stools (4)</td>
    <td class="price1">$220.00</td>
  </tr>
  <tr>
    <td class="desc2">Chairs (10)</td>
    <td class="price2">$.00</td>
  </tr>
  <tr>
    <td class="desc1">Stools (4)</td>
    <td class="price1">$220.00</td>
  </tr>
  <tr>
    <td class="desc2">Chairs (10)</td>
    <td class="price2">$280.00</td>
  </tr>
  <tr>
    <td class="desc1">Tables (2)</td>
    <td class="price1">$220.00</td>
  </tr>
  <tr>
    <td class="desc2">Lamps</td>
    <td class="price2">$22.00</td>
  </tr>
</table>
castis is offline
View Public Profile
 
Old 01-25-2007, 04:42 PM Re: Right aligned dot leader line in HTML?
Average Talker

Posts: 16
Trades: 0
Thanks everyone. I was pretty sure there wasn't anyway to do that, but I wanted to double check with others 'in the know' in case there was something out there I wasn't awar of yet - like some fancy CSS. There are many go-arounds - I will just do that instead.

Thanks!
Kristi
Grafiti4u is offline
View Public Profile
 
Old 01-25-2007, 07:21 PM Re: Right aligned dot leader line in HTML?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
This really won't quite do the same thing, but you could set the data up in a table with three columns. That way you could line up things better, though it probably still won't be quite what you want. You might be able to get something close.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
View Public Profile Visit vangogh's homepage!
 
Old 02-01-2007, 07:32 PM Re: Right aligned dot leader line in HTML?
GrayKard's Avatar
Skilled Talker

Posts: 72
Trades: 0
Quote:
Originally Posted by Grafiti4u View Post
I can just forgoe the dots and us table cells to align things, but the dot leaders are nice because in a long list you see where you are. I just thought there must be some way to do this in HTML. Thanks!
If you do use a table then an easy way to get the functionality of the dotted lines across the page is to change the background color of every other table row.

Just create two style rules with background colors and add them to each table row tag alternately down the table.

example:

.tr1 {background-color:#E2E2E2;}
.tr2 {background-color:#D0D0D0;}

Or you could leave every other row white and just leave off one rule.

I think it makes a wide table easier to read as you don't lose place as you scan across.
__________________

Please login or register to view this content. Registration is FREE

Last edited by GrayKard; 02-01-2007 at 07:45 PM..
GrayKard is offline
View Public Profile
 
Old 02-02-2007, 04:00 PM Re: Right aligned dot leader line in HTML?
Junior Talker

Posts: 2
Trades: 0
Why not use a fixed width font say courier or lucida console. that way it wont look all wavy

Carpeting. . . . . . . . $ 30.00
Lamps. . . . . . . . . . $ 22.00
Tables (2) . . . . . . . $135.00
Silverware . . . . . . . $ 80.00
Stools (4) . . . . . . . $220.00
Chairs (10). . . . . . . $280.00
Tables (2) . . . . . . . $135.00
Lamps. . . . . . . . . . $ 22.00

eh eh?
3n1gm4 is offline
View Public Profile
 
Closed Thread     « Reply to Right aligned dot leader line in HTML?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.13912 seconds with 12 queries