473,752 Members | 4,946 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2044
On 2007-02-04, JAF <bscinc@Yahoo_N oSpam.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_N oSpam.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_N oSpam.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="somethin g">... 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************ *******@bgtnsc0 4-news.ops.worldn et.att.net>,
"Beauregard T. Shagnasty" <a.*********@ex ample.invalidwr ote:
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.tu t.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 “Electrochemica l 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 MICROELECTRONIC S; 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.tu t.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;paddin g-top:0.1em;paddi ng-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">Inv ited Paper</li>
</ul></li>

<!-- Second Item -->
<li><ul>
<li>2.B: <cite>Electroch emical 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">&nb sp;</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">Inv ited Paper</li>
</ul></li>

</ul>

Feb 10 '07 #9
boclair <bo*****@bigpon d.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">Inv ited 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
3158
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 seem to have different defaults. Is there an elegant way to remove these stupid margins? Greetings, Thomas
14
1739
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 higher than the menu's. How can I make it run down to the footer? 2. currently the long description wraps and continues aligned with the bullet. Is there a way to indent it so that the "second" is aligned with the
1
1423
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 PrintDocument = New PrintDocument
7
2754
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 Graphics = Me.CreateGraphics() Dim s As Size = Me.Size memoryImage = New Bitmap(s.Width, s.Height, myGraphics) Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage)
0
1423
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 specify the margins so Im setting (Im setting both as I dont know which one I should set!) :- margins = new Margins(left, right, top, bottom);
5
11145
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 to a laser printer and when printing to an inkjet printer. It's got to be the margins (defined by the printer driver). Is it possible to programmatically override the driver's margins in VB (at our risks)? If so, how to? Thanks in advance,
7
20724
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 printer's physical margins using VB coding? Cheers -- Osmotion Blue
2
1748
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 a function to take two arguments:(a double number which may or may not be an integer, and an integer which will be the number of digits to store after the decimal place) it needs to turn this into a string which is always 10 characters long. if the...
3
1730
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 returns the code inside it (it also adjusts the indent because I have to paste the to a text string without indents, which is parsed later...long story). At first this seemed trivial but then I started getting an error on line 510 of inspect.py:
0
9624
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9429
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9383
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9295
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8295
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6836
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6116
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3354
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2839
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.