www.webdeveloper.com
Results 1 to 8 of 8

Thread: How to disable previous p?

  1. #1
    Join Date
    Sep 2005
    Posts
    1,625

    Question How to disable previous p?

    I have to add to class name additional p settings.

    It seems it detects upper DIV where is inside also my class name.
    How to disable this DIV settings for my class p?

  2. #2
    Join Date
    Feb 2011
    Location
    israel
    Posts
    157
    let me get this straight.
    you have a paragraph with a class, thats sitting inside a div with its own properties, and you want that paragraph to not inherit any of the div's properties?

    if so, than u should just change the class's properties to contradict the div, or alter only the problematic paragraphs, like "div .[ur class]" and ctradict it there.

    or did i get ur meaning wrong? @_@

  3. #3
    Join Date
    Sep 2005
    Posts
    1,625
    I have example general DIV defined paragraph:
    PHP Code:

    #content1 p {
      
    margin0 0 1.1em 0;
      
    font-familyArial;
      
    font-size12px;
      
    color#000000;
      
    text-alignjustify;
      
    text-indent0;
      
    line-height16px;

    I should remove than this general defined paragraph and define for each class my own paragraph like div .[ur class]:
    PHP Code:

    #content1 .products p {
      
    margin0 0 1.1em 0;
      
    font-familyArial;
      
    font-size12px;
      
    color#000000;
      
    text-alignjustify;
      
    text-indent0;
      
    line-height16px;


  4. #4
    Join Date
    Feb 2011
    Location
    israel
    Posts
    157
    yea, that should work. O_O

  5. #5
    Join Date
    Sep 2005
    Posts
    1,625
    How is treated section#content1 .products p

    Is this recognised by CSS rules? Is there some good sample for such rearrange?

  6. #6
    Join Date
    Feb 2011
    Location
    israel
    Posts
    157
    its recognized.
    here:
    http://jsfiddle.net/FuEns/

  7. #7
    Join Date
    Sep 2005
    Posts
    1,625
    1. What priority will give section if I use section on many DIV names?
    2. Will be this group section for all DIV's with section and can be repated name?
    3. Will be this executed for all p where is section regardless of
    of DIV and class names?

    PHP Code:

    section
    #content1 .products p {
      
    margin0 0 1.1em 0;
      
    font-familyArial;
      
    font-size12px;
      
    color#000000;
      
    text-alignjustify;
      
    text-indent0;
      
    line-height16px;

    Is there some reference with such use?

  8. #8
    Join Date
    Feb 2011
    Location
    israel
    Posts
    157
    if you mean you want to enclose all of that in a section tag, i think it should work:
    http://jsfiddle.net/FuEns/1/

    this way, you change only the class thats in the specific div, that is inclosed in a section tag.

    hope i understood you right.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles