How to replace a series of   within a sentence

  • inlineskater
  • Newbie
  • Newbie
  • inlineskater
  • Posts: 6

Post 3+ Months Ago

I have the following paragraph in word.

Quote:
R :        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam pellentesque fringilla elementum. Nunc eleifend iaculis ante quis dictum. Donec et massa neque. Morbi vitae diam massa. Mauris convallis ante et massa tristique rhoncus. Vivamus eu dolor in nibh varius pretium. Vestibulum mattis faucibus laoreet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut dui sit amet massa laoreet vehicula eget condimentum nisi. In hac habitasse platea dictumst. Maecenas molestie fermentum tincidunt. Duis justo risus, sagittis non mollis eu, feugiat non arcu. Nulla sed nisi id sem tempor lacinia. Donec sodales posuere quam, a aliquam nibh ultrices sed. Aliquam consectetur, est in porta porta, erat nisl faucibus eros, nec pretium urna enim eu urna. Aenean placerat sagittis orci, vel malesuada eros faucibus nec.


Between the "R        Lorem" There is a series of   ~ I don't want to use these. Is there a way with adding some fancy work in the CSS to fix this?? :shock:
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England

Post 3+ Months Ago

What you want to do is remove the   and add some padding
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8411
  • Loc: USA

Post 3+ Months Ago

To do something that you are doing would be text-indent: 1em; in CSS.

CSS Code: [ Select ]
p {
    text-indent: 1em;
}
  1. p {
  2.     text-indent: 1em;
  3. }

It could also be something like 20px instead of 1em.


Or, you could move the entire block to the right with padding (or margin).


CSS Code: [ Select ]
p {
    margin-left: 1em;
}
  1. p {
  2.     margin-left: 1em;
  3. }
CSS Code: [ Select ]
p {
    padding-left: 1em;
}
  1. p {
  2.     padding-left: 1em;
  3. }


Those 1em could be whatever you want in pixels (##px)



If you are doing this in an attempt to distinguish between paragraphs, text-indent would work and margin-top or margin-bottom would also work.

Each separate CSS block is a different example
CSS Code: [ Select ]
p {
    margin-top: 1em;
}
  1. p {
  2.     margin-top: 1em;
  3. }
CSS Code: [ Select ]
p {
    padding-top: 1em;
}
  1. p {
  2.     padding-top: 1em;
  3. }
CSS Code: [ Select ]
p {
    margin-bottom: 1em;
}
  1. p {
  2.     margin-bottom: 1em;
  3. }
CSS Code: [ Select ]
p {
    padding-bottom: 1em;
}
  1. p {
  2.     padding-bottom: 1em;
  3. }
  • aryans77
  • Newbie
  • Newbie
  • aryans77
  • Posts: 11

Post 3+ Months Ago

Remove it add a padding instead

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 70 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.