Put an X on the topright of a div without making the top clickable

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2010-03-22T23:18:39Z Indexed on 2010/03/22 23:21 UTC
Read the original article Hit count: 364

Filed under:
|
|

I have a rect and have an X on the top right with items inside of it. The div with the X is clickable. The problem is the whole top area is clickable and not just the topright (the 'X') as i wanted. How do i make only the X clickable and still align to the right?

my css is

.itembox 
{
    float:left;
}

.itembox .RemoveMediaNotif
{
    text-align: right;
    text-decoration:underline;
    cursor: pointer;
}

my html is

<div class="itembox" id="i16"><div class="RemoveMediaNotif">X</div><div ...

© Stack Overflow or respective owner

Related posts about css

Related posts about html