473,378 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Need Help with formating, indents, and margins

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
9 2026
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: Thomas Mlynarczyk | last post by:
Hello, I noticed that IE seems to put some kind of default margins on <li> elements and the only way to get rid of them seems to be asigning negative margins. To make things worse, IE5 and IE6...
14
by: steven | last post by:
Hi, I've got more or less the design I wanted (http://www.nenya.be/20041211/), except for 2 details: 1. the menu's left border doesn't cover the full height of the menu if the main div is...
1
by: Mika M | last post by:
Hi! I have some problems with setting PrintDocument margins using PageSetupDialog. Here some code to explain my problem... First PrintDocument declaring this way... Private pd As...
7
by: tm | last post by:
I am trying to print a form using the following code, everything works fine but the margins are not acted upon. What I am I doing wrong? Private Sub CaptureScreen() Dim myGraphics As...
0
by: Todd | last post by:
Hi guys, Strange bug if someone could help. ... Im using printDialog, printDocument and printPreviewDialog to write my print routines for a graphics application. I want to allow the user to...
5
by: Anne DeBlois | last post by:
Hi, We are developing a database application in Visual Basic.NET 2005. The application will print label pages. Using the PrintDocument and GDI+ classes, I noticed a slight change when printing...
7
by: Mark | last post by:
Hi, I am creating application in VB 2005. and when I print report it adds extra 0.45 cm margin on left and top, and the reason for this is physical margins of printer. Is it possible to change...
2
by: sitko | last post by:
Hi, I'm in the process of converting a VB.net program into a C program so it can run on a unix like machine. I've been moving along at a nice pace, but this conversion has stumped me. I need...
3
by: Rafe | last post by:
Hi, I think I have discovered two bugs with the inspect module and I would like to know if anyone can spot any traps in my workaround. I needed a function which takes a function or method and...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.