Solved

Compliant with XHTML 1.0

Posted on 2007-11-27
6
774 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
Comment Utility
have you tried:

float: right;

Regards
0
 

Author Comment

by:cybernation989
Comment Utility
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
Comment Utility
The float shoul do it also you could set the width to 100%; and the TEXT-ALIGN: right;
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:cybernation989
Comment Utility
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
Comment Utility
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
Comment Utility
<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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
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…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to dynamically set the form action using jQuery.

744 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

16 Experts available now in Live!

Get 1:1 Help Now