Hello,
I have a series of divs in a vertical row. Each div contains an image
of a circle. That image fills the div. Inside each image I have some
text. the text is a link (a). Each outer div has an Id
(submenu1,submenu2,...) and is set via css:

#subMenu1 {
        left: 12px;
        top: 151px;
}

(example for 1st div)

I want to be able to set the height of the link inside the div
_relative_ to the parent element (the div).
Like so:

div[id$=submenu[0-9]] a{
submenu.top+15;

}

This should say: each a element with a parent whose id value equals
the string "submenu" plus one number in the 0-9 range has a top that
is equal to it's parent's top + 15 pixels.

How do I do this?

Thank you,

--~--~---------~--~----~------------~-------~--~----~
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to