Solved

Space(10) instead of " " 10 times?

Posted on 2007-11-28
10
1,387 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to create a table with buttons 3 30
How to escape unsafe HTML tags 4 36
TypeError jquery issues with site - CSS conflicts 3 25
Hide and Unhide Table 6 24
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

740 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