1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Valid css text

Discussion in 'HTML & Website Design' started by mauroed79, Feb 28, 2005.

  1. #1
    Hi everybody!
    Could someone validate me this css code? It works brilliantly on browsers I.E. and Opera, while Firefox doesn't read the link style.
    Thanks for help in advance,
    Mauro

    
    body, table, tr, td {
    	letter-spacing:0; font-size:9pt; 
    	font-family:arial, Helvetica;
    
    scrollbar   { 
    scrollbar-arrow-color:000000; 
    scrollbar-track-color:e9e9e9; 
    scrollbar-shadow-color:000000; 
    scrollbar-face-color:ffffff; 
    scrollbar-highlight-color:000000; 
    scrollbar-darkshadow-color:ffffff; 
    scrollbar-3dlight-color:e9e9e9; }    
    div {
       margin-top:0;
          }
    H2 {
    	FONT-SIZE: 12pt; COLOR: #000000; font-family: Arial, Helvetica; letter-spacing:0
    }
    
    a:link, a:active, a:visited 
    { font-weight: normal; color:#800000} 
    A:link { 
        COLOR: #1B5791; text-decoration: none }
    A:visited { 
        COLOR: #1B5791; text-decoration: none } 
    A:active {
        COLOR: #800000; text-decoration: none } A:hover { COLOR:
        #800000; text-decoration: none }
    
    input, textarea, option, select {
    	background-color: transparent;
    	font: 8pt verdana, arial, helvetica;
    	color: #000000;
    	letter-spacing: 0px;
    	border: solid #000000;
    	border-width: 0px;
    	padding:1px;
    	{
      scrollbar-arrow-color:000000;
      scrollbar-track-color:e9e9e9;
      scrollbar-shadow-color:000000;
      scrollbar-face-color:ffffff;
      scrollbar-highlight-color:000000;
      scrollbar-darkshadow-color:ffffff;
      scrollbar-3dlight-color:e9e9e9;
      }
    
    Code (markup):
     
    mauroed79, Feb 28, 2005 IP
  2. nullbit

    nullbit Peon

    Messages:
    489
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You have a lot of unclosed parenthesis. Is this intentional, for browser forking?

    I'd just forget the scrollbar stuff, and close the parenthesis properly. Hacks should be avoided when possible.
     
    nullbit, Feb 28, 2005 IP
  3. mauroed79

    mauroed79 Active Member

    Messages:
    56
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #3
    Hi nullbit,
    thanks a lot!!!!! Works fine now with all the parenthesis closed. What do you mean about the scrollbar style and hacking?
    Thanks again,
    Mauro
     
    mauroed79, Feb 28, 2005 IP
  4. nullbit

    nullbit Peon

    Messages:
    489
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No problem.

    People often use CSS "hacks" to resolve different browser bugs, I thought maybe you were doing this. Google "css hacks".
     
    nullbit, Feb 28, 2005 IP
  5. Agent47

    Agent47 Well-Known Member

    Messages:
    775
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    135
    #5
    Agent47, Mar 5, 2005 IP