The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Line spacing
Kevin
post Sep 22 2006, 11:29 AM
Post #1





Group: Members
Posts: 1
Joined: 22-September 06
Member No.: 201



Ho do I adjust the line spacing in my code. Because when I put in a line break (<p></p> ) it displays like two carriage returns instead of one. eg

Kind regards

Kevin

Sublime Solutions

London

SW17

I would like it to look like

Kind regards
Kevin
Sublime Solutions
London
SW17
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Sep 22 2006, 11:59 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



Use CSS line-height. For CSS basics, see the CSS reference of this site.

QUOTE
Because when I put in a line break (<p></p> ) it displays like two carriage returns instead of one


That's the margin of the P element, not its line-height.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Tom H.
post Sep 23 2006, 08:03 AM
Post #3


Advanced Member
****

Group: Members
Posts: 129
Joined: 24-August 06
Member No.: 14



If you want a single carriage return you may wish to use a break at the end of the line, for example:

<p>Kind Regards,<br>Kevin<br>Sublime Solutions</p>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 03:05 AM