cybernation989
asked on
Compliant with XHTML 1.0
The code snippet below shows an ASP.NET Hyperlink control wrapped in a div tag and I am trying to figur out how to have the Hyperlink aligned to the right and be compliant with XHTML 1.0:
<div>
<asp:HyperLink ID="HyperLink1" NavigateUrl="http://www.google.com" runat="server">Google</asp :HyperLink >
</div>
I think doing
<div style="align:right">
<asp:HyperLink ID="HyperLink1" style="text-align:right" NavigateUrl="http://www.google.com" runat="server">Google</asp :HyperLink >
</div>
But not totally sure... any ideas
<div>
<asp:HyperLink ID="HyperLink1" NavigateUrl="http://www.google.com" runat="server">Google</asp
</div>
I think doing
<div style="align:right">
<asp:HyperLink ID="HyperLink1" style="text-align:right" NavigateUrl="http://www.google.com" runat="server">Google</asp
</div>
But not totally sure... any ideas
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Which way?
<div style=â€text-align:rightâ€>
<asp:HyperLink ID="HyperLink1" NavigateUrl="http://www.google.com" runat="server">Google</asp:HyperLink>
</div>
OR
<div style=â€align:rightâ€>
<asp:HyperLink ID="HyperLink1" style=â€text-align:right†NavigateUrl="http://www.google.com" runat="server">Google</asp:HyperLink>
</div>
ASKER
Not sure why my above post didnt show up right but here it is again
<div style=â€text-align:rightâ €>
<asp:HyperLink ID="HyperLink1" NavigateUrl="http://www.google.com" runat="server">Google</asp :HyperLink >
</div>
OR
<div style=â€align:rightâ€>
<asp:HyperLink ID="HyperLink1" style=â€text-align:rightâ € NavigateUrl="http://www.google.com" runat="server">Google</asp :HyperLink >
</div>
<div style=â€text-align:rightâ
<asp:HyperLink ID="HyperLink1" NavigateUrl="http://www.google.com" runat="server">Google</asp
</div>
OR
<div style=â€align:rightâ€>
<asp:HyperLink ID="HyperLink1" style=â€text-align:rightâ
</div>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
http://validator.w3.org/#validate_by_uri+with_options