Skip to main content
StevenR1906
Participant
April 1, 2023
Question

CSS styles not being applied / taking effect in browser or application.

  • April 1, 2023
  • 4 replies
  • 363 views

A couple days ago I started working on this HTML page with a contact form. And to make things more visually appealing, I'm using CSS rules to style my form, page, etc. However, I ran into an issue that I can't seem to get around. For some reason, while working on the stylesheet for my contact form, all of the rules / styles that I'm adding (after the formWrap I've applied) aren't taking effect. My stylesheet is properly linked, there's no error in my code, and I doubt that I've got an issue with caching (unless I'm wrong). At one point, I was wondering if the div tags I had created were the issue but I don't think that's the case either. Any form of help / advice would be greatly appreciated.  

    This topic has been closed for replies.

    4 replies

    Nancy OShea
    Community Expert
    Community Expert
    April 2, 2023

    Validate code with these online services:

    HTML: https://validator.w3.org/

    CSS: https://jigsaw.w3.org/css-validator/

     

    Nancy O'Shea— Product User & Community Expert
    Nancy OShea
    Community Expert
    Community Expert
    April 1, 2023

    If styles aren't working in Dreamweaver with Live View, that means they're not working anywhere.

    You either have a coding problem or your style rules are being overridden by other CSS rules with higher specificity.

    Cascading styles cascade downwards. 

     

    We'll need to see your code to offer better answers.

     

    Nancy O'Shea— Product User & Community Expert
    Nancy OShea
    Community Expert
    Community Expert
    April 1, 2023

    What's the URL to your online problem page?

    Answers are in your code. 

     

    Some things to try:

    • Upload the CSS file again.
    • Upload the HTML file again.
    • Hard Refresh your browser (Ctrl + F5 or Ctrl + R).

     

    Nancy O'Shea— Product User & Community Expert
    Legend
    April 1, 2023

    Unless we can see the code and css its just a guessing game. Is there any mal-formed/unclosed css selectors in your stylesheet stopping the css cascade?

     

    Is it possible for you to paste the form code and the css here in the forum or better still upload the page to a remote server and provide a link. Someone will be able to solve your issue.