OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Margins in HTML

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer
View previous topic :: View next topic  
Author Message
Cocaine44
General User
General User


Joined: 31 May 2006
Posts: 7

PostPosted: Wed May 31, 2006 8:24 am    Post subject: Margins in HTML Reply with quote

Hello,

How do I set margins (top, bottom, left and right) in a HTML document?
Back to top
View user's profile Send private message
pcdoc2010
General User
General User


Joined: 17 Jan 2006
Posts: 14
Location: IL

PostPosted: Wed May 31, 2006 8:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Cocaine44
General User
General User


Joined: 31 May 2006
Posts: 7

PostPosted: Wed May 31, 2006 8:38 am    Post subject: Reply with quote

pcdoc2010 wrote:
also format - page and actual margin settings are here


It doesn't seem to work for HTML documents Sad
Back to top
View user's profile Send private message
BillP
Super User
Super User


Joined: 07 Jan 2006
Posts: 2703

PostPosted: Wed May 31, 2006 8:54 am    Post subject: Reply with quote

http://www.oooforum.org/forum/viewtopic.phtml?t=3412&
Back to top
View user's profile Send private message
Cocaine44
General User
General User


Joined: 31 May 2006
Posts: 7

PostPosted: Wed May 31, 2006 10:10 am    Post subject: Reply with quote

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
View user's profile Send private message
siyisoy
General User
General User


Joined: 29 May 2006
Posts: 6

PostPosted: Wed May 31, 2006 12:53 pm    Post subject: Reply with quote

Try changing attributes of predefined HTML Style ( or a child of it). It has options for margins.
Back to top
View user's profile Send private message
Cocaine44
General User
General User


Joined: 31 May 2006
Posts: 7

PostPosted: Sat Jun 03, 2006 9:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Robert Tucker
Moderator
Moderator


Joined: 16 Aug 2004
Posts: 3407
Location: Manchester UK

PostPosted: Sat Jun 03, 2006 10:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Cocaine44
General User
General User


Joined: 31 May 2006
Posts: 7

PostPosted: Sun Jun 11, 2006 3:18 am    Post subject: Reply with quote

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 Sad

I hope this will change in further versions of OOo
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group