Putting a thin line around a text

  Revi 10:31 20 Oct 2005
Locked

Ref FP 2003, with the idea of placing a thin line to encage a text element I have used the following code:
div class="box">
my text element
/div>
but no result!
My text element is written in the “body” portion and so I have used the code in the body part.

  Revi 12:07 20 Oct 2005

Thanks for your reply. I haven't left out those '<' and '>'. I have written exactly as below:
<div class="box"> my text</div>

  harristweed 12:42 20 Oct 2005

<div style="border:solid red 1px;">my text element</div>

  Revi 13:06 20 Oct 2005

Congrats it worked! The only problem is that the box is stretching the entire width of the table. I want it just around the text element. Thanks for helping.

  Revi 13:15 20 Oct 2005

Congrats it worked! The only problem is that the box is stretching across the entire width of the table. I want it just around the text element. Thanks for helping.

  harristweed 13:38 20 Oct 2005

<span style="border:solid red 1px;padding:5px;">my text element</span>

  Revi 13:53 20 Oct 2005

Superb! Now everything's alright. Sorry for the inconvenience caused for not being clear from the very beginning. Many thanks.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

HP Envy x2 review: Hands-on

Iconic New York graphic designer Milton Glaser on his uplifting new subway posters

New iMac Pro release date, UK price & specs rumours

Comment suivre le parcours du père Noël ?