Nesting within Sass


#1

Am stuck and have no where to go , Help!!

Hi All ,my name is Fitzgerald and i am in need of some help. I am trying to nest an elements features within its parents selector

lets say

.parent {
color: blue;
height: 40px
(and so forth)
width: 400px;

When i try to add the child selectors details below i receive an errors? can anyone assist me with where am going wrong ??

(Example of the coding in question)

@import url(https://fonts.googleapis.com/css?family=Pacifico);
//Add variables here:

h1 {
font-family: Roboto, sans-serif;
text-align: center;
}

.banner {
font-family: 'Pacifico', cursive;
height: 400px;
background-image: url("lemonade.jpg");
.slogan {
position: absolute;
border:4px solid black;
top: 200px;
left: 25%;
width: 50%;
height: 200px;
text-align: center;
}

.container {
text-align: center;
font-family: 'Pacifico', cursive;
}

Replace this line with your code.


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.