Saturday, June 3, 2006

A Little BLOGGER Hack!

The NavBAR at the top of the blog was not the one i liked to have. So, did
a little hack into the stylesheet of the blogger page and now, its gone!
Atleast as far i've checked that its not showing its presence in
Epiphany/Mozilla. Didnt checked this out in other browsers though.

The Blogger inserts the NavBAR Code exactly after the "<body>" tag. Hence
if we can someway comment the code out, it should work, isnt. Its not very
obvious at first sight.

  • Commenting before <body> tag and after that doesnot help. Because the
    code inserted has a comment breaker "<!-- -->" which breaks unterminated
    comments if any.
  • Moreover, there is yet another way, it is to wrap up the <body>
    within the JavaScript comment using "<script>" block. But this also will
    not help much since the embedded code has good amount of "</script>" as
    well as "<script>" hence, browser would terminate the comment halfway and
    we are into some other problem.
  • Finally efficient way is to use the "CSS" property. Enclose "<body>"
    in a "<div>" with its _visibility_ being "hidden". This finally has worked
    out. Stop, but not precisely, i wouldnt want more space before by Blogger
    Header. Here comes the help from "Negative Margins", finally, things
    worked out.
  • Eureka!!! Its done. Need another hack to include HTML tags in the blog that we mail!


    No comments: