why the width of a border take the whole page?

G

Guest

I put a border around a sentence and the border width is large like the page.
I would like that the border stays close to the sentence in width, how can I
do that?
 
R

Ronx

A paragraph takes up the entire width of its container, in your case the
container is the page, and the border goes around the paragraph.
One solution is to place the text in a span and place the border around
the span:
In Code View:

<p><span style="border: 1px solid red; padding: 3px;">Text goes
here</span></p>

The paragraph still takes up the entire width of the page, but the
border will be limited to the text. The padding is to provide a small
gap between border and text.

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp

FrontPage Support: http://www.frontpagemvps.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top