Css wrangling

I have finally implemented drop-down menus on the navigation bar. This should make page navigation that much easier I hope. Now I can remove the pages from the navigation bar and fill it with something more interesting (No idea what though)

It took me a few hours until I got everything done. Initially I was trying to figure it out myself but I could not find any plugin to do it nor any hint from themes that implemented something similar. Fortunately, the admin over at Back-on Online was kind enough to provide me with some code snippets when I contacted him. Unfortunately it wasn’t as simple as copying and pasting them into my style sheet and header files (Although I was secretly hoping for that) 🙂

After some unsuccesful tries over the course of an hour or so, I decided to google the name of the script which fortunately pointed me in the right direction.

Three hours later and my drop down menus are complete (in their first incarnation that is). Not only that but I’ve managed to add the categories as a drop down menu which should make navigation even easier.

My Relevant stylesheet part for the navigation drop-downs is this

/* Drop Down Menu */
#suckerfish, #suckerfish ul {
padding: 0;
margin: 0;
list-style: none;
line-height: 1;
}
#suckerfish a {
display: block;
color: #fff;
}
#suckerfish li {
float: left;
position: relative;
}
#suckerfish li ul {
position: absolute;
left: -999em;
height: auto;
}
#suckerfish li ul li {
background: #009;
width: 20em;
}
#suckerfish li ul li a{
color: #AAA;
}
#suckerfish li ul ul {
margin: -3em 0 0 20em;
}
#suckerfish li ul li ul li{
width: auto;
}
#suckerfish li:hover ul ul, #suckerfish li:hover ul ul ul, #suckerfish li.sfhover ul ul, #suckerfish li.sfhover ul ul ul {
left: -999em;
}
#suckerfish li:hover ul, #suckerfish li li:hover ul, #suckerfish li li li:hover ul, #suckerfish li.sfhover ul, #suckerfish li li.sfhover ul, #suckerfish li li li.sfhover ul {
left: auto;
}
/* End Drop Down Menu */

It took me quite while to have the third level menu come out at the same level. The most important part to notice is that the width and the margin of it should be the same, otherwise you either get the manus overlapping or too far apart. In the third menu I fount it better to leave the width automatic so as not to extend the background color too much. However that created a problem with small links and as a result I had to reduce the parent <ul> width to something small to force the list items to fall under each other.

In the header, after adding the new class id in the <ul> parent of the navbar, I also included this


	
  • Categories
  • Which creates a drop down menu for the categories.

    All in all, I like this way of navigating through the pages much more. Unfortunately I only tested this in Firefox and Konqueror does not seem to handle everything as it should be so I just don’t even want to think what is happening in IE (even with the javascript hacks I had to put in). So if you’re using that and things look strange, do yourself a favor and get a standards compliant browser.

    I might go back to this once I get in the mood but for now I’m happy it’s at least working in firefox.

    PS: I just now discovered that the <code> function in worpress’ wusyiwyg editor pretty much suchs as it tends to be moved around every time I save.

    Damnit, What now?

    What the hell just happened to my gallery is what I want to know. One day everything is working fine and now I check it out and the layout is completely b0rked!

    Scratch that, everything seems to be back to normal now. As a troubleshooting step, I renamed my wpg2header.php file to a _bak and copied the header.php into the same name. Format was closer to the original but still bad.

    I then restored the _bak file to it’s original name and it now works…

    WTF?!

    Oh well…

    I still need to fix the stylesheet for the gallery and add the footer in some way however.

    Need. More. Free. Time!

    Ouchie

    • My neck hurts – Strained a muscle headbanging yesterday
    • My chest hurts – I manaeged to get a small second degree burn while firedancing on Sunday
    • My ankle still hurts – I twisted it back in February

    Pain

    Swamped

    My time seems to have suddenly disintegrated. Between 9 hours of German lessons per week (3 hours on Monday, Wednesday and Friday), training, exercise and festivals, I barely seem to have time to check my online comics or even sit and watch a tv series.

    Just last Sunday, where I was expecting to take it slowly, I went  to the Grüneburgpark to train @ firedance a bit and I ended up hanging out with a party of people sitting around playing with drums (Τουμπερλέκια ελληνιστί) and generally having a good time. They drew me in and I went home at 11pm instead of the 7:30pm I was initially planning to. I’m not complaining mind you, I like meeting new people and doing stuff but I don’t seem to be able to manage some time for computer projects and the site and I’m also afraid people will start to think that I’m ingoring/avoiding them.

    Ah well.

    ACP

    After some discussion, the Antichristian Phenomenon has gone live. I decided to just dive in and make a start and see how things go after that. Why not? After all, it won’t cost me anything other than time since I’m not using even close to my limits on my hosting plan right now.

    Right now the main site is based on WordPress (oh how I love free software) and there is room for expansion into anything else (like gallery, wiki or whatever).
    I’ve installed some few basic plugins but unfortunatey the theme I picked does not support widgets currently, which is unfortunate since they have recently been put as a base feature list in the new wordpress 2.2.

    Maybe I’ll change theme if it isn’t updated or I may just do without widgets as I’ve done until now. The group will decide anyway.

    Who knows, maybe this will turn into something interesting in the long run.

    Slow learning

    After three hours of German lessons at VHS they have finally taught us the following:

    • Ich heiße Konstantin
    • Ich komme aus Griechland
    • Ich wohne in Frankfurt

    That’s it

    No seriously.

    There were a total of 18 people in the class, of pretty much every ethnicity. Unfortunately this slowed the learning to a crawl as the teacher would make every person repeat the phrases he was teaching, and then make us tell it to each other.

    The funny thing is that the teacher did not actually teach English to German but rather a German-for-all style, even though most participants were english speakers. He communicated what he meant, and what he wanted us to do, with body language mostly. This might be all well and fine when teaching you to say “Wo wohnen Sie?” but how the hell is he going to explain the more difficult meanings or the strange words? I’ll guess I’ll find out soon enough.

    Βοηθώντας το Blog.me

    Οργανώνεται συλλογή υπογραφών για την βοήθεια υπεράσπισης του Αντώνη Τσιπρόπουλου. Το πιο ενδιαφέρον είναι οτι το τελικό σύνολο των θα παρουσιαστεί στο δικαστήριο σαν πειστήριο οτι οι “εμπειρογνώμονες” των ιστολογίων και του internet διαφωνουν με την κλήτευση.

    Μέχρι τώρα που το γράφω αυτό έχουν υπογράψει μόνο 16 άτομα.

    Αίντε!

    Canada becomes Hollywood's bitch

    It’s been building up for quite while now and it’s almost over. Canada has submitted to the will of hollywood studios and is passing the appropriate laws.

    Ok, let me say that again.

    A Sovereign nation has made a modification to their legal system in order to comply with the wishes of movie producers in another country!

    Am I the only one who think this is starting to get out of hand? Certainly not, from seeing the reactions of other bloggers, but I do not see any reaction from the people of Canada itself. How can they stand by and let their own politicians and legal body be bullied by some lobbyists in the USA? Why are they not up in arms throwing rotten tomatoes on those sellouts that say they represent the people?

    Something similar happened in Sweden not so far back before when the MPAA lobbied the US goverment to pressure the Swedish goverment to force the police force to perform an illegal raid on the Piracy Bay.
    What happened? 3 days later the Piracy Bay was back up and because of the nature of the raid and who was behind it, the Pirate party became that more popular. The Swedes obviously did not see favorably the fact that their goverment was being shoved in the direction the entertainment cartel wanted.

    Canadians, on the other hand, just sit and take the pimp slaps of the Motion Pictures Ass. of America.

    So what if they take away the previews? So what if push back the releases? They’re only shooting their own foot by forcing people to download if they want to watch the new releases.
    It was just a scare tactic. It is not in their best interest to lose the box office revenue of entire Canada.
    So they bluffed and forced a whole country to change their laws in a knee-jerk reaction.

    Is this how things are going to be from now on? Whenever Holywood says “Jump” we’re going to be asking “How high?“? I am aware that many goverment bodies, especially the US one, work mostly for the benefit of the corporations and hide behind rhetoric for the people. However I’ve never before seen such a blatant display of power from the true beneficiaries of recent copyright laws.

    When are people finally going to realize that it’s not us who needs hollywood and movies, it is them who need our wallets so that they can continue to pay the extravagant salaries of their movie “stars” and studio execs.

    Canada, wake up and smell the bullshit! You are being 0wned!