By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,766 Members | 1,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,766 IT Pros & Developers. It's quick & easy.

Need Help with formating, indents, and margins

P: n/a
JAF
I need help with the following format:

1. Paragragh goes here and text wraps or indents
several spaces on second and subsequent lines.

2. Paragragh goes here and text wraps or indents
several spaces on second and subsequent lines.
More lines continue here.

3. Paragragh goes here and text wraps or indents
several spaces on second and subsequent lines.

4. Paragragh goes here and text wraps or indents
several spaces on second and subsequent lines.

That is I want the second and folowing lines in paragraphs to indent
10 pt or whatever distance looks good.

I can get this to work on a web page with idents and + or - values, if
I hand code the html for each paragraph.

So I should be able to get it to work for css, but I can not. I am
making a typo or something.

Does anyone have any sugestions for the css code to format the above
paragraphs?

Thanks.
Best regards,

JAF
http://www.discountdrivingschool.com
Feb 4 '07 #1
Share this Question
Share on Google+
9 Replies


P: n/a
On 2007-02-04, JAF <bscinc@Yahoo_NoSpam.comwrote:
I need help with the following format:

1. Paragragh goes here and text wraps or indents
several spaces on second and subsequent lines.

2. Paragragh goes here and text wraps or indents
several spaces on second and subsequent lines.
More lines continue here.

3. Paragragh goes here and text wraps or indents
several spaces on second and subsequent lines.

4. Paragragh goes here and text wraps or indents
several spaces on second and subsequent lines.

That is I want the second and folowing lines in paragraphs to indent
10 pt or whatever distance looks good.

I can get this to work on a web page with idents and + or - values, if
I hand code the html for each paragraph.

So I should be able to get it to work for css, but I can not. I am
making a typo or something.

Does anyone have any sugestions for the css code to format the above
paragraphs?
See

http://groups.google.co.uk/group/com...3210118c?hl=en

or

http://tinyurl.com/yv6wph
Feb 4 '07 #2

P: n/a
JAF
On Sun, 04 Feb 2007 16:38:38 -0600, Ben C <sp******@spam.eggswrote:
>On 2007-02-04, JAF <bscinc@Yahoo_NoSpam.comwrote:
>I need help with the following format:
snip
>
See

http://groups.google.co.uk/group/com...3210118c?hl=en

or

http://tinyurl.com/yv6wph
Thanks for the post, but the reference above already told me what I
know, that I can do what I want with margins, indents and negative
indents.

What I can not seem to get to work is using css to set up a class so I
don't have to put my code at the start of every paragraph that I want
indented.

How do I set up the css styles to do this?
Best regards,

JAF
http://www.discountdrivingschool.com
Feb 5 '07 #3

P: n/a
In article <vg********************************@4ax.com>,
JAF <bscinc@Yahoo_NoSpam.comwrote:
What I can not seem to get to work is using css to set up a class so I
don't have to put my code at the start of every paragraph that I want
indented.

How do I set up the css styles to do this?
If you want some <p>s styled a certain way, there are a number of
ways of identifying them. Simplest perhaps is to class them:

<p class="something">... in the html.

And in the css that can be in just one separate file that is
linked to the html:

p.something {color: ...;}

--
dorayme
Feb 5 '07 #4

P: n/a
JAF wrote:
On Sun, 04 Feb 2007 16:38:38 -0600, Ben C <sp******@spam.eggswrote:
>>See

http://groups.google.co.uk/group/com...3210118c?hl=en

or

http://tinyurl.com/yv6wph
Thanks, Ben. <g>
Thanks for the post, but the reference above already told me what I
know, that I can do what I want with margins, indents and negative
indents.

What I can not seem to get to work is using css to set up a class so
I don't have to put my code at the start of every paragraph that I
want indented.
Move it to the style sheet. If you aren't familiar enough to understand
that, you should study style sheets some more. It would be like this:

CSS:
..bucket { margin-left: 5em; }
..outdent { text-indent: -3em; }

HTML:
<div class="bucket">
<p class="outdent">
Volutpat duis minim tation eum molestie dolor ea ut. Te dolor wisi.
Accumsan eum et consectetuer illum eu exerci nisl in euismod vulputate.
</p>
<p class="outdent">
Another Volutpat duis minim tation eum molestie dolor ea ut. Te dolor
wisi. Accumsan eum et consectetuer illum eu exerci nisl in euismod
vulputate.
</p>
</div<!-- close bucket -->

You can't get away from assigning a class to each paragraph if you have
*other* paragraphs that have normal margins. If all the paragraphs on
the page will be outdented, just assign the margin to p.

--
-bts
-Motorcycles defy gravity; cars just suck
Feb 5 '07 #5

P: n/a
In article
<VQ*******************@bgtnsc04-news.ops.worldnet.att.net>,
"Beauregard T. Shagnasty" <a.*********@example.invalidwrote:
You can't get away from assigning a class to each paragraph if you have
*other* paragraphs that have normal margins. If all the paragraphs on
the page will be outdented, just assign the margin to p.
Unless there is something about them that is otherwise unique
like being in a div that the others are not in, then it could be
as simple as div p {...;}. Not likely in this particular case,
but useful to watch out for. It saves classing stuff in the html.

--
dorayme
Feb 5 '07 #6

P: n/a
Scripsit JAF:
I need help with the following format:

1. Paragragh goes here and text wraps or indents
several spaces on second and subsequent lines.

2. Paragragh goes here and text wraps or indents
several spaces on second and subsequent lines.
More lines continue here.
This looks suspiciously like a numbered list to me, not just a sequence of
paragraphs. List items may contain paragraphs of course, but usually
paragraph markup is not used in list items unless you have several
paragraphs in one item. The reason is that a list item is as such a unit of
text resembling a paragraph and is normally rendered in a block-like manner.

Along these lines, you could use markup like

<ol class="special">
<li>Paragraph goes here...</li>
<li>Paragraph goes here...</li>
...
<li>Paragraph goes here...</li>
</ol>

with a CSS rule like

ol.special li { text-indent: -1em; margin-left: 1em; }

(i.e., you set a left margin for a list item and a negative indentation of
the same amount for the first line, so that the net effect is to have second
and further lines indented that much).
So I should be able to get it to work for css, but I can not. I am
making a typo or something.
I think you have ":" instead of "." at line 42, or something. Seriously, to
get help with a specific page, post its specific URL.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Feb 5 '07 #7

P: n/a
JAF
On Mon, 5 Feb 2007 09:47:12 +0200, "Jukka K. Korpela"
<jk******@cs.tut.fiwrote:
>
This looks suspiciously like a numbered list to me, not just a sequence of
paragraphs.
Good analysis.

Here is a copy of some of the text of the page:

2.A “Copper Slurry Design for Copper / p-Low k Interconnects” by Y.
Tateyama, G. Minamihaba, D. Fukushima, T. Nishioka and H. Yano;
TOSHIBA; Yokohama, JAPAN.
Invited Paper

2.B “Electrochemical Analysis of Copper CMP Slurries” by C. Poutasse
and J. Huo; FUJIMI CORP; Tualatin, OR

2.C “Barrier CMP Slurry: Self-Stopping on the Ultra Low - k
Materials” by P. Monnoyer, F. Sebai and J.Farkas; FREESCALE SEMI;
Grenoble, FRANCE.
Invited Paper

2.D “Optimization of Abrasives and Chemistry in CMP Slurries for
Defect Reduction” by F. Coder, A. Meyers, R. McConnell, J. Siddiqui,
S. Usmani, S. Shrauti, G. Zhang and A. Zutshi; DUPONT NANOMAT’L;
Hayward, CA
Invited Paper

2.E “Chemical Modifications of CMP Slurries to Address Thick Copper
Applications” by C. Perrot, Y.Loquet, P. Bouillon, B.Iteprat, N.
Burgnies and M. Vincent; ST MICROELECTRONICS; Crolles, FRANCE

--- POSTER PAPERS —

2.F “Role of Slurry Chemistry on Pump Induced Particle Agglomeration
During CMP of Copper/ Low-k Dielectrics” by F.C. Chang, S. Tanawade
and R. Singh; UNIV Of FLORIDA; Gainesville, FL.

2.G “Research and Application of Polysilicon Slurry for Chemical
Mechanical Polishing in 60 nm Devices” by J.C. Yang, J.H. Kim, J.D.
Kim and S.H. Yoo; SAMSUNG ELECTRONICS; Yoingin-City, KOREA.
And we want every second and subsequent lines indent. Again I can do
it by had coding each paragrapp.

But all of the posts have given me great samples for fixing this up
with css.

So thanks to all posters.
Best regards,

JAF
http://www.discountdrivingschool.com
Feb 10 '07 #8

P: n/a
JAF wrote:
On Mon, 5 Feb 2007 09:47:12 +0200, "Jukka K. Korpela"
<jk******@cs.tut.fiwrote:
>This looks suspiciously like a numbered list to me, not just a sequence of
paragraphs.

Good analysis.

Here is a copy of some of the text of the page:

2.A “Copper Slurry Design for Copper / p-Low k Interconnects” by Y.
Tateyama, G. Minamihaba, D. Fukushima, T. Nishioka and H. Yano;
TOSHIBA; Yokohama, JAPAN.
Invited Paper
With this detail each record also looks like a list; hence semantically
a list of lists it seems to me. Since I use data base backends I would
probably do something like this for conference papers and reference lists .

Louise

_____style rules______
ul{ margin-top:0;margin-left:0;padding-left:0; list-style-type: none; }
li.indent { margin-left:2em; }
li.cat { margin-left:4em;padding-top:0.1em;padding-bottom:0.5em; }

_______markup_________

<ul>

<!-- First Item -->
<li><ul>
<li>2.A: <cite>Copper Slurry Design for Copper / p-Low k
Interconnects</cite></li>
<li class="indent">Y.
Tateyama, G. Minamihaba, D. Fukushima, T. Nishioka and H. Yano;</li>
<li class="indent">TOSHIBA; Yokohama, JAPAN</li>
<li class="cat">Invited Paper</li>
</ul></li>

<!-- Second Item -->
<li><ul>
<li>2.B: <cite>Electrochemical Analysis of Copper CMP Slurries</cite></li>
<li class="indent">C. Poutasse
and J. Huo;</li>
<li class="indent">FUJIMI CORP; Tualatin, OR</li>
<li class="cat">&nbsp;</li>
</ul></li>

<!-- Third Item -->
<li><ul>
<li>2.C: <cite>Barrier CMP Slurry: Self-Stopping on the Ultra Low - k
Materials</cite></li>
<li class="indent">P. Monnoyer, F. Sebai and J.Farkas;</li>
<li class="indent">FREESCALE SEMI;
Grenoble, FRANCE</li>
<li class="cat">Invited Paper</li>
</ul></li>

</ul>

Feb 10 '07 #9

P: n/a
boclair <bo*****@bigpond.net.auwrites:
<!-- First Item -->
<li><ul>
<li>2.A: <cite>Copper Slurry Design for Copper / p-Low k
Interconnects</cite></li>
<li class="indent">Y.
Tateyama, G. Minamihaba, D. Fukushima, T. Nishioka and H. Yano;</li>
<li class="indent">TOSHIBA; Yokohama, JAPAN</li>
<li class="cat">Invited Paper</li>
</ul></li>
I think this is perhaps going a bit far. Unless this is intended to be
computer-parsed data - and then I'd recommend using a format designed
for it rather than trying to shoehorn it into HTML: have a separate
human-readable summary and a computer-readable data file - splitting
the citation up like this will look very odd in a non-CSS context.

Alternatively, it's perhaps not far enough (if it is intended to be
computer-parsed, you really should markup the author names so its
unambiguous where the boundaries are - treating the author list as a
list makes things so much easier when handling this sort of data)

--
Chris
Feb 10 '07 #10

This discussion thread is closed

Replies have been disabled for this discussion.