Monday, 28. September 2009, 01:11:34
myopera, howto, css
There are two ways to style a myOpera blog - the easy way and the hard way. This is the hard way.
Step 1: Start from scratch
Go to your Design page, go to Custom Style Sheet and select "Only use my custom stylesheet".
This gives us a nice blank slate to work with
Step 2: Organise the layout
For this you will first need to gain a basic understanding of the HTML elements that make up myOpera's blog pages. Unfortunately (for themers) the myOpera devs are constantly slaving away at improving the site, which occasionally means structural changes to the HTML. For the most part though, it stays fairly static enough over time.
First, the base blog page structure:
The initial base structure of the myOpera blog is shown below.
For some odd reason, there's a huge number of nested "wrap" elements around the page. I have no idea why - they seem utterly useless as far as I can tell, but hey.
Anyway, onwards. Inside that last #wrap4 element is your blog. This is where the magic happens. It's split into two basic parts, the header (called #top) and the main content (called #content). These and their component elements are illustrated here.
As you can see above, the header contains #top2 which is used for the main title of the page, and normally contains a large header background image on most myOpera blogs and #menu which contains the links like "Blog", "Archive", "Photos", etc.
The main #content element then contains the #mainwrap (you're blog content), the #sidewrap (your sidebar) and the #footer
Structuring the structure
Once you understand the structure of the page code, it's a lot easier to decide how you will style each element to make up the overall visual structure of your blog.
tune in next week for step 3...
Sunday, 28. June 2009, 02:23:58
truthery
.. 'tis interestin':
Read more...
Wednesday, 4. March 2009, 01:08:11
tables, html, semantics, standards
...
W3C Recommendation HTML 4.01 Specification on tables
Read more...
Tuesday, 10. February 2009, 00:02:39
mime-type, dom, ecmascript, javascript
...
Cross-mime-type document.evaluate:
javascript:(function(){(document.evaluate('//'+((document.doctype.entities.length==0)?'':'html:')+'input[@type="text"][@name="search"]',document,function(ns){return{'html':'http://www.w3.org/1999/xhtml','':null}[ns];},9,null).singleNodeValue||document.getElementById('searchbox')).focus();})();
Read more...
Sunday, 1. February 2009, 10:17:11
cross-site requests, wishlist, user-javascript, javascript
...
- Agressive cache bypass on F5 (everything should be fetched from the server, regardless of settings or headers, including all auxiliary files)
- DOMStorage
- Access Control for Cross-Site Requests
- Get rid of the "Allow User Javascript on https" warning message
- UserJavascript UI- and preference-access - a la opera.setPreference, but globally accessible
- UserJavascript auto-install (same as current method for skins/setups)
- Make the speed-dial "area" (or at least part of it) into a toolbar
- Copy and paste html/rtf from webpages (or at least a way to get it into RT emails in M2)
- Calendar app with iCal, vCard support in M2 (hCal and hCard would also be nice)
- No oncontextmenu support (a wish doesn't need to entail the addition of features afterall, and a campaign for its removal from HTML5 before 2022 would be nice too). See here for a lengthy discussion.
Wednesday, 28. January 2009, 08:07:22
toolbar, customization, skin, opera
...
Many people come to Opera from another browser and instantly ask "How do I do [thing] I could easily do in my last browser", and then get annoyed when Opera doesn't do it. A typical example is the myriad requests for extensions like Firefox in Opera. This makes no sense to me - if you want Opera to behave just like your old browser why did you bother switching.
But just because it don't make sense to moi, doesn't make me right and them wrong. So... here's an attempt to bridge the gap.
Read more...