HTML changes
By Fredrik Andersson. Monday, 17. November 2008, 10:23:33
We're about to release a new version of My Opera. The release contains some HTML changes. This might affect you if you have written your own custom CSS, but the changes are moderate and it should be fairly easy to adjust the CSS.
The first thing we did was to switch from XHTML to HTML. Yes, we believe that HTML is the way to go and we finally got rid of that xml prologue that caused "some old browsers" to go into quirks mode. You will also notice that it's now somewhat easier to read the code when you view the source.
You do not need to edit any XHTML content that you might have included in your old posts - it will automatically be transformed to HTML when the page is rendered.
For most blog themes we have also moved the #myo menu div inside the #wrap3 div. This means that the My Opera top menu will be as wide as your page, instead of stretching over the entire browser window. (there are a few blog themes that still have the #myo div outside the wrapping div's)
Blog sidebar
For the new My Opera we wanted to standardize the image sizes. We used to have 29 different sizes for each user photo! This was way too much and we now have only 4. This made us update the HTML/CSS to fit better with the new images.
The standard width for the sidebar is now 240 px.
The image sizes for the friends list in the sidebar used to be 102x77. It's now 104x78.
The images sizes for the latest comments used to be 45x43. It's now 40x30.
The images sizes for the recent visitors used to be 64x48. It's now 68x51.
Friends
The image sizes for the friends page used to be 169x127. It's now 104x78. The location field was also removed to simplify the page.
Photo albums
Changes have been made to the photo albums code. In essence we have made it into a list rather than just div's.
Photo albums overview. OLD code:
<div class="albums"><div class="album1"><div class="albumthumb1"><a href="#"><img src="#" width="160" height="120" alt="" class="albumimage" /></a></div><div class="albumnfo"><h3><a href="#">Title</a></h3><p class="imagecount"><b>Images:</b> xx</p><div class="albdesc">Description</div></div><div class="clear"> </div></div><div class="album2"><div class="albumthumb2"><a href="#"><img src="#" width="160" height="120" alt="" class="albumimage" /></a></div><div class="albumnfo"><h3><a href="#">Title</a></h3><p class="imagecount"><b>Images:</b> xx</p><div class="albdesc">Description</div></div><div class="clear"> </div></div></div>
Photo albums overview. NEW code:
<ul class="nobullets" id="albums"><li class="album1"><a href="#" class="albumimage"><img src="#" width="280" height="210" alt=""></a><h3><a href="#">Description</a></h3><p class="imagecount"><b>Images:</b> xx</p><div class="albdesc">Description</div></li><li class="album2"><a href="#" class="albumimage"><img src="#" width="280" height="210" alt=""></a><h3><a href="#">Description</a></h3><p class="imagecount"><b>Images:</b> xx</p><div class="albdesc">Description</div></li></ul>
Photo album view. OLD code:
<div id="mypix"><div class="thumb1"><div><a href="#"><img src="#" alt="" width="320" height="240" /></a></div><p class="photoinfo right photocomments"><a href="#">x comments</a></p><p class="photoinfo photoviews">xx views</p></div></div><div class="thumb2"><div><a href="#"><img src="#" alt="" width="320" height="240" /></a></div><p class="photoinfo right photocomments"><a href="#">x comments</a></p><p class="photoinfo photoviews">xx views</p></div></div></div>
Photo album view. NEW code:
<ul class="nobullets" id="mypix"><li class="pic1"><a href="#" class="thumb"><img src="#" alt="" width="320" height="240"></a><p class="photoinfo right photocomments"><a href="#">x comments</a></p><p class="photoinfo photoviews">xx views</p></li><li class="pic2"><a href="#" class="thumb"><img src="#" alt="" width="320" height="240"></a><p class="photoinfo right photocomments"><a href="#">x comments</a></p><p class="photoinfo photoviews">xx views</p></li></ul>








coxy # 17. November 2008, 13:11
Chas4 # 17. November 2008, 13:53
Tamil # 17. November 2008, 14:31
Furie # 17. November 2008, 14:52
Quinnuendo # 17. November 2008, 17:19
LorenzoCelsi # 17. November 2008, 18:18
fred # 17. November 2008, 18:44
LorenzoCelsi # 17. November 2008, 18:52
Besides the "new" tags introduced in HTML5, I don't get the purpose of it or maybe I should say I don't get why the W3C made us move to XHTML (with a strict syntax, which is good) and then go back to HTML (no XML, no mudules, tags omitted, commas omitted, etc). Did you get the master plan I am missing?
fred # 17. November 2008, 19:10
Tabmartel # 17. November 2008, 21:08
Khadgar # 17. November 2008, 21:41
Ick thought I'd have a bit longer to work on N+! Coding spree tonight!
Chas4 # 17. November 2008, 22:11
Khadgar # 17. November 2008, 23:10
DBabbit # 18. November 2008, 04:24
kembangp3t3 # 18. November 2008, 05:12
SouthernCross # 19. November 2008, 02:49
fred # 19. November 2008, 09:41
SouthernCross # 19. November 2008, 13:39
hzr # 20. November 2008, 12:14
<xsl:text disable-output-escaping="yes"><doctype html></xsl:text>
instead of using <xsl:output/> (if your XSLT processor supports that).
infinity-1 # 29. November 2008, 18:10
Ugh, well I've done my best, my blog looks crappy but at least it doesn't look like total shit, these changes are why people move to other blogging sites frankly, it would be easier to start over than to deal with the carnage that the updates cause to your carefully crafted CSS!
DBabbit # 4. December 2008, 10:49
Furie # 4. December 2008, 10:51
DBabbit # 4. December 2008, 11:26