This forum is for assistance with theme development.

Dropdown without Javascript ( Suckerfish )

Hi Drupal Commiunity,
I'm not quiet a friend of Javascript and wanted to make a dropdown without it. On my seek after a solution i stumbled upon "Son of Suckerfish". It's a kind of good solution, but it uses javascript to change the position of the list in ie. So i replaced it with display.

Problem:
The Dropdown beginns just right after the text!
( See The Testsite )

Information:
Drupal Version 5.3
The Theme is build upon bluemarine ( thanks for that )
This are going to be single level dropdowns.
List generated by
print theme('menu_tree', $secondary_links, array('class' =>'links', 'id' => 'subnavlist'))
Pre-Css-Soultion:
/* SuckerFish */

#menu ul {
padding: 0;
margin: 0;
list-style: none;
}
/* Override li.expanded, li.collapsed, li.leaf */
#menu li.expanded, #menu li.collapsed {
list-style: none;
padding:0;
background-color:#999999;
margin:0 auto;
}

#menu li.leaf {
background-color:#666666;
margin:0 auto;
}

#menu a {
display: block;
width: 10em;
}

#menu li {
float: left;
width: 7em;
color:#000000;
list-style: none;
padding:0;
margin:0 auto;
height:25px;
}
#menu li ul {
position: absolute;
width: 10%;
display: none;
padding:0;
}

Theme_links in custom menu

Is there a way to use theme_links function with other menu than primary links or secondary links,
for example, I create a new menu for the footer links called"my footer links", I want to theme it using a function similar than this one in my template:
<?php print theme('links', $primary_links, array('class' => 'footer_links')); ?>

But I don't know where to write the "My footer links" ID?

Thank you in advance

Imbed script in heading

I want to put the following code in a heading. How do I do it?

<" + "/script>"); //-->

Only local images are allowed.

This code was generated from Openads.
My goalis to integrate Openads with my Drpal site.

Help with views bonus pack

Hello guys I have created a view for my site using the bonus grid view but I do not like the way the grid view look because the way the grid looks it start off with the first image being in the middle and not to the left. I would like for the grid to have only two rows and many columns the code below is the css for the bonus grid could some one help me change this

Using 'drupal_get_destination()' with a link, rather than a form

Hi, I'm trying to create a login link that returns the user to their previous page once logged in. The link looks something like:
l(t('login'), 'user/login?'.drupal_get_destination() ...
Which correctly shows as "user/login?destination=recipe" in the source, but turns into "user/login%3Fdestination%3Drecipe" once on the login page, and doesn't work.

What am I doing wrong?

Packaging error messages

I'm in the process of porting my theme to drupal 6. I followed all the steps necessary to post the development version on the theme to drupal.org, but I got this error:

Packaging error messages

* ERROR: /bin/tar -ch --file=- dreamy | /bin/gzip -9 --no-name > /var/www/drupal.org/htdocs/files/projects/dreamy-6.x-1.x-dev.tar.gz failed with status 1

Check it out here: http://drupal.org/node/200988

Pages

Subscribe with RSS Subscribe to RSS - Theme development