• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Apr 01, 2023 Apr 01, 2023

Copy link to clipboard

Copied

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.  

Views

234

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 01, 2023 Apr 01, 2023

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 01, 2023 Apr 01, 2023

Copy link to clipboard

Copied

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 & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 01, 2023 Apr 01, 2023

Copy link to clipboard

Copied

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 & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 02, 2023 Apr 02, 2023

Copy link to clipboard

Copied

LATEST

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 & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines