problem w/indenting

They have: 2 posts

Joined: Dec 2001

how can i indent text on my webpage (just a single line indent, not

)? i've just used "nbsp;" to indent(and it works fine) but it has this ... unwanted side effect. for some odd reason, it makes all of the quotation marks and apostrophes disappear! has anybody else encountered this problem? is there anyway around it?

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

Look here: http://www.wdvl.com/Authoring/Design/Layout/

hope that helps.

Brian Farkas's picture

They have: 1,015 posts

Joined: Apr 1999

Alternatively, you could create a transparent spacer.gif, and set that to the width you want the indent to be.

Good luck,

Brian

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Ack, no! Don't hack code, please. You'll end up with a mess later.

& n b s p ; (the ampersand is vital -- remove the spaces) shouldn't remove anything. Check your syntax, you may be missing some code somewhere else.

You can also use CSS, though it only works in higher browsers.

p { text-indent; .5em; }

Do you have a sample url?

Suzanne

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

OPPS is using the the

    thingy called hacking code?
    If so I shall remove that. Just something I found and it seemed to work. Wouldn't want to pass on any bad habits.

Busy's picture

He has: 6,151 posts

Joined: May 2001

also if you want quotes in your text, use ", dont use " it can cause problems, and if you missed a quote in a previous tag, the quote you add can be seen as the missing one and then all goes to ruins from there.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Quote: ... and then all goes to ruins from there.

You're not just whistling Dixie!

man, the problems caused by missing quotes and semi-colons!

Disaster-Master: using

    isn't hacking, but using it without
  • just to indent, is. Using weird workarounds is really damaging to the content, especially for the future. You don't want all your hard work to fall to ruins because of a browser upgrade, right? We've seen that happen on the web a few times already (Netscape 6 anyone?).

That's why coding to standards is so important -- the future!

I have oodles of strange workarounds in my code from the past, and really need to edit a LOT of work, but fortunately have always been a lazy coder -- if it didn't work everywhere, I was liable to just ditch it altogether. Wink

Smiling Suzanne

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

That makes perfect sense Suzanne. Thanks for catching me on that one.Smiling

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Quote: That makes perfect sense Suzanne. Thanks for catching me on that one.Smiling

No problem, you can catch me on the next one. Wink

S

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.