Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-16-2008, 06:25 PM
WebProWorld Member
 

Join Date: Aug 2004
Location: San Diego
Posts: 42
fisher318 RepRank 0
Default CSS - How to Format Existing Text Within a DIV Tag

ok, if you go to newlifeultrasound.com/plans3.htm you will see the very first "Total Indulgence Session Plan". So far, that's the only one I've formatted within the DIV tags so far. The icon and the text are aligned just like I want them. However, now within that DIV tag at the end of the description I would like to have it align the price of $349 to the far right leaving the space between the description and the price.

It would be ideal if I could have little dots lead up to the price like this:

plus a 60 minute Pre or Post Natal Maternity Massage..............$349

Here is the CSS for the DIV's so far:

DIV.align {
margin-left:48px;
text-decoration:underline;
width:345px;
}

DIV.align2 {
margin-left:48px;
margin-top:-10px;
width:365px;
}
__________________
EagleTac Store | HID Flashlights
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 09:53 PM
DrTandem1's Avatar
WebProWorld 1,000+ Club
 

Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,908
DrTandem1 RepRank 2
Default Re: CSS - How to Format Existing Text Within a DIV Tag

Since the site is still using tables, why not just use tables to align your content? Yes, I know tables were originally meant for tabular data. So what?
__________________
DrTandem's San Diego Web Page Design, drtandem.com
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 03:31 AM
WebProWorld New Member
 

Join Date: Nov 2007
Posts: 7
funda RepRank 0
Default Re: CSS - How to Format Existing Text Within a DIV Tag

Having dots and stuff would need complex programming I think.

But for a basic fix, you can put the amount ($34) in a separate <DIV> with a css align to the right. A DIV within a div.

So, in side the outer DIV, you can have a DIV for the description left aligned and a DIV for the amount right aligned.

text-align:right I suppose.
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 03:41 PM
WebProWorld Member
 

Join Date: Sep 2004
Location: Watertown, MA
Posts: 28
jpatriar RepRank 0
Default Re: CSS - How to Format Existing Text Within a DIV Tag

You could use a monospaced font and be done with it - try this code

<style type="text/css">
<!--

DIV.align {
text-decoration:underline;
font-family: Verdana, Arial;
font-size: 9pt;
font-weight: bold;
width: 530px;
padding-left: 3px;
background-color: #ffeeee;
}

DIV.align2 {
font-family: Lucida Console, Courier New;
font-size: 9pt;
padding-top: 2px;
padding-left: 3px;
}


DIV.align3 {
font-family: Courier New, Lucida Console;
font-size: 9pt;
padding-top: 2px;
padding-left: 3px;
}

-->
</style>


<div class="align">A La Carte:</div>
<div class="align2">Exclusive Handmade Canvas Art Frame...................$50 (custom made $60)</div>
<div class="align2">Pre or Post Natal Maternity Massage...................$90</div>
<div class="align2">Infant Massage Training...............................$55 Monthly</div>
<div class="align2">Scrapbooking Class ...................................$20</div>

<br>

<div class="align">A La Carte:</div>
<div class="align3">Exclusive Handmade Canvas Art Frame...................$50 (custom made $60)</div>
<div class="align3">Pre or Post Natal Maternity Massage...................$90</div>
<div class="align3">Infant Massage Training...............................$55 Monthly</div>
<div class="align3">Scrapbooking Class....................................$20</div>
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum


Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with text format in Illustrator pete200677 Graphics & Design Discussion Forum 1 05-19-2006 12:08 PM
Online Text Format & ASP Ghannami Web Programming Discussion Forum 7 06-27-2005 03:02 AM
Rich Text Format darksknn Web Programming Discussion Forum 1 06-06-2004 11:46 AM
Google and UTF text format punitseo Google Discussion Forum 0 05-10-2004 04:23 PM
Google and UTF text format punitseo Google Discussion Forum 2 04-13-2004 04:17 PM


Search Engine Optimization by vBSEO 3.2.0