/    Sign up×
Community /Pin to ProfileBookmark

How do you create a variable number of spaces?

[FONT=”Ariel”][COLOR=”Blue”][B]
What HTML command do you use to create the correct number of spaces for a specific indentation?

BUNI[COLOR=”Orange”][/COLOR][COLOR=”Red”]San[/COLOR] ?
[/COLOR][/FONT][/B]

to post a comment
HTML

9 Comments(s)

Copy linkTweet thisAlerts:
@Mr_JJan 02.2006 — Forgot all about text-indent :o
Copy linkTweet thisAlerts:
@CharlesJan 02.2006 — <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Style-Type" content="text/css">
<title>Example</title>

<style type="text/css">
p {text-indent:3em}
</style>

</head>
<body>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. </p>
</body>
</html>
Copy linkTweet thisAlerts:
@BUNI-SanauthorJan 10.2006 — [FONT=Arial][SIZE=2][COLOR=Blue][B]



Thanks, Charles, that helped me with several projects. Sorry I took so long to get back.



I guess what would be even more useful would be some kind of HTML code that would act as a kind of TAB command.



[COLOR=Blue]BUNI[/COLOR][COLOR=DarkOrange]-[/COLOR][COLOR=Red]San[/COLOR] :o



[/B]
[/COLOR]
[/SIZE]
[/FONT]
Copy linkTweet thisAlerts:
@johnevaJan 11.2006 — Here you go.

[CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Style-Type" content="text/css">
<title>Example</title>

<style type="text/css">
p.tab {text-indent:3em}
</style>

</head>
<body>
<p class="tab">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. </p>
</body>
</html>[/CODE]


Is that what you were looking for?

Now evey time you use <p class="tab"> </p> the content between will have the indent.
Copy linkTweet thisAlerts:
@ray326Jan 11.2006 — I guess what would be even more useful would be some kind of HTML code that would act as a kind of TAB command.[/QUOTE]Sounds like content that might fit a table markup.
Copy linkTweet thisAlerts:
@BUNI-SanauthorJan 11.2006 — [FONT="Ariel"][COLOR="Blue"][B]



Does em = 2 characters? How about 1 character? And how do you change the tab setting within the document.



Sorry the text in these communiques is all jammed together. Drives me batty. :mad:



This module understands vertical spacing, but I don't think it's ever heard of horizontal spacing - or at least it only doles them out one space at a time...



BUNI[COLOR="Orange"]-[/COLOR][COLOR="Red"]San[/COLOR] ?

[/COLOR]
[/FONT][/B]
Copy linkTweet thisAlerts:
@powerdemonJan 11.2006 — aaarrrggghh, why cant i delete this post instead of just editing?
Copy linkTweet thisAlerts:
@BUNI-SanauthorJan 19.2006 — [FONT="Ariel"][SIZE=2][COLOR="Blue"][B]



[SIZE=7][COLOR=Red]P-O-S-T-E-R-I-T-Y-![/COLOR][/SIZE]



BUNI[COLOR="Orange"]-[/COLOR][COLOR="Red"]San[/COLOR] ?

[/B]
[/COLOR]
[/SIZE]
[/FONT]
Copy linkTweet thisAlerts:
@NogDogJan 19.2006 — Traditionally, an em is equal to the width of a capital "M" in the font being used. In current practice on computer fonts, an em is equal to the font size: if using 14pt Verdana then 1em = 14 points.
×

Success!

Help @BUNI-San spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...