Solved

Half <br /> ?

Posted on 2006-10-30
5
549 Views
Last Modified: 2008-03-10
Is there a way to do a half "<br />" ?
I don't need a full line break, but a 0.5 line break ?

Thanks,
-BassKozz
0
Comment
Question by:basskozz
  • 2
  • 2
5 Comments
 
LVL 19

Assisted Solution

by:VoteyDisciple
VoteyDisciple earned 100 total points
ID: 17837855
It sounds like what you really want is for the element above that to have style="margin-bottom: 0.5em;"

0
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 150 total points
ID: 17837970
basskozz,

VoteyDisciple's comment may be just what you want but I had another thought.

What is the text in?  If in a span, cell or something similar you can specify "line-height: .5em;" in that element and then the br tag will change.  The line break it inserts will inherit that setting.  Putting line-height in the br tag does not have that effect though.  If you are interested in details then please provide details on what this text is in.  An example is below.

<span style="line-height: .5em;">
line one <br />
line two
</span>

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
LVL 19

Expert Comment

by:VoteyDisciple
ID: 17838014
Ooh, good point.  I like that.  (-:
0
 

Author Comment

by:basskozz
ID: 17838052
Thanks guys
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 17838085
Your welcome!  I'm glad that I could be one of those that helped.  Thank you for the grade, the points and the fun question.

bol
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
jquery, html5 UI 1 49
Powershell output to HTML 1 29
Image decoding from Camera 3 48
Printing a Google Form 2 10
Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now