Author |
Topic  |
|
pyrodude
Junior Member
 
101 Posts |
Posted - 23 February 2003 : 17:40:01
|
How would I make a page in the forum show links with CSS? What are the strings for CSS? |
|
Kat
Advanced Member
    
United Kingdom
3065 Posts |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
|
Kat
Advanced Member
    
United Kingdom
3065 Posts |
|
pyrodude
Junior Member
 
101 Posts |
Posted - 24 February 2003 : 07:38:17
|
Oh, thats not what I meant. I was trying to say, how could I make a page in the forum use the forum's CSS styles? I already know CSS, but wanted the page to just be able to get the forum CSS so I wouldn't have to redo the colors each time I changed something on the Forum.
Thanks |
 |
|
Kat
Advanced Member
    
United Kingdom
3065 Posts |
Posted - 24 February 2003 : 07:41:50
|
There is hardly any CSS in the forum at present. Which CSS are you talking about? the only css in the forum is in inc_header.asp line 263:
"<style type=""text/css"">" & vbNewLine & _
"<!--" & vbNewLine & _
"a:link {color:" & strLinkColor & ";text-decoration:" & strLinkTextDecoration & "}" & vbNewLine & _
"a:visited {color:" & strVisitedLinkColor & ";text-decoration:" & strVisitedTextDecoration & "}" & vbNewLine & _
"a:hover {color:" & strHoverFontColor & ";text-decoration:" & strHoverTextDecoration & "}" & vbNewLine & _
"a:active {color:" & strActiveLinkColor & ";text-decoration:" & strActiveTextDecoration & "}" & vbNewLine & _
".spnMessageText a:link {color:" & strForumLinkColor & ";text-decoration:" & strForumLinkTextDecoration & "}" & vbNewLine & _
".spnMessageText a:visited {color:" & strForumVisitedLinkColor & ";text-decoration:" & strForumVisitedTextDecoration & "}" & vbNewLine & _
".spnMessageText a:hover {color:" & strForumHoverFontColor & ";text-decoration:" & strForumHoverTextDecoration & "}" & vbNewLine & _
".spnMessageText a:active {color:" & strForumActiveLinkColor & ";text-decoration:" & strForumActiveTextDecoration & "}" & vbNewLine & _
".spnSearchHighlight {background-color:" & strSearchHiLiteColor & "}" & vbNewLine & _
"input.radio {background:" & strPopUpTableColor & ";color:#000000}" & vbNewLine & _
"-->" & vbNewLine & _
"</style>" & vbNewLine & _
|
KatsKorner
Installation Help | Snitz Mods | Forum Hosting
|
 |
|
pyrodude
Junior Member
 
101 Posts |
Posted - 24 February 2003 : 23:15:09
|
Ohhh, I thought that the link rollover color changes were CSS. Well, how do I get my own include file to have its links color change on rollover like the rest of the forum? |
 |
|
TestMagic
Senior Member
   
USA
1568 Posts |
Posted - 24 February 2003 : 23:23:53
|
I added a couple of CSS tweaks, and put the code in inc_header.asp. Worked for me. Just make sure you do the code right.
If you're not sure how to do the code, I can post a snippet of my code for you here. |
Snitz rocks! · Search 2 |
 |
|
pyrodude
Junior Member
 
101 Posts |
Posted - 25 February 2003 : 07:23:12
|
Would you? I know next to nothing about ASP... |
 |
|
Kat
Advanced Member
    
United Kingdom
3065 Posts |
|
TestMagic
Senior Member
   
USA
1568 Posts |
Posted - 25 February 2003 : 17:12:48
|
Okay, from my inc_header.asp, around line 278 (I've got a couple MODs installed, though), I've added this line of code to CSS my textareas and h1 tag:
"// done hiding -->" & vbNewLine & _
"</script>" & vbNewLine & _
"<style type=""text/css"">" & vbNewLine & _
"INPUT, SELECT, TEXTAREA{ color: #666666; font : normal 10pt Trebuchet, Verdana, Helvetica, Arial; background : #FFFFFF; background-image: url(../images/graphics/textarea_shadow.gif); margin : 0px 0px 0px 0px; } h1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 28px; font-style: normal; color: #3300FF} " & vbNewLine & _
"<!--" & vbNewLine & _
"a:link {color:" & strLinkColor & ";text-decoration:" & strLinkTextDecoration & "}" & vbNewLine & _
"a:visited {color:" & strVisitedLinkColor & ";text-decoration:" & strVisitedTextDecoration & "}" & vbNewLine & _
"a:hover {color:" & strHoverFontColor & ";text-decoration:" & strHoverTextDecoration & "}" & vbNewLine & _
"a:active {color:" & strActiveLinkColor & ";text-decoration:" & strActiveTextDecoration & "}" & vbNewLine & _
Play with that for a while and let me know if you have any problems. I remember I had to mess around with the end part (to force a new line) before I could get it to work properly. |
Snitz rocks! · Search 2 |
 |
|
Feral
Starting Member
2 Posts |
Posted - 27 April 2003 : 19:10:05
|
Excelent stuff, just what I was searching for :) Thanks
|
 |
|
|
Topic  |
|