why the width of a border take the whole page?

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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/
 
Back
Top