[thelist] CSS: display: block on links

Hassan Schroeder hassan.schroeder at gmail.com
Sun Jan 14 16:57:33 CST 2007

On 1/14/07, Bill Moseley <moseley at hank.org> wrote:

> I think you were suggesting that I add a class tag to the <a> tags
> then set display: block in my style sheet on that class (and omit the
> <br> tags.

No, I was suggesting that you didn't need the <br/> if the links in the td
were 'display: block'   :-)

> The tables are dynamically generated and macros are used to create the
> links.  So a template might look like:
>     <td>
>         [%
>             # display a link to the user's page, and their history
>             # if they have any history records.
>             user_link( user );
>             IF user.history;
>                 '<br />'; history_link( user.history );
>             END;
>         %]
>     </td>
> So, user_link() generates the <a> tag and the user_link() marco
> doesn't know if it's the only link or not in the <td>.

So, why is it a problem if the second link is block as well?

> You really mean a:link?  Anyway, that would apply the style to all
> links within the <td>.  I only want to apply it if there's only one
> <a> within the <td>.

Why? There was nothing in your original problem description to
indicate this.

Hassan Schroeder ------------------------ hassan.schroeder at gmail.com

More information about the thelist mailing list