Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 17th, 2004, 01:28 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default text-alignment

i got my text written as:

( see this text, it is not looking good, here <DIV> reaches end
it is now restarting sssssssssssssssssssssssssssssssssssssssso
this looks not so pretty! )

(
see this text, it is not looking good, here <DIV> reaches end
it is now restarting sssssssssssssssssssssssssssssssssssssssso
this look is also not desired.
)

can anyone tell me, simplest method of writing like this:

( see this text, it is now looking good, here <DIV> reaches end
it is now restarting ssssssssssssssssssssssssssssssssssssssso
this looks good. )

if u think this question is funny, i don't agree, 4my sake,
please let me the clue instead. thanx.
__________________
`~@#\^%&*/\.<.\/-|+|_!:;..=?>
PHP, SEO | anshul shrivastava | mediasworks.org | FB
 
Old July 17th, 2004, 01:36 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default


I would if I had a clue about what you mean. It's hard to know what's comments and actual text samples in the above. First I thought you wanted every second line indented but I'm not so sure. Could you provide a more clear example?

(o<
//\ =^..^=
 
Old July 17th, 2004, 02:06 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

i may try2explain further
anyway u've helped me few-times before :)
--------

above3all r texts written in a <DIV>
i've set text-align:justify;

but sometimes a character or more indentation is required like:

Topic: qwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
       weeeeeeeeeeeeeeeeeeeeeeeeeeewew
       weeeeeeeeeeeeeeeeeeeeeeeeeeeeew

here qwwww... eeeew is a text without any <BR>, i can't break it, it is a text, indentation should come same in all browsers.

similarly:

( qwqed efwf erferr dfd dsf
  sfsf sdfdf dsfdsf fdf dff
  sfs fdd. )

this looks fine! but how can i do it.

got now? please try else!
 
Old July 17th, 2004, 02:24 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I'm not sure. Do you you want a hanging indent (I think it's called that)? The first line sticks out more than the rest? A negative value for text-indent will give you that.
http://www.w3.org/TR/REC-CSS2/text.h...ef-text-indent

p { text-indent: -2em; margin-left: 2em }

<p>
Yadda yadda...</p>

You might have to give the block a left margin to make room for the indent since it's protruding from the box. Depends on your layout.

That's what you mean?

(o<
//\ =^..^=
 
Old July 17th, 2004, 03:54 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Or is it word-wrap you want?

<p style='word-wrap:break-word;width:200px;'>
texttexttexttexttexttexttexttexttexttexttexttextte xttexttexttexttexttexttexttexttexttexttext
texttexttexttexttexttexttexttexttexttexttexttextte xttexttexttexttexttexttexttexttexttexttext
texttexttexttexttexttexttexttexttexttexttexttextte xttexttexttexttexttexttexttexttexttexttext
</p>

Snib

<><
 
Old July 18th, 2004, 01:49 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

thanks 2u both.

text-indent did the desired work.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Horizontal Alignment cc16 Access VBA 0 March 7th, 2006 06:38 PM
alignment p_gauri7 Crystal Reports 0 May 9th, 2005 01:16 PM
alignment of text on dot matrix using vb...urgent syed rose VB How-To 1 July 8th, 2004 06:45 AM
Form alignment cpopham Access VBA 3 January 2nd, 2004 07:21 PM
Text alignment in datagrid pdsluk ASP.NET 1.0 and 1.1 Basics 0 October 21st, 2003 05:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.