views:

119

answers:

4

I have to make menu like this. alt text

  • Items of drop-down can be increased and decreased If client will add or remove pages.
  • width of drop-down's will depend on how many character in page title name.
  • angle only needed at last item's right bottom corner.

I Know how to make drop-down menu and how to give cross browser transparency , but I want to know How to give needed angle to right bottom angle while keeping transparency.

A: 

you can change the opacity of the elements with CSS, this will work with all major browsers:

.transparent_class {
    filter:alpha(opacity=50);
    -moz-opacity:0.5;
    -khtml-opacity: 0.5;
    opacity: 0.5;
}

you need to do this using lists, you can apply a special class to the last li to make it look different. this jquery line might help you

$("#item3 li:last").addClass("special_corner");

UPDATE:

why dont you take alook at JQuery Corner Demo

GerManson
Thanks for reply I'm asking for whole concept . especially for bottom corner.
metal-gear-solid
I updated my answer
GerManson
@But what i will put for special corner? drod down's items width and height both are not fixed. item can be increased or decreased on other submenu and width if dropdown depends on largest text inside dropdown
metal-gear-solid
@metal-gear-solidsee this for creating what you want http://jquery.malsup.com/corner/
Tim
@tim - i need corner at one side only and keeping markup semantic
metal-gear-solid
Ok, so your code should look like this:$(this).corner("br bevel");
Tim
A: 

Check out Son of Suckerfish drop down menus. The special styling you want would require a class to be assigned to the last <li> in any <ul>

dnagirl
A: 

Using HTML 5

<nav>
<ul>
<li><a href="">Item 1</a></li>
<li><a href="">Item 2</a></li>
<li><a href="">Item 3</a>
    <ul>
    <li>Item 3.1</li>
    <li>Item 3.2</li>
    <li>Item 3.3</li>
    <li>Item 3.4</li>
    </ul>
</li>
<li>etc......
</ul>
</nav>

css

border-bottom-right-image:

skyfoot
+1  A: 

Using the jQuery corner demo:

$("#item3 li:last").corner("br bevel");
Tim
it's not working where i need transparency it's giving color
metal-gear-solid
see this screen http://shup.com/Shup/332387/11046214422-My-Desktop.png
metal-gear-solid