Default CSS styles

Discussion in 'CSS' started by boba5555, Mar 1, 2009.

  1. #1
    Hello,

    I am trying to find default styles, i.e. default styles for FireFox or proposed by specification. I have found something at http://www.w3.org/TR/CSS21/sample.html, but there is nothing for "A" tag and it is by default text-decoration:underline. Does someone know for 'better' page/file with default CSS files? Thanks.
     
    boba5555, Mar 1, 2009 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    For Firefox, look in the directory where Firefox resides and find the "res" directory. In there you will find two or three .css files. These are the Firefox default styles.

    In my Debian Gnu/Linux machine, the location is:

    /usr/share/xulrunner-1.9/res/

    In Windows (Vista and Win98se here) look in

    c:\program files\mozilla firefox\res\

    edit: Did you miss these?
    cheers,

    gary
     
    kk5st, Mar 1, 2009 IP
  3. boba5555

    boba5555 Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks.

    >> Did you miss these?

    No, I didn't miss, but I didn't know that something like
    <html>
    	<head>
    	</head>
    	<body
    		<a href="#">test</a>
    	</body>
    </html>
    Code (markup):
    will actually be affected by that CSS. It seems like specifying a:link is same as a. I didn't know it before.
     
    boba5555, Mar 1, 2009 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    It's not actually. A link is a subset of a, where a has the href attribute.
    <a href="#">...</a>
    Code (markup):
    cheers,

    gary
     
    kk5st, Mar 1, 2009 IP