CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 January 13th, 2002, 08:15 AM
poring poring is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 68 poring User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 39 m 9 sec
Reputation Power: 12
Question Line breaks and CSS letter spacing

There seems to be a problem with line breaks when I use CSS letter spacing: doing <BR><BR> is the same as <BR>

Look at exemple: http://users.pandora.be/fourtyseven/blah.htm
(look at the source)

I'm using IE 6 on XP. Can anyone who use IE 5 tell me if it's the same?

Reply With Quote
  #2  
Old January 13th, 2002, 09:19 AM
xamichee xamichee is offline
Bringer of the Bling
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: Orlando, FL
Posts: 68 xamichee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
Send a message via AIM to xamichee
It does it on IE5.5 with Windows 2000 too. I have no idea why thought. Sorry.

You could use <p></p> instead of <br> when you want a line break. That works.




<STYLE>
P { letter-spacing: 1px; }
</STYLE>
<P>
bleh<BR>
blih<p></p>
blah
</P>

Reply With Quote
  #3  
Old January 13th, 2002, 04:36 PM
Derek Petersen Derek Petersen is offline
Do you like PHP like ME?
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: St. George, Utah, of the USA
Posts: 67 Derek Petersen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
doing that u would not be xhtml compliant as we all should be

try this:


<STYLE>

.P{
letter-spacing: 1px;
}

</STYLE>





<div class="P">bleh</div>
<br>
<div class="P">blih</div>
<br>
<div class="P">blah</div>


this have kinda the affect ur lookin for or do u want something else?
PHP Code:
<STYLE
__________________
You know your a web programmer when you see a '$' and think of PHP rather than money.

Reply With Quote
  #4  
Old January 13th, 2002, 04:37 PM
Derek Petersen Derek Petersen is offline
Do you like PHP like ME?
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: St. George, Utah, of the USA
Posts: 67 Derek Petersen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
forget that "php highlight" thing I did and u can add another <br> to the code I put and it should work.

Reply With Quote
  #5  
Old January 14th, 2002, 10:05 AM
Emperor Emperor is offline
Divine Wind
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Mongo
Posts: 24 Emperor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Emperor
Technically there should be no need for 2 lots of <BR> anyway. If you are using them for vertical spacing then use padding or margin in CSS.

Emperor

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Line breaks and CSS letter spacing

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap