Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Which css file is class coming from?

    Hey Everybody -
    I'm a CSS noob, and am just now getting my feet wet. When I 'view source' on a web page, I can see the CSS class that my tag is pointing to, but how can I know which file that class resides in? In that page where I'm viewing source, there are a bunch of <link rel='stylesheet' > tags....I just wish there was an easier way than looking through each of the files specified in that tag.
    Thanks

  • #2
    Regular Coder stevenmw's Avatar
    Join Date
    Jun 2007
    Location
    OK
    Posts
    497
    Thanks
    27
    Thanked 31 Times in 31 Posts
    Depending on which browser you're using. Normally you can right click, examine element, and then look for that element in the CSS.

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,918
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    Yeah, use a built-in developer/debugging tool or alternatives like Firebug. You can inspect the source code there and it shows you which elements have styles applied, and in which file and on which line it is defined.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •