PC Review Forums Newsgroups Microsoft Word Microsoft Frontpage why the width of a border take the whole page?

Reply

why the width of a border take the whole page?

 
Thread Tools Rate Thread
Old 01-09-2007, 07:58 AM   #1
=?Utf-8?B?SmFjcXVlcw==?=
Guest
 
Posts: n/a
Default why the width of a border take the whole page?


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?
  Reply With Quote
Old 01-09-2007, 08:36 AM   #2
Ronx
Guest
 
Posts: n/a
Default Re: why the width of a border take the whole page?

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/




"Jacques" <Jacques@discussions.microsoft.com> wrote in message
news:3C6CA839-60A2-496C-804A-38AEC2CEC8CC@microsoft.com:

> 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?


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off