CSS - Paragraph styling with a DIV class -


Simple CSS but I think a class may not seem to control the style of my paragraph tag .

Here's the example:

  .body-content-white, div.body-content-white p {color: #FFFFFF; Font-family: helvetica, gotham, ariel, non-serif; Font-size: 14px; Bgcolor = "# 52c2e9"} & lt; Div class = "body-content-white" & gt; & Lt; P & gt; Welcome to the First Newsletter & lt; / P & gt; & Lt; / Div & gt;   

This is what I've tried:

  div.body-content-white p, p .body-content-white, .body-content- White P   

was to add the solution! Important; The CSS color in the tag is as follows:

 . Body-content-white, div.body-content-white & gt; P {color: #FFFFFF; ! Necessary; Font-family: helvetica, gotham, ariel, non-serif; Font-size: 14px; Bgcolor = "# 52c2e9"}   

I can also fix this topic by removing and adding the contents of my content.

If you actually have

  & lt; Div class = "body-content-white" & gt; & Lt; P & gt; Welcome to the First Newsletter & lt; / P & gt; & Lt; / Div & gt;   

then

  .body-content-white p {// your style}   

or

  div.body-content-white p {// your style}   

should work if CSS is not working Check if your stylesheet file Your & lt; Head & gt; Insert the tag correctly (check in other words if the source path is correct or not).

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -