HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Aligning Text left and right on the same line
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML
View previous topic :: View next topic  
Author Message
stevecallahan



Joined: 20 Aug 2009
Posts: 1

PostPosted: Thu Sep 10, 2009 12:23 am     Aligning Text left and right on the same line Reply with quote

Our website homepage uses a skin where the top line houses links for Contact, Search etc.. Recently we were asked to add a string which displayed Date and Time and right align it in the opposite corner to the existing text. The code below worked with IE7 (not with Mozilla Firefox) but recently everyone has upgraded to IE8 and now the Date and Time string sits midway between the right side and the existing text.

<div >

<table ><tr><td colspan="135">

<%="<"&"a href="&NavigateUrl(102)&">About Us</a>"%> |

<%="<" & "a href=" & NavigateURL(103) & ">Contact Us</a>"%> |

<%="<"&"a href="&NavigateUrl(104)&">Site Map</a>"%> |

<dnn:SEARCH runat="server" showWeb="False" ShowSite="False" Submit="Search this website" /></td>

<td><asp:Panel runat="server" Width="200" /></td>[/size] <td ><%=Dow(Now.DayOfWeek) & " " & Now.Day & Dext(Now.Day) & " " & Moy(Now.Month) & " " & Now.Year & " " & PadStr(Now.Hour) & ":" & PadStr(Now.Minute)%/td>

</tr></table>

</div>


We have tried using Align=Right and other align commands but the browser seems to ignore them. Can someone please advise how we can align some text left and some right on the same line which will be recognised by IE8, IE7 and Mozilla. Failing that can we recognise the browser being used and use the right code for the right browser.

Many Thanks
sticks464



Joined: 31 Dec 2006
Posts: 2311

PostPosted: Thu Sep 10, 2009 4:37 am     Reply with quote

Here's an example of left and right text. Never used it with asp or in a table though. View source to see code and css.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial