Hi

I've researched and researched this thing but am totally stumped.  I'm
trying to create a footer links UserControl to my .Net web pages using
an ascx file.  Everything I read says that the code in the ascx file
should pick up the css files from the main aspx page it is embedded
in.  But it doesn't work!  All I have is a simple table with
<table><tr>and <td> tags.

I also tried adding a directive:

<link href="style.css" rel="stylesheet" type="text/css" />

to the top of my ascx page.  Still doesn't work.

What I'm trying to do is use some of the 'a' type CSS classes to
control the appearance of the links.

Here's the ascx code :

<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="footer.ascx.cs" Inherits="footer" %>

<table>
    <tr>
        <td>
            <span class='foo'><a href="trees.aspx">Trees</a></span>
        </td>
        <td>
            <span class='foo'><a href="bushes.aspx">Bushes</a></span>
        </td>
        <td>
            <span class='foo'><a href="shrubs.aspx">Shrubs</a></span>
        </td>
    </tr>
</table>

I know you might want to see the code for my 'foo' css class, but it
doesn't matter.  It doesn't matter what I do, no CSS classes work on
anything.

Can anybody help!!??  Thanks, Paul

Reply via email to