You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ki...@wingstech.com on 2004/11/16 12:51:35 UTC

div inside an tag

Hi, i'd like something like


<a href="#"><div style="cursor:pointer;
margin-bottom: 0px;
background-color:#a686d7;
color:#000000;
width:100%;
padding:4px;
text-align:left;
font-weight:normal;
border:1px solid #3c314e;">mylink</div></a>


but this, even if it works, it isn't a valid xhtml.
Do you have any better idea to write the previous snipplet ?

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: div inside an tag

Posted by Markus Wiederkehr <ma...@gmail.com>.
This might work:

a.mystyle {
  display: block;
}

Markus

On Tue, 16 Nov 2004 20:39:08 +0100, Andrea Chiumenti
<ki...@wingstech.com> wrote:
> mine was only a sample sample, the purpose was to have a 100% width link
> so i put a <div> inside an <a> but xhtml seems not to allow this.
> 
> 
> 
> 
> On Tue, 2004-11-16 at 09:32 -0800, Paul Ferraro wrote:
> > Can you move this style to your stylesheet and reference the style from
> > your link tag?
> >
> > a.mystyle {
> >     cursor: pointer;
> >     margin-bottom: 0px;
> >     background-color: #a686d7;
> >     color: #000000;
> >     width: 100%;
> >     padding: 4px;
> >     text-align: left;
> >     font-weight: normal;
> >     border: 1px solid #3c314e;
> > }
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: div inside an tag

Posted by Andrea Chiumenti <ki...@wingstech.com>.
mine was only a sample sample, the purpose was to have a 100% width link
so i put a <div> inside an <a> but xhtml seems not to allow this.

 
On Tue, 2004-11-16 at 09:32 -0800, Paul Ferraro wrote:
> Can you move this style to your stylesheet and reference the style from 
> your link tag?
> 
> a.mystyle {
>     cursor: pointer;
>     margin-bottom: 0px;
>     background-color: #a686d7;
>     color: #000000;
>     width: 100%;
>     padding: 4px;
>     text-align: left;
>     font-weight: normal;
>     border: 1px solid #3c314e;
> }


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: div inside an tag

Posted by Paul Ferraro <pm...@columbia.edu>.
Can you move this style to your stylesheet and reference the style from 
your link tag?

a.mystyle {
    cursor: pointer;
    margin-bottom: 0px;
    background-color: #a686d7;
    color: #000000;
    width: 100%;
    padding: 4px;
    text-align: left;
    font-weight: normal;
    border: 1px solid #3c314e;
}

<a href="#" class="mystyle">...</a>

Paul

kiuma.tapestry@wingstech.com wrote:

>Hi, i'd like something like
>
>
><a href="#"><div style="cursor:pointer;
>margin-bottom: 0px;
>background-color:#a686d7;
>color:#000000;
>width:100%;
>padding:4px;
>text-align:left;
>font-weight:normal;
>border:1px solid #3c314e;">mylink</div></a>
>
>
>but this, even if it works, it isn't a valid xhtml.
>Do you have any better idea to write the previous snipplet ?
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org