[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] HTML help needed
From: |
Daniel Clemente |
Subject: |
Re: [Orgmode] HTML help needed |
Date: |
Tue, 4 Sep 2007 12:03:42 +0200 |
> the page by means of the file a12.alphagodaddy.com_index.html. This
> latter is the culprit as it starts with "<body style='MARGIN:0px;' >"
> (after the opening html tag). I don't know how it gets loaded but it
> probably is the price you pay for this free service.
If so, try redefining the style for the „body" element. If
necessary add „!important" so that your rule overrides others.
<style type="text/css">
body {margin: 5% !important;}
</style>
(Or margin-left: 5% !important; margin-right: 5% !important; )
To learn about !important and overriding rules look for „CSS
specifity" at the standard ot the web.
Other solutions:
- try the same thing with „padding" (that's like an internal margin
of an element)
- try changing the margins of the „html" tag
- hack: insert all the content on a <div> and apply styles there
Correct also the HTML errors shown by http://validator.w3.org/
(eg: <link> element should be closed, also <link />, ...).
That will be impossible since GoDaddy adds incorrect code to the
page (after </html>). If you really sent the XHTML as
application/xhtml+xml (which is the correct way), the page wouldn't
show. Sending it as text/html is also a hack. All are hacks...
Greetings,
Daniel