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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2016
    Location
    Guwahati, India
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS ID and selector not working.

    Hello Everyone,

    I am into learning HTML and CSS for last 1 week only. So my apologies if this question sounds too naive.


    The question is, I have created 1 HTML file and 1 CSS file and now trying to use IDs in the CSS to control some features in the HTML file. But for some reasons, it is not working.

    -css-problem-jpg

    I have attached the screen prints of both my CSS and HTML files and as well as the resulted web page.

    Can someone please guide me on why the IDs on the CSS are not working..

  2. #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    9,864
    Thanks
    6
    Thanked 1,164 Times in 1,135 Posts
    It would be best if you pasted your code here (in between [code][/code] tags); I can’t read sh*t in your image.
    As far as I can tell you need to keep specificity in mind. It’s likely that the styles in your internal stylesheet (the CSS inside your HTML document) are overriding the declarations in your external stylesheet. Best is to have all styles in an external stylesheet.


 

Tags for this Thread

Posting Permissions

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