The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I am a newbie on CSS, so bare with me... ![]() I am trying to learn this language, because I want to make the contents of specific postings look different inside my VB forum. I have almost achieved the thing I want (which is altogether a BIG achievement: good work Grover! :bored: ), but I am not quite there yet. I have the following piece of code (draft example): HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html dir="ltr" lang="en"> <head> <title>FAQ TOC Layout</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta name="generator" content="blah"/> <meta name="keywords" content="" /> <meta name="description" content="blah" /> <!-- CSS Stylesheet --> <style type="text/css"> <!-- /* CSS Style */ body { background-color: #E1E1E2; color: #000000; font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; margin: 5px 10px 10px 10px; } /* THE CODES BELOW SEEM TO SET THE STYLE FOR LINKS IN MSIE, BUT IN FIREFOX... THEY SEEM TO BE OVERRULED BY THE '.TOCLEVEL A'-RULES */ a:link { color: #22229C; } a:visited { color: #22229C; } a:hover, a:active { color: #FF4400; } ---------------- .page { background-color: #FFFFFF; color: #000000; } /* ***** Custom CSS for displaying FAQ TOC's ***** */ .toclevel1 { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #0082FF; font-size: 20px; } .toclevel1 a { border: 1px solid #F5F5FF; text-decoration: none; background: #F5F5FF; padding: 0.15em 0.5em; color: #3E73A1; line-height: 2em; } .toclevel1 a:hover { background-color: #eee; text-decoration: none; border: 1px solid #ccc; } .toclevel2 { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #0082FF; font-size: 15px; } .toclevel2 a { color: #0082FF; text-decoration: none; text-decoration: none; background: #F5F5FF; padding: 0.15em 0.5em; border: 1px solid #F5F5FF; line-height: 2em; } .toclevel2 a:hover { text-decoration: none; background-color: #eee; border: 1px solid #ccc; } .toclevel3 { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #708090; font-size: 14px; } .toclevel3 a { color: #708090; text-decoration: none; text-decoration: none; background: #F5F5FF; padding: 0.15em 1.5em; border: 1px solid #F5F5FF; line-height: 1.7em; } .toclevel3 a:hover { text-decoration: none; background-color: #eee; border: 1px solid #ccc } --> </style> <!-- / CSS Stylesheet --> </head> <body onload=""> <div class="page" style="width:100%; text-align:left"> <!-- message --> <div><font size="4"><font color="dimgray">FAQ TOC</font> <font color="darkorange">Layout</font></font><br /> <font color="gray">-------------------------------------------------------------</font><br /> <br /> <span class="toclevel1"><a href="#testlink">1. What is The Marsupilami?</a></span><br /> <span class="toclevel2"><a href="#testlink">1.1. What does he eat</a></span><br /> <span class="toclevel3"><a href="#testlink">1.1.1. Apple(s)?</a></span><br /> <span class="toclevel3"><a href="#testlink">1.1.2. Bananas</a></span><br /> <span class="toclevel3"><a href="#testlink">1.1.3. Pears</a></span><br /> <span class="toclevel2"><a href="#testlink">1.2 How does he eat it?</a></span><br /> <span class="toclevel2"><a href="#testlink">1.3 Why does he eat it?</a></span><br /> <span class="toclevel2"><a href="#testlink">1.4 Why doesn't he throw it away then?</a></span><br /> <span class="toclevel1"><a href="#testlink">2. Who is Grover?</a></span><br /> <span class="toclevel2"><a href="#testlink">2.1 The story about the cape</a></span><br /> <span class="toclevel2"><a href="#testlink">2.2 Facts about your little monster</a></span><br /> <span class="toclevel2"><a href="#testlink">2.3 Ernies' best friend</a></span><br /> <br /> <font color="#808080">-------------------------------------------------------------</font><br /> <font color="#808080"><font color="dimgray">FAQ TOC</font> <font color="darkorange">Layout </font><font color="dimgray">(c) 2004 Limelight Studio's</font><br /> <font color="#808080">-------------------------------------------------------------</font><br /> <font color="silver">-</font><br /> </font></div> <!-- / message --> </body> </html> When I save this code as .html and open it in FireFox 0.8 it looks (the colours of the textlinks) like it should. (screenshot2). But when I open it in MSIE 6.0 it looks (the colours of the textlinks) not like it should (screenshot1). It seems like MSIE6.0 uses the codes below to set the style for LINKS, but in FireFox they seem to be overruled by the '.toclevel a'-rules i've constructed. HTML Code:
a:link { color: #22229C; } a:visited { color: #22229C; } a:hover, a:active { color: #FF4400; } The SPAN statements '< span class="toclevel1" >Here goes the Textlink< /span > are generated by Custom BBCode I use. I don't know if this is the right way to style a specific textline/link, but this is the way I thought it would work.... I would appreciate any help very much, |
#2
|
|||
|
|||
![]()
Never mind, I figured it out by myself! I will try and learn more about CSS : I have achieved some amazing things with it on my forums.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|