PC Review
Forums
Newsgroups
Microsoft Word
Microsoft Frontpage
why the width of a border take the whole page?
Forums
Newsgroups
Microsoft Word
Microsoft Frontpage
why the width of a border take the whole page?
![]() |
why the width of a border take the whole page? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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? |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

