CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Iron Speed
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 23rd, 2003, 07:04 AM
Firebrand Firebrand is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 Firebrand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
CSS Help

Ok guys I need some urgent help with css, which I'm still learning btw,

I jus want to create 3 sets of tel numbers directly below each other with a line

height 0.5 space in between.

I've made a css class which is:


}

.para {
font-family: Times New Roman, Arial, Helvetica, sans-serif;
font-size: 12pt;
margin-left: 0px;
text-align: left;
line-height: 0.5cm;
}



My HTML looks like this:


<p class="para">Tel: 0555 555 999 </p>

<p class="para">Mobile: 0555 555 999 </p>

<p class="para">Fax: 0555 555 999 </p>

but its not working,

any ideas?

Reply With Quote
  #2  
Old July 23rd, 2003, 07:58 AM
viking0012 viking0012 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 17 viking0012 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
line-height refers to the number that will be multiplied by the current point size, not a specific distance. So if you want it 0.5 then it would be

line-height:0.5
no "cm"

it will take that number and multiply it by your point, and space it according to that.

Reply With Quote
  #3  
Old July 23rd, 2003, 08:07 AM
Firebrand Firebrand is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 Firebrand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks for the reply!

Is there any other way to get the same format with css at all?

Reply With Quote
  #4  
Old July 23rd, 2003, 08:08 AM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,622 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 2 h 17 m 15 sec
Reputation Power: 548
add marigin:0; to the css, instead of line-height,

better yet use a list, more syntactical correct.

Code:

css:

.list, .list li {
font-family: Times New Roman, Arial, Helvetica, sans-serif;
font-size: 12pt;
text-align: left;
list-style:none;
margin:0;
padding:0;
}


html:

<ul class="list">
 <li>Tel: 0555 555 999 </li>
 <li>Mobile: 0555 555 999 </li>
 <li>Fax: 0555 555 999 </li>
</ul>

Reply With Quote
  #5  
Old July 23rd, 2003, 08:18 AM
Firebrand Firebrand is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 Firebrand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
cool that worked !!

Thanks guys, much appreciated!!!

Reply With Quote
  #6  
Old July 23rd, 2003, 08:26 AM
Firebrand Firebrand is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 Firebrand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
the only probelm i got now guys is that the text wont align center.
Any thoughts?

Reply With Quote
  #7  
Old July 23rd, 2003, 08:28 AM
Firebrand Firebrand is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 Firebrand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
got it tis ok now thanks!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS Help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway