Monday, September 18, 2006

Travelling mommy - Ciccini Viaggiatori

Cristina's first post on Ciccini Viaggiatori Blog.
Travelling mommy - Ciccini Viaggiatori

Thursday, September 14, 2006

Using custom stylesheets in Google Page Creator

Recently I was trying to find a way to use a custom css in Google Page Creator to realize a more personalized page. This is what I found:

  • Log to your Google Page Creator account.
  • Create an Home Page. Select whatever look and layout you prefer.
  • Start to edit the page.
  • Select one element of the page (i think the ideal is the subtitle) and click on the Edit HTML link.
  • Now insert this little fragment of code right after the real content that you want to display in the subtitle:

    <script language="javascript">
    var h = document.getElementsByTagName("head")[0];
    h.innerHTML=h.innerHTML+
    "<link rel=StyleSheet href=\"/style_override.css\" type=\"text/css\">";
    </script>
  • Click on Save changes
  • Click on Publish and wait for the page to be published
  • Click on Back to page manager
  • Write locally a CSS file and rename it to style_override.css
  • From the page manager upload the CSS file
  • You are now ready to view the custom styled page


This method relies on javascript so it will work only if you have it activated in your browser; it consits of simply accessing the head element of the document via the DOM ( document.getElementsByTagName("head")[0]; ). After that it simply adds a string containing the <link> tag to the innerHTML of the head element. Since this new content will be appended to the "google imposed" css it will override the existing css rule.

Here is a live example:
This is an example of the result of the method.

And this is the same page without the custom style

As you can see I only changed the padding of the left column to 5px but the possibilities are infinite and are limited only by our fantasy.

I hope that somebody will find this little trick useful.
Let me know if you have question or just leave me a comment.

Bye.

Tags:

Firefox 2 Beta 2

Firefox 2 Beta 2 has just been released. As always with beta this is a release reccomended only to developers and testers.

According to the schedule, after 6 Candidate Release, today will be released the definitive version of Firefox 1.5.0.7.

Tags:

Friday, August 11, 2006

Implications of the AMD-ATI acquisition

Tom Yager talks about the recent AMD's acquisition. In the article at InfoWorld he posed some questions and Hal Speed (AMD's executive) gave some clarifying responses. There is also an interesting speculation about releasing ATI driver's in open source.

Tags:

Thursday, August 03, 2006

Ubuntu billboard


WildBill spotted and documented the first Ubuntu Billboard. Ubuntu isn't my favourite distribution as i am an ArchLinux fan but it's good to see that linux is gaining more and more visibility.
TV ads?
Spread the oss word.

Tags:

Tuesday, August 01, 2006

200.000.000 Firefox Download

Firefox reached 200.000.000 downloads.
SpreadFirefox celebrate the event.

Tags:

Monday, July 31, 2006

QT Java bindings

Trolltech Releases Technology Preview of Qt for Java Development.
This release named "Qt Jambi" will enable Java programmers to write Java application using the QT ui.
In this release there's also an Eclipse integration plug-in.

I'll give it a try.

Tags:

Let's start

This is the first post on my new blog.
Here you will find my thoughts about java, oss, linux, travel, soccer, my favourite soccer team lazio and more.

Bye