Solved

Space(10) instead of " " 10 times?

Posted on 2007-11-28
10
1,347 Views
Last Modified: 2008-02-01
Is there a Space tag in HTML?  I want to make 10 spaces.  Do I really need to code:
          ?
0
Comment
Question by:LeahTheMack
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 23

Expert Comment

by:Ashish Patel
ID: 20364638
Yes, unfortunately you will have to, as if you just put white spaces then the browsers will display them as one. No other options buddy.
0
 
LVL 11

Expert Comment

by:Sven
ID: 20364914
Maybe you can use tables or you can use a <span> and format it via css to the width you want?
0
 
LVL 29

Accepted Solution

by:
Göran Andersson earned 50 total points
ID: 20364947
Why not add the spacing to whatever you have after the spacing? Like:

margin-left: 80px;

or

padding-left: 80px;
0
 
LVL 11

Assisted Solution

by:Sven
Sven earned 50 total points
ID: 20364964
This is what I said:
<span style="margin-left: 80px;">Your text here!</span>
 

<span style="width: 80px;">&nbsp;</span>Your text here!

Open in new window

0
 
LVL 29

Expert Comment

by:Göran Andersson
ID: 20364984
No, DarthSonic, you only mentioned the second method, I suggested the first method as an alternative.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:LeahTheMack
ID: 20365161
If I set the span to 80px here, will that goof up other lines on the page (above or below)?
Will that force me to set the span everywhere else to compensate?
0
 
LVL 11

Expert Comment

by:Sven
ID: 20365174
The span-Tag is an inline element which will only affect the space you defined and the text before and after will not be affected and there will be no break before and after. Try it and see what happens!
0
 
LVL 11

Expert Comment

by:Sven
ID: 20365184
Here you will find an example and a description of the span-tag:
http://www.w3schools.com/tags/tag_span.asp
0
 
LVL 29

Expert Comment

by:Göran Andersson
ID: 20365215
That depends on how your layout is working. The style applies only to the element where you apply it, but the extra space may affect other elements, just as a lot of &nbsp;s would.

Applying width on an inline tag like a span doesn't have any effect at all, by the way. (Internet Explorer may be applying the width in some settings, but this is a rendering error and should definitely not be used.)
0
 

Author Comment

by:LeahTheMack
ID: 20365347
Ok, thanks.  Doubling points to split between GreenGhost and DarthSonic
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

747 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

15 Experts available now in Live!

Get 1:1 Help Now