3 replies
Hi all,

I have the following definitions in my custom.css file (for wordpress). It seems like the definition for SERVICES is obliterating on the definition for QFORM.

I am new to CSS and do not see why. Can someone point me in the right direction?

TIA
/*
----------------------------------------------------------------------------
DEFINE SERVICES
----------------------------------------------------------------------------
*/

.services {
width:100%;
/* background-color:#b0e0e6; DEBUG */
margin-top:15px;
display: inliine-flex;
}

.services ul {
width: 25%;
height: 400px;
/* background-color: pink; DEBUG */
/*
padding-left: 2%;
padding-right: 2%;
*/
margin: auto 0;
display: table-cell;
}

.services ul li {
width: 100%;
list-style-type:none;
/* display: inline-block; */
margin-bottom:2%;
}


/*
--------------------------------------------------------------------------------------------
DEFINE QFORM
--------------------------------------------------------------------------------------------
*/

.qform {
list-style-type: none;
width:100%;
background-color:#ECEBE4; /* <-keep for QFORM */
}

.qform ul {
list-style-type: none;
width:100%;
margin: auto 0;
padding-top: 20px;
}

.qform ul li {
list-style-type: none;
line-height: 30px;
display: inline-block;
bottom-margin: 2%;
}
#css #defs
  • Profile picture of the author RobinInTexas
    See my answer to the identical question elsewhere.

    http://www.warriorforum.com/website-...-css-guru.html
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[9155619].message }}
    • Profile picture of the author dgmufasa
      Thanks for the response.

      I went to Google to look up "active selector"
      https://www.google.com/search?q=what...sm=93&ie=UTF-8

      It is not what I was asking though :-) I was not sure where to post this.

      Anywho, I saw a YT video that seemed to indicate that you could have classes.

      In these classes, my understanding was that you could have objects.

      If I have an object "orange", then "orange" in a green basket would be different from "orange" in a red basket (I hope I am making sense here).

      In my case, I have 2 baskets: one called "QFORM" and another called "SERVICES". Based on my simplified analogy above, I thought that putting an orange in "QFORM" would be different than putting an orange in "SERVICES".

      This is what I am striving to do

      If there is some way I can do it in CSS, can you point me in the right direction?

      TIA
      {{ DiscussionBoard.errors[9155686].message }}
      • Profile picture of the author dgmufasa
        Hi again,

        Never mind, I figured it all out

        Cheers!
        {{ DiscussionBoard.errors[9156101].message }}

Trending Topics