I'm trying to style a certain
in my markup with CSS/SASS, and I'm clueless as to why it's not applying the rules. This
is my markup:
// something
here
Title
Slogan
class="col-xs-1">
// I want to access this
class="col-xs-1">
class="col-xs-1">
Wednesday 15 November 2017
SASS/CSS: :first-child selector not working
And
this is the SASS I'm trying to use for
it:
div.addon-header {
color: white;
> div.col-sm-9 > div.col-xs-1:first-child {
background-color: black;
padding-left: 0px !important;
}
}
If I I also or or using Which is
remove the :first-child
selector in my SASS, it's working, but
obvious for every
first one, which is not what I want.
tried playing around and doing something
likediv.addon-header {
color: white;
> div.col-sm-9 > div.col-xs-1 {
&:first-child {
background-color: black;
padding-left: 0px
!important;
}
}
}div.addon-header
{
color: white;
> div.col-sm-9 {
>
div.col-xs-1:first-child {
background-color: black;
padding-left:
0px !important;
}
}
}
:nth-child(1)
instead. Nothing works. I'm clueless. Somewhere
else in my SASS, I have the
following:.tab-content
{
>.tab-pane:first-child > form > div.row > div {
//
rules here
> div.picture-container {
// rules here
}
}
>.tab-pane {
// rules here
}
>.tab-pane:nth-child(4) > form {
// rules here
}
}
working just fine. So I really don't get what I'm doing wrong in the first example.
Anyone able to help?
col-xs-1
need to
wrap row
because this block is not first element. First element
is h2
php - file_get_contents shows unexpected output while reading a file
I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...
-
I have an app which needs a login and a registration with SQLite. I have the database and a user can login and register. But i would like th...
-
I got an error in my Java program. I think this happens because of the constructor is not intialized properly. My Base class Program public ...
-
I would like to use enhanced REP MOVSB (ERMSB) to get a high bandwidth for a custom memcpy . ERMSB was introduced with the Ivy Bridge micro...
No comments:
Post a Comment