And the answer to my own question is to add the "!important" tag so
the properties aren't overridden.
For reference then this is the css i ended up with:
div.auto_complete {
position: absolute;
width: 150px;
bottom: 60px !important;
top: auto !important;
background-color: white;
border:1px solid #888;
margin: 0;
padding:0;
z-index:200;
}
Thx, for input people!
On Feb 9, 5:51 pm, safl <[email protected]> wrote:
> Allrighty then...
>
> Autocomplete() uses absolute positioning.
>
> The default behavior adds the attribute "top: XXpx;".
> For it to behave the way i want it i simply add the attribute:
> "bottom: XXpx" and remove the attribute "top: XXpx;".
>
> I've tried and tested it by using firebug and changing the attributes.
>
> This is great I found the CSS i need, hurray.
>
> But, the attribute "top" is constantly added dynamically and overrules
> the effect of the "bottom" property.
> How can work around this?
>
> On Feb 9, 5:08 pm, "dr. Hannibal Lecter" <[email protected]> wrote:
>
> > Simply check which HTML elements are generated by the autocomplete
> > (via FireBug or whatever you use), and write some CSS for those
> > elements.
>
> > On Feb 9, 5:02 pm, safl <[email protected]> wrote:
>
> > > Then let rephrase/ add the question: how do i edit the css to
> > > position somewhere else?
>
> > > On Feb 9, 12:01 pm, Miles J <[email protected]> wrote:
>
> > > > Wouldn't you just edit the css to position somewhere else?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---