• Resolved kking1272

    (@kking1272)


    Hi, I’m working on a wordpress site locally using MAMP. I’ve created a few static pages such as home, collection and boutique and styled them using style.css and it works!

    However, I just created a static contact page with a form (I am not using any wordpress form plugin). I also placed in the form styling in the style.css file. However, when I view the contact page, the form is not styled in any way. I’ve already checked my markup and there aren’t any errors and styling works well in dreamweaver. Also, I double checked and I did call my header.php file in my contact page just as with my other static pages.

    Can anyone tell me what I’m doing wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • sometimes ths css is not specific enough, and overwritten by som e more specific style somewhere else;

    -try to add !important to each format in your style, like so:

    .mystyle { color: green!important; border: none!important; }

    and sometimes, a small typing mistake is stopping the styles from being executed (you should be albe to see this in dreamweaver with the syntax highlighting; and maybe with the css validator);

    -try and move the new styles to the top of the stylesheet to see if that works.

    Thread Starter kking1272

    (@kking1272)

    thanks alchymyth! i tried the !important and it finally worked! thank you again!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘CSS not styling page’ is closed to new replies.