Skip navigation.

exploreopera

| Help

Sign up | Help

Feanor

Blogging since the First Age

Posts tagged with "html"

Google Chrome

, , ,

Google is releasing the beta of their new "browser", that actually is not a browser but an environment for developing sophisticated AJAX web applications, I guess in the effort of competing against Flex from Adobe and Silverlight from Microsoft. Here is a comic that introduces Chrome:
http://www.google.com/googlebooks/chrome/#

Of course you know Google is also involved in releasing Android, that should be some sort of operating system for mobile devices, as well as a development platform for mobile applications. So I guess Chrome is going to be the mobile browser of choice from Google.

Despite Google is sponsoring Mozilla Foundation, Chrome is not based on Gecko but Webkit, the same rendering engine of Safari on Mac and some newer browsers on Linux.

More here:
http://www.google.com/chrome/intl/en/features.html?hl=en&brand=CHMG&utm_source=en-hpp&utm_medium=hpp&utm_campaign=en
Unfortunately there is only for WindowsXP and Windows Vista.
They say MAC and Linux versions are under development.
I am running Win2K here.

What is Dragonfly?

, , ,

You know Opera 9.5 has been relased. It has got a tool named "Dragonfly" in "tools - advanced - developer tools". What is it? For the other geeks out there it is an obvious redo of Firebug. For my other readers, it is a tool for "inspecting" the structure of the webpage you have loaded in Opera. What does it mean? Lets say you want to change the color of your blog title. You open Dragonfly, click on the title and it displays what line of code in the page corresponds to the "object" title, plus the CSS properties of that object. It shows you the hierarchy relations of the object and other objects in the page (it is the DOM structure) and does the same for its CSS properties. Once you have got these information you can edit your "user.css" file and change (almost) anything in your blog.

Dragonfly can be used to debug webpages at a more complex level but people who know what it means don't need explainations :smile:

Anyway, everybody ask me if you need help.

You need a simple slideshow? - Hai bisogno di un semplice slideshow?

,

Try this one: http://meyerweb.com/eric/tools/s5/

On a side note: I am trying Firefox 3 again, after the beta 3 releasing. I am using the nightly builds actually. First a warning: when you uninstall the beta you are asked if you want to remove also your personal data and when you go for "yes" EVERY EXISTING FIREFOX PROFILE will be erased. Be careful then. No big news anyway over previous versions, just some more bug fixed and a new default theme that should blend better in each OS default look. On my Win2K it blends like a punch in your eye (it is an italian saying). I still don't get the "places", unnecessarily difficult. Yes, I looked on the dictionary for "unnecessarily". :smile:

You want to add a border around the images in your blog "design"?
add these lines to your "user.css" file:
div.content img { padding:4px; border:1px solid #D3D3D3; }
div.content img.smilie { border:none; padding:0px; }
The first puts 1 pixel border around images, #d3d3d3 is the color and 4 pixels of empty space (the padding) around, the second takes the border and the spacing away from the emoticons.
-------------------------------
Per i lettori italiani: per lo slideshow seguite il link soprastante.
Riguardo Firefox vi conviene andare a leggere il mio blog in italiano che trovate nella sezione link sulla colonna laterale. Potete ricercare tutti i miei post su un certo argomento usando il campo "cerca" in alto a sinistra.
Il codice CSS che vedete sopra invece serve per aggiungere un bordo di colore #d3d3d3 (grigio chiaro), spesso 1 pixel e con uno spazio vuoto (padding) di 4 pixel intorno alle immagini del blog, è sufficiente aggiungerle al vostro "user.css". La seconda riga dello stesso codice serve per togliere il bordo e lo spazio intorno alle emoticons, le cosidette "faccine".

Adding images to blog posts on MyOpera

, , , ...

When you want to add a file to a blog post (out of your albums) the editor asks you to either give the remote URL of the image or upload it on MyOpera and it goes in the "blog" directory. You can select left, center or right alignment.

Problem:
When you select "center" or you don't select any alignment, the image probably stays its original size, with the limit of 100% of the post area. When left or right are selected the image is displayed RESIZED to accomodate it at 48% of the blog post area, regardless what the image actual size is. See the CSS:
.imgleft img {
clear:left;
float:left;
margin:4px 15px 8px 0pt;
max-width:48%;
}
In the previous post the image I uploaded is 320x240px and it is actually displayed in 288x216px (excluding the 1px border and the 4px padding I've added to every image).
This solution allows the editor to handle any kind of picture you may upload but has got 2 major drawbacks:
1. The image is ALWAYS displayed resized, besides the improbable event that 48% of the post area is exaclty the original image size.
2. Your readers download the image in the original size even if it is displayed much smaller. That is waste of space on your file hosting area and waste of bandwith for your readers. That is expecially heavy for vertical images.

My advice is to resize the images you want to align left or right at least to 320px of width before you upload to MyOpera. Pictures that go in your albums are already displayed with a thubnail, so that is done automatically by the editor.

---------------------------------------------

Quando volete aggiungere una immagine ad un post su MyOpera (a parte il caso in cui la aggiungiate ad un photoalbum) l'editor vi chiede la URL oppure vi fa fare upload del file dentro la directory Blog. A questo punto potete selezionare l'allineamento sinistro, centrato o destro.

Problema:
Se selezionate centrato o non selezionate l'allineamento, l'immagine rimane della dimensione originaria fino al limite del 100% della dimensione dell'area del post. Se selezionate invece sinistro o destro l'immagine viene ridimensionata via CSS (vedi sopra) in modo che appaia al massimo il 48% della dimensione dell'area del post.
Questo ha due inconvenienti fondamentali:
1. L'immagine viene SEMPRE ridimensionata.
2. Il lettore del vostro blog dovrà scaricare l'immagine nella dimensione originaria anche se poi la vede effettivamente più piccola. Questo implica spreco di spazio sul vostro spazio di hosting di MyOpera e spreco di banda per i vostri lettori.

Il mio consiglio è di ridimensionare tutte le immagini che volete allineare almeno a 320px, tranne quelle che inserite nei photoalbum perché in quel caso l'editor crea dei thumbnail automaticamente.

Opera Answers

, , , ...

I've found this one, in case some of you is interested in Opera the browser:
http://my.opera.com/operaanswers/blog/

Box model - tableless page layout

,

I've found a page layout I made some time ago. Maybe somebody needs a template to use or to study in oder to see how a page without tables works. The page adapts to the client window width till a max and min limit. It includes also a drop down menu with multiple levels. Honestly I don't remember why I wrote the page. It is not rocket science, just a leftover but I hope somebody find it useful.
Here we are:
See it working:
http://files.myopera.com/LorenzoCelsi/files/demo/home-fluid.html
Download:
http://files.myopera.com/LorenzoCelsi/files/demo/layout.zip

Another MyOpera glitch

, ,

It seems there is something wrong in the comments so when you click on "enter" to break a line and return to the next paragraph/line instead of adding a single
<br />
they add two of them
<br /><br />
As result you can see HUGE empty spaces in comments.
Example attached in the comments section.

So you wanted to center a DIV - Cosi volevi centrare un DIV

, ,

Here is a sample of how to center a DIV in a Web page. Remember in case you want to add CSS properties for any IE versions but IE7, you change:

Ecco un esempio di come centrare un DIV in una pagina Web. Ricordatevi nel caso vogliate aggiungere proprietà CSS per qualsiasi versione di IE tranne IE7 di cambiare:

<!--[if IE]>
with
<!--[if lt IE 7]>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<style type="text/css">
<!--
body {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
}
#centeredbox {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 320px;
height: 240px;
margin: auto;
border: 1px solid red;
}
-->
</style>
<!--[if IE]>
<style type="text/css">
#centeredbox {
top: 50%;
left: 50%;
margin-left: -160px;
margin-top: -120px;
}
</style>
<![endif]-->
</head>
<body>
<div id="centeredbox">Ciao</div>
</body>
</html>
September 2008
SMTWTFS
August 2008October 2008
123456
78910111213
14151617181920
21222324252627
282930