Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming > HTML > CSS
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 03-04-2007, 06:51 PM   #1
dimi
Junior Member
 
dimi's Avatar
 
Join Date: Feb 2007
Posts: 23
dimi is on a distinguished road
Default Character width and alignment

Hi all,
i't traing to fix some phone contacts to be on the same position via X
but this seems not easy , for example

variant 1)
GSM: +101 222 222 222
tel.: +202 333 333 333

variant 2)
GSM: +101 222 222 222
tel.: +202 333 333 333

this is not possible by adding (removing of spaces) because the with of characters is not the samem and + is not in the same column like into line below (or above)

Did you know some trick to do this task or i must use typewriter font or someting else
dimi is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 03-14-2007, 11:21 AM   #2
YEVSU
Junior Member
 
YEVSU's Avatar
 
Join Date: Mar 2007
Location: Germany
Posts: 17
YEVSU is on a distinguished road
Default Re: Character width and alignment

I would like to know, how it will be made with css too. Now, I use tables for this.
__________________
mobile games
YEVSU is offline  
Old 03-30-2007, 06:30 PM   #3
PCBguy
Newcomer
 
PCBguy's Avatar
 
Join Date: Mar 2007
Location: Ithaca, NY
Posts: 3
PCBguy is on a distinguished road
Default Re: Character width and alignment

Here is how to do this using CSS. In your style sheet, add the following:

Code:
div.row { clear: both; padding-top: 3px; } div.row span.label { float: left; width: 50px; padding-right: 5px; } div.row span.data { float: left; text-align: left; }

Then in the body of you page, add this:

Code:
<div class="row"> <span class="label">GSM:</span> <span class="data">+101 222 222 222</span> </div> <div class="row"> <span class="label">Tel:</span> <span class="data">+202 333 333 333</span> </div>

If you have longer text in the "label" span, you can adjust the width of the div.row span.label in your style sheet.

I hope this helps!
__________________
http://www.pemea.com
PCBguy is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Available 3,4,5,6 Character Domains rianvisser Domain Name 2 03-08-2007 08:44 AM
A1k.us rare 3 character killerbud99 Domains for Sale 1 02-24-2007 01:21 PM
So what width should we use now. rick General Talk 7 12-21-2006 03:13 AM
Variable width div rohan2kool HTML 1 09-30-2006 06:23 PM
3 character names donlee2005 Domain Name 10 12-21-2005 12:28 AM


All times are GMT. The time now is 06:13 PM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.