Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Align text/CSS/ASP issue

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #34735
    Bluenose
    Member

    Hello

    I have the following ASP code in my home page to show the date:



    proofreading4students







    <%
    Dim suffix
    Select Case Day(Date())
    Case 1,21,31: suffix = "st"
    Case 2,22: suffix = "nd"
    Case 3,23: suffix = "rd"
    Case Else: suffix = "th"
    End Select
    Response.Write "" & WeekdayName(Weekday(Date())) _
    & " " & Day(Date()) & "" & suffix & " " _
    & MonthName(Month(Date())) & "
    "
    %>


    This should link to my external style sheet which shows the following:

    span.show_date {
    font-size: x-small;
    }
    span.show_date sup {
    font-size: xx-small;
    }

    I understand that I need to use the text-align: right; tag to make the date appear on the right hand side of the page, but how to format it with the two files I have (above).

    Many thanks

    Bluenose

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.