| View previous topic :: View next topic |
| Author |
Message |
Cocaine44 General User

Joined: 31 May 2006 Posts: 7
|
Posted: Wed May 31, 2006 8:24 am Post subject: Margins in HTML |
|
|
Hello,
How do I set margins (top, bottom, left and right) in a HTML document? |
|
| Back to top |
|
 |
pcdoc2010 General User


Joined: 17 Jan 2006 Posts: 14 Location: IL
|
Posted: Wed May 31, 2006 8:33 am Post subject: |
|
|
Are you editing in Writer?
Go to View -web layout and you can adjust margins there.
also format - page and actual margin settings are here _________________ Dan |
|
| Back to top |
|
 |
Cocaine44 General User

Joined: 31 May 2006 Posts: 7
|
Posted: Wed May 31, 2006 8:38 am Post subject: |
|
|
| pcdoc2010 wrote: | | also format - page and actual margin settings are here |
It doesn't seem to work for HTML documents  |
|
| Back to top |
|
 |
BillP Super User

Joined: 07 Jan 2006 Posts: 2702
|
|
| Back to top |
|
 |
Cocaine44 General User

Joined: 31 May 2006 Posts: 7
|
Posted: Wed May 31, 2006 10:10 am Post subject: |
|
|
| BillP wrote: | | http://www.oooforum.org/forum/viewtopic.phtml?t=3412& |
That doesn't quite answer the question - how to do it in OOo Writer
They say there's no such thing as webpage margins. Actually yes, there is something like that
For example:
<style type="text/css">
body {margin-top: 10px}
body {margin-bottom: 10px}
body {margin-left: 10px}
body {margin-right: 10px}
</style>
And that's it.
But is there a way to do it in Writer? |
|
| Back to top |
|
 |
siyisoy General User

Joined: 29 May 2006 Posts: 6
|
Posted: Wed May 31, 2006 12:53 pm Post subject: |
|
|
| Try changing attributes of predefined HTML Style ( or a child of it). It has options for margins. |
|
| Back to top |
|
 |
Cocaine44 General User

Joined: 31 May 2006 Posts: 7
|
Posted: Sat Jun 03, 2006 9:08 am Post subject: |
|
|
| siyisoy wrote: | | Try changing attributes of predefined HTML Style ( or a child of it). It has options for margins. |
Where can I find it? In "Styles and Formatting" window there are styles for paragraphs, characters and lists, but page styles are unavailable in Writer/Web mode |
|
| Back to top |
|
 |
Robert Tucker Moderator


Joined: 16 Aug 2004 Posts: 3367 Location: Manchester UK
|
Posted: Sat Jun 03, 2006 10:47 am Post subject: |
|
|
| You can modify the "Text body" margin by right-clicking it in the "Styles and Formatting" window (F11), left-clicking "Modify" and going to "Indents & Spacing". |
|
| Back to top |
|
 |
Cocaine44 General User

Joined: 31 May 2006 Posts: 7
|
Posted: Sun Jun 11, 2006 3:18 am Post subject: |
|
|
| Robert Tucker wrote: | | You can modify the "Text body" margin by right-clicking it in the "Styles and Formatting" window (F11), left-clicking "Modify" and going to "Indents & Spacing". |
You can only set left and right margins this way, but I found another way to set all margins.
In the HTML source view, "@page" needs to be replaced with "body". This results in web browsers showing margins set in Format -> Page section.
Unfortunately, you have to replace "@page" with "body" every time you save the file
I hope this will change in further versions of OOo |
|
| Back to top |
|
 |
|