Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS tags position?

Status
Not open for further replies.

Huitzilopochtli

Programmer
Feb 18, 2002
81
DE
Hello

I have the following in my <head></head> tags:

<style type=&quot;text/css&quot;>
a:link {color:white;}
a:visited {color:white;}
a:active {color:white;}
body { background:black; color:white }
div { font-family: verdana; font-style: normal; font-color: white }
</style>

and further down the page within the body tags, I have:

<body bgcolor=&quot;black&quot; text=&quot;white&quot;>

and:

Response.Write &quot;<div><center>The guestbook has been updated with your message</center></div>&quot;

Response.Write &quot;<div><center>Please click <a href='guestbook.asp'>here</A> to go back to the guestbook</center></div>&quot;

So why does the page appear completely black? In other words, the visitor is not able to see the:

&quot;The guestbook has been updated with your message
Please click here to go back to the guestbook&quot; message.

Many thanks in anticipation.

Huitzil
 
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
background-color: #000000;
}

try this for your body style [Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
Hello Ceedee

Many thanks for your reply.

I now have this pasted between the <Head> tags:

<style type=&quot;text/css&quot;>
a:link {color:white;}
a:visited {color:white;}
a:active {color:white;}
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
background-color: #000000;
}
</style>

and have deleted the <div> tags from the Response.write statements, but it's still all dark!

I don't think it's the VBScript, so it must be something in the HTML.

Thanks again.

Huitzil
 
could you post your whole code for the page?

and there is no vbscript involved that i see [Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
Hello CeeDee

Yes - and thanks again - here it is. Please note that the code DOES show (in white text and with the white underlined link) the &quot;Please click here to type in your Name(Email, etc) - just not the end part:

<%@ Language=VBScript %>
<%option explicit%>
<!--#include file=&quot;DbConn.asp&quot;-->
<HTML>
<HEAD>

<style type=&quot;text/css&quot;>
a:link {color:white;}
a:visited {color:white;}
a:active {color:white;}
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
background-color: #000000;
}
</style>

</HEAD>

<body bgcolor=&quot;black&quot; text=&quot;white&quot;>

<center>

<%
dim objRS, strSQL
dim strName, strSubject, strMessage, strEmail, strDate, strTime

strSQL = &quot;SELECT * FROM Forum&quot;
set objRS = server.CreateObject(&quot;ADODB.RecordSet&quot;)
objRS.Open strSQL, objConn,1,2

strName = Request.Form(&quot;txtName&quot;)
strSubject = Request.Form (&quot;txtSubject&quot;)
strMessage = Request.Form (&quot;txtMessage&quot;)
strEmail = Request.Form(&quot;txtEmail&quot;)
strDate = (Date)
strTime = (Time)


strMessage = Replace(strMessage,chr(10),&quot;<BR>&quot;)


If strName=&quot;&quot; or strSubject=&quot;&quot; or strMessage=&quot;&quot; or strEmail=&quot;&quot; Then
Response.Write &quot;Please click <a href=&quot;&quot;&quot; &_
&quot;javascript:history.go(-1)&quot;&quot;>here</A> to type in your &quot;
Select Case &quot;&quot;
Case strName Response.Write &quot;Name&quot;
Case strSubject Response.Write &quot;Subject&quot;
Case strMessage Response.Write &quot;Message&quot;
Case Else Response.Write &quot;Email&quot;
End Select
Response.Write &quot;&quot; & vbCrLf
End If
Response.End


objRS.AddNew
objRS(&quot;Name&quot;) = strName
objRS(&quot;Subject&quot;) = strSubject
objRS(&quot;Message&quot;) = strMessage
objRS(&quot;Email&quot;) = strEmail
objRS(&quot;Date&quot;) = strDate
objRS(&quot;Time&quot;) = strTime

objRS.Update

Response.Write &quot;<center>The guestbook has been updated with your message</center>&quot;
Response.Write &quot;<center>Please click <a href='gbook.asp'>here</A> to go back to the guestbook</center>&quot;

%>
</center>
</BODY>
</HTML>

Best wishes

Huitzil


 
ahh try

Response.Write &quot;<center>Please click <a href='gbook.asp'>here</a> to go back to the guestbook</center>&quot;

that second &quot;a&quot; shouldn't be &quot;A&quot; [Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top