Solved

Compliant with XHTML 1.0

Posted on 2007-11-27
6
796 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

734 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