Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2010
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    inheritance issue

    Hello Dears

    I have the below structure in my CSS file

    Code:
    .rightside .box{  border:1px solid #cbabab; background:url(../Images/boxbg.jpg) repeat-x left top; padding:5px; margin-bottom:15px }
    Code:
    .collection .box{ border:1px solid #d3d3d3; background-color:#fbf8f8; margin-bottom:10px; padding:6px}

    how to prevent box within collection class from inherit the properties within rightside class

    Thanks in advance

  • #2
    Regular Coder
    Join Date
    Oct 2010
    Location
    San Antonio Tx
    Posts
    251
    Thanks
    12
    Thanked 11 Times in 11 Posts
    is .box a class of its own? ..what I would do is take out .box and just make it .rightsite and .collection or if you need to be more specific .rightsidebox and .collectionbox and that should work

  • #3
    New Coder
    Join Date
    Dec 2010
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks , I will follow the second solution


  •  

    Posting Permissions

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