Solved

Compliant with XHTML 1.0

Posted on 2007-11-27
6
790 Views
Last Modified: 2013-11-19
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

0
Comment
Question by:cybernation989
  • 3
  • 2
6 Comments
 
LVL 7

Assisted Solution

by:Wod
Wod earned 350 total points
ID: 20369430
have you tried:

float: right;

Regards
0
 

Author Comment

by:cybernation989
ID: 20370762
well I found a great site that lets you auto check the page but I cant seem to get it just right

http://validator.w3.org/#validate_by_uri+with_options
0
 
LVL 1

Assisted Solution

by:eXman_pl
eXman_pl earned 150 total points
ID: 20372459
The float shoul do it also you could set the width to 100%; and the TEXT-ALIGN: right;
0
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 

Author Comment

by:cybernation989
ID: 20380620
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>

Open in new window

0
 

Author Comment

by:cybernation989
ID: 20380623
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>
0
 
LVL 7

Accepted Solution

by:
Wod earned 350 total points
ID: 20381904
<div style="float:right; text-align:right;"€>
<asp:HyperLink ID="HyperLink1" style=”text-align:right” NavigateUrl="http://www.google.com" runat="server">Google</asp:HyperLink>
</div>
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adwords and keywords 2 57
maps stopped work unsure why 7 50
applying error reporting code to see paypal error messages 13 92
Scroll 5 news at a time. 4 33
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question