On Apr 16, 6:13 am, sebb86 <kahlc...@googlemail.com> wrote:
> Addition:
> I'm really sorry but i forgot my self defined css... :(
> So this works for Firefox:
> [code]
> <?php echo $html->link('Edit', array("controller" => 'dns_names',
> "action" => "edit", $dns_name['Dnsname']['id']), array('class' =>
> 'edit', "title" => "Editieren"), null, false); ?>
> [/code]
>
> And when i remove: " array('class' => 'edit', "title" => "Editieren")
> " it works also for the internet explorer, but without image. So i
> think this is the problem. Is there maybe a syntax error?
> [this code works, but without the image]
> <?php echo $html->link('Edit', array("controller" => 'dns_names',
> "action" => "edit", $dns_name['Dnsname']['id']), null, false); ?>
> [/code]
>
> [my css code]
> a.edit
> {
>   text-indent:-5000px;
>   display:inline-block;
>   width:24px;
>   height:29px;
>   background:transparent url(/img/edit.png) no-repeat 0 0;
>
> }
>
> a.edit:hover
> {
>   background-position:0px 5px;}
>
> [/code]

Ah, image replacement. You definitely need to pay attention to what
works and what doesn't for IE.

Anyway, if you're going to use that, you shouldn't be including the
image in the HTML. Try this:

$html->link(
        'Edit',
        array('controller' => 'dns_names', 'action' => 'edit',
$dns_name['Dnsname']['id']),
        array('class' => 'edit', "title" => "Editieren")
);

a.edit
{
        width:24px;
        height: 29px;
        padding-top: 29px;
        overflow: hidden; /*Hide the text*/
        background:transparent url(/img/edit.png) no-repeat 0 0;
        color: #FFF; /* to hide when IE screws up and shows underlying text
*/
        voice-family: "\"}\""; voice-family: inherit;
        height: 0;
}
html>body a.edit { height: 0; }

a.edit:hover { background-position:0px 5px; }

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to