Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 line color?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

yigal7
Junior Member

297 Posts

Posted - 17 October 2003 :  03:43:12  Show Profile
How can i change the line color on the Topic.asp page?
(the code for it is HR)

ThanX
Yigal

RebelTech
Average Member

USA
613 Posts

Posted - 17 October 2003 :  03:55:38  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
<HR>
tag attributes:


1. width="100"
Use this to modify the width of the horizontal rule. You can use pixels or a percentage of the page width. The default is 100% of the page width.

2. align="left"
Use this to align the horizontal rule to the left or right of the page. The default alignment is center. You can only see the alignment effect if the width of the horizontal rule is less than the width of the page.

3. size="3"
Use this to adjust the vertical size of the horizontal rule. The default size is 2.

4. noshade
Use this to make your horizontal rule a solid stripe accross the page, rather than a shaded stripe.

IE 4 lets you use the color=" " attribute as well. May not work in Netscape.
example:
<HR color="red" >






Edited by - RebelTech on 17 October 2003 03:58:38
Go to Top of Page

yigal7
Junior Member

297 Posts

Posted - 17 October 2003 :  04:40:19  Show Profile
thanx but how and where can i change the code on
the Topic.asp file?
Go to Top of Page

puzo
Junior Member

Israel
417 Posts

Posted - 18 October 2003 :  11:32:01  Show Profile  Visit puzo's Homepage
look for <HR in topic.asp using your asp/text editor and youll find it.


Go to Top of Page

yigal7
Junior Member

297 Posts

Posted - 18 October 2003 :  18:59:35  Show Profile
i fpund it but when adding the color code i got an error.
Go to Top of Page

Dave.
Senior Member

USA
1037 Posts

Posted - 18 October 2003 :  19:16:30  Show Profile
You need to use double quotes.

<hr size=""2"">
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 18 October 2003 :  20:10:24  Show Profile  Visit dayve's Homepage
you can also create a tricky bit of css. I use this all the time. It also allows me to get a truly thin line in Netscape.


<style>
hr 
{
      	border: 0;
      	width: 100%;
	color: silver;
      	background-color: silver;
      	height: 1px;
}
		
.hr		
{
     	color: #f00;
      	background-color: #f00;
      	height: 1px;
}
</style>

Go to Top of Page

yigal7
Junior Member

297 Posts

Posted - 19 October 2003 :  05:20:12  Show Profile
where do i put this code?

ThanX
Yigal
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 19 October 2003 :  13:09:39  Show Profile  Visit dayve's Homepage
quote:
Originally posted by yigal7

where do i put this code?

ThanX
Yigal



<style> tags belong in between <head> tags. for Snitz, you can find this in the inc_header.asp file.

Go to Top of Page

yigal7
Junior Member

297 Posts

Posted - 19 October 2003 :  13:18:32  Show Profile
i tryed to do it but i don't know how to use
ASP code.

can someone paste the code here?

THanX
Yigal
Go to Top of Page

yigal7
Junior Member

297 Posts

Posted - 21 October 2003 :  16:45:40  Show Profile
hello?
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 21 October 2003 :  17:20:24  Show Profile  Visit dayve's Homepage
Find this line in inc_header.asp:

"input.radio {background:" & strPopUpTableColor & ";color:#000000}" & vbNewLine & _

Add these lines directly after:


               "hr " & VbCrLf &_
               "{" & VbCrLf &_
               "      border: 0;" & VbCrLf &_
               "      width: 100%;" & VbCrLf &_
               "color: silver;" & VbCrLf &_
               "      background-color: silver;" & VbCrLf &_
               "      height: 1px;" & VbCrLf &_
               "}" & VbCrLf &_
               ".hr" & VbCrLf &_
               "{" & VbCrLf &_
               "     color: #f00;" & VbCrLf &_
               "      background-color: #f00;" & VbCrLf &_
               "      height: 1px;" & VbCrLf &_
               "}" & VbCrLf &_



Go to Top of Page

yigal7
Junior Member

297 Posts

Posted - 21 October 2003 :  17:53:27  Show Profile
error:

Microsoft VBScript compilation error '800a0400'

Expected statement

/myforum/inc_header.asp, line 331

"hr " & VbCrLf &_
^
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 21 October 2003 :  18:03:48  Show Profile  Visit dayve's Homepage
does the line before the code you inserted look EXACTLY like this?

"input.radio {background:" & strPopUpTableColor & ";color:#000000}" & vbNewLine & _

you can also post a text copy of your inc_header.asp and I'll edit it for you.

Go to Top of Page

yigal7
Junior Member

297 Posts

Posted - 21 October 2003 :  18:50:38  Show Profile
this is the:

"input.radio {background-color:""; color:#000000}" & vbNewLine
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 21 October 2003 :  19:09:37  Show Profile  Visit dayve's Homepage
quote:
Originally posted by yigal7

this is the:

"input.radio {background-color:""; color:#000000}" & vbNewLine



looks like the line was edited, however all you need to do is add a &_ after vbNewLine so it looks like this:

"input.radio {background-color:""; color:#000000}" & vbNewLine &_


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.45 seconds. Powered By: Snitz Forums 2000 Version 3.4.07