Solved

Compliant with XHTML 1.0

Posted on 2007-11-27
6
783 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

914 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now