These are chat archives for FreeCodeCamp/Help

5th
Mar 2017
mdainer
@mdainer
Mar 05 2017 00:01
@MikeyZee what are you working on?
Hello?
JakeTheTurk
@JakeTheTurk
Mar 05 2017 00:06
Hello!
mdainer
@mdainer
Mar 05 2017 00:06
@JakeTheTurk How's it going?
Anon
@MikeyZee
Mar 05 2017 00:06
@mdainer I am working on a school assignment and I can't quite seem to get something right. Also I need someone to proofread my pseudocode to make sure the indenting is correct
Sean Savoree
@SSavoree
Mar 05 2017 00:06
really quick stupid question
for anyone willing to help a beginner on freecodecamp
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:07
@MikeyZee ``` then press enter. You should see backticks above and below your cursor. Paste in your code and press ctrl + enter
mdainer
@mdainer
Mar 05 2017 00:07
@MikeyZee I would love to help
JakeTheTurk
@JakeTheTurk
Mar 05 2017 00:07
@mdainer trying to get a very simple code done but i can't
@SSavoree don't worry at least half of us are beginners
Anon
@MikeyZee
Mar 05 2017 00:08
BEGIN MAINPROGRAM
    Get difficulty
        CASEWHERE difficulty is
            "Easy": gennum = Random(50 - 1) + 1
            "Medium": gennum = Random(100 - 1) + 1
            "Hard": gennum = Random(200 - 1) + 1
        ENDCASE
        WHILE guess != gennum
            Get guess
                if guess > gennum THEN
                    OutputLowerELSE
                    Output “Higher”
                ENDIF
        ENDWHILE
    Output “YOU WIN!!”
END
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:08
yosh!!
Sean Savoree
@SSavoree
Mar 05 2017 00:08

Here's an example of how you give your h2 element the id of cat-photo-app:

<h2 id="cat-photo-app">

Give your form element the id cat-photo-form.

Anon
@MikeyZee
Mar 05 2017 00:08
Yes!! thats so cool thankyou @alexanderkopke I was wondering how people were doing that
CamperBot
@camperbot
Mar 05 2017 00:08
mikeyzee sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:star2: 1162 | @alexanderkopke |http://www.freecodecamp.com/alexanderkopke
Sean Savoree
@SSavoree
Mar 05 2017 00:08
and this is what I have
<h2 id= "cat-photo-form" class="red-text">CatPhotoApp</h2>
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:08
:blush:
Anon
@MikeyZee
Mar 05 2017 00:09
This is my base pseudocode and I was wonderng whether the indentation of all of it was correct?
JakeTheTurk
@JakeTheTurk
Mar 05 2017 00:09
I can't do this smaller px thing
damn
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:10
@SSavoree id= <-- remove the space before the "cat-photo-form"
Sean Savoree
@SSavoree
Mar 05 2017 00:11
saw that myself and tried
<h2 id="cat-photo-form" class="red-text">CatPhotoApp</h2>
still won't take
any other ideas?
I feel so stupid right now XD
JakeTheTurk
@JakeTheTurk
Mar 05 2017 00:11
<style>
.larger-image {
width: 500px;
}
</style>
mdainer
@mdainer
Mar 05 2017 00:11
'''
CamperBot
@camperbot
Mar 05 2017 00:11
:bulb: to format code use backticks! ``` more info
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:11
@SSavoree good. I just saw it asked to put it in your form element
JakeTheTurk
@JakeTheTurk
Mar 05 2017 00:11
how do i do this right
Sean Savoree
@SSavoree
Mar 05 2017 00:12
oh my god
never mind
Thank you @alexanderkopke !
CamperBot
@camperbot
Mar 05 2017 00:12
ssavoree sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:star2: 1163 | @alexanderkopke |http://www.freecodecamp.com/alexanderkopke
Sean Savoree
@SSavoree
Mar 05 2017 00:12
Didn't even see that XD
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:13
@JakeTheTurk you have it correct. but it should be called .smaller-image and width should be 100px. Also give your img element the smaller-image class if you haven't already
Lev
@LevOshchypok
Mar 05 2017 00:13
Hello everyone)) How I can give to my buttons unique id? I have smth like this
<button class="btn btn-default target"></button>
<button class="btn btn-default target"></button>
<button class="btn btn-default target"></button>
And I need to make my turgets with numbers, like turget1 or something like that
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:14
@LevOshchypok you can give each button a different id like id="target1" etc
JakeTheTurk
@JakeTheTurk
Mar 05 2017 00:15
how do I send you my code chunk properly? still haven't done it properly.
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:15
@JakeTheTurk ``` then press enter. You should see backticks above and below your cursor. Paste in your code and press ctrl + enter
reginaramos
@reginaramos
Mar 05 2017 00:16

Having trouble with this - Your a element should be a dead link with a href attribute set to "#"?

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a# ="http://www.freecatphotoapp.com">cat photos</a>.</p>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Lev
@LevOshchypok
Mar 05 2017 00:17
@alexanderkopke Thank you very much))) It works now)))
CamperBot
@camperbot
Mar 05 2017 00:17
levoshchypok sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:star2: 1164 | @alexanderkopke |http://www.freecodecamp.com/alexanderkopke
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:17
@reginaramos you have this:<a# ="http://www.freecatphotoapp.com"> but it should be like this <a href="#">
JakeTheTurk
@JakeTheTurk
Mar 05 2017 00:17
I have it same as this guy but won't accept the code! I have my browser on 100% zoom
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:18
@JakeTheTurk do you see your <img> element? does it have class="smaller-image"
reginaramos
@reginaramos
Mar 05 2017 00:18
@alexanderkopke Thank you! Instruction wasn't thaaat clear! :P
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:19
:blush:
JakeTheTurk
@JakeTheTurk
Mar 05 2017 00:19
okay you know what? I'ma go to bed now. too tired to figure this out, 3:20am here...
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:20
@JakeTheTurk good idea. tomorrow you will have a fresh mind. Sleep well! :)
JakeTheTurk
@JakeTheTurk
Mar 05 2017 00:20
Thanks! Btw, how do I add you as a friend?
Oh yeah just figured that out
aaaaandddd
jake out!
Paulo Kinopk
@pkinopk
Mar 05 2017 00:22
Guys, how do I test the action on console? myVar.action doesn't work
var myVar = function () {

  this.action = function (){
    return "This is a Test";
  };

}
nyameeugene
@nyameeugene
Mar 05 2017 00:22

The div element, also known as a division element, is a general purpose container for other elements.

The div element is probably the most commonly used HTML element of all. It's useful for passing the CSS of its own class declarations down to all the elements that it contains.

Just like any other non-self-closing element, you can open a div element with <div> and close it on another line with </div>.

Try putting your opening div tag above your "Things cats love" p element and your closing div tag after your closing ol tag so that both of your lists are within one div.

Nest your p elements inside your div element.
Nest your ul element inside your div element.
Nest your ol element inside your div element.
Make sure your div element has a closing tag.
pls help
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:29
@pkinopk is that a challenge?
Paulo Kinopk
@pkinopk
Mar 05 2017 00:29
@alexanderkopke not really just a side learning
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:31
@pkinopk ok anyways you can console.log(what you want to test goes here); press f12 and you will see it if the code runs
Lucas Scalzo
@Lu314
Mar 05 2017 00:31
hey, anyone at #143in javascript??
having trouble with just one checkbox
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:33
@Lu314 what is the challenge called?
@alexanderkopke
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:38
@Lu314 you have a ; inside the string \r\\ThirdLine;"<-- also you have carriage return escape Thirdline it should be escape carriage return Thirdline
Lucas Scalzo
@Lu314
Mar 05 2017 00:41
@alexanderkopke thanx
CamperBot
@camperbot
Mar 05 2017 00:41
lu314 sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:star2: 1165 | @alexanderkopke |http://www.freecodecamp.com/alexanderkopke
Lucas Scalzo
@Lu314
Mar 05 2017 00:45
"FirstLine\n\SecondLine\rThirdLine";
I still didnt get it right
Alexander Køpke
@alexanderkopke
Mar 05 2017 00:47
var myStr= "FirstLine\n\\SecondLine\\\rThirdLine";
it is a weird topic for sure. I don't usually give the solution like that but feel it ok in this case @Lu314
Lucas Scalzo
@Lu314
Mar 05 2017 00:49
@alexanderkopke thanx
CamperBot
@camperbot
Mar 05 2017 00:49
lu314 sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:warning: lu314 already gave alexanderkopke points
Tom
@Rygaar
Mar 05 2017 00:53
Awesome so I just completed my first step in coding HTML/CSS wow that was fun
Hypezz
@Hypezz
Mar 05 2017 00:55
<div class="row col-xs-4">

<button class="btn btn-block btn-primary">Like</button>
<button class="btn btn-block btn-info">Info</button>
<button class="btn btn-block btn-danger">Delete</button>

</div>
Im so confused
How do I put the elements side by side?
Moisés Man
@moigithub
Mar 05 2017 01:01
each button inside its OWN col
and everything wrapped in a row
HH005
@HH005
Mar 05 2017 01:05
`Hi, I'm having a bit of trouble. Pls help!!
Isabelle
@isabellemao
Mar 05 2017 01:06
Post the code?
HH005
@HH005
Mar 05 2017 01:06

<script>
$(document).ready(function() {
$("button").addClass("animated bounce");
$(".well").addClass("animated shake");
$("#target3").addClass("animated fadeOut");
$("#target2").removeClass("btn-default");
});
</script>

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn target" id="target1">#target1</button>
<button class="btn target" id="target2">#target2</button>
<button class="btn target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn target" id="target4">#target4</button>
<button class="btn target" id="target5">#target5</button>
<button class="btn target" id="target6">#target6</button>
</div>
</div>
</div>
</div>

It says -- Only use jQuery to remove this class from the element.
Isabelle
@isabellemao
Mar 05 2017 01:09
Not sure, but the error might be on line 5?
Alexander Køpke
@alexanderkopke
Mar 05 2017 01:11
@HH005 are you sure its btn-default? Because target2 has no such class
at least not in the code you posted
DANIEL EMMANUEL UCHE
@OSITADIN
Mar 05 2017 01:13
Hello world
Am a new camper
Alexander Køpke
@alexanderkopke
Mar 05 2017 01:13
@HH005 ah the instructions say: Let's remove the btn-default class from all of our button elements.
hi and welcome!
Isabelle
@isabellemao
Mar 05 2017 01:14
Welcome @OSITADIN , try the main chat
8xboom
@8xboom
Mar 05 2017 01:15

<style>
h2 .red-text
{
color: red;

}

</style>

<h2 class="red-text">CatPhotoApp</h2>

can someone help it says make you h2 element red but i dont know what im missing

Isabelle
@isabellemao
Mar 05 2017 01:16
Maybe enclose the word red in quotes?
Moisés Man
@moigithub
Mar 05 2017 01:17
remove h2 from ur style definition
just .red-text would be enough
zerowithmurray
@zerowithmurray
Mar 05 2017 01:18
yep
8xboom
@8xboom
Mar 05 2017 01:18
oh okay wokred thanks
KodeKiwi
@KodeKiwi
Mar 05 2017 01:19
Hey all
With this jquery string $(".target:nth-child(3)").addClass("animated bounce"); what are valid targets?
Ok so I actually just managed to pass the level but I'm still confused how that works

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css("background-color", "red");
$("#right-well").children().css("color", "orange");
$(".target:nth-child(2)").addClass("animated bounce");


});
</script>

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>

How does the last line in the script know to only target the 2nd child of the right-well and left-well <div>'s?
Alexander Køpke
@alexanderkopke
Mar 05 2017 01:23
@KodeKiwi you select the children.. so .target is the child and every 2 nth of the children is selected
HDviews
@HDviews
Mar 05 2017 01:23
um question for you guys
I made a CSS class and assigned it to my <img> element
KodeKiwi
@KodeKiwi
Mar 05 2017 01:23
how?@
HDviews
@HDviews
Mar 05 2017 01:24
but nothing happens...
KodeKiwi
@KodeKiwi
Mar 05 2017 01:24
@alexanderkope but how does it know I only want to target the children of id's right-well and left-well?
Alexander Køpke
@alexanderkopke
Mar 05 2017 01:26
@KodeKiwi because you specify .target so all those elements that has the target class of those the nth-child(2) kicks in
HDviews
@HDviews
Mar 05 2017 01:27
can you guys help me a bit?
Isabelle
@isabellemao
Mar 05 2017 01:27
Post the code perhaps?
HDviews
@HDviews
Mar 05 2017 01:27

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

.smaller-image {
width: 100px;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back." class=".smaller-image">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

KodeKiwi
@KodeKiwi
Mar 05 2017 01:29
@hdviews you need to drop the . after class=
@hdviews I think
Isabelle
@isabellemao
Mar 05 2017 01:30
replace a line with <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back." class="smaller-image">
KodeKiwi
@KodeKiwi
Mar 05 2017 01:30
@alexanderkopke Oh okay I see, thanks
CamperBot
@camperbot
Mar 05 2017 01:30
kodekiwi sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:star2: 1166 | @alexanderkopke |http://www.freecodecamp.com/alexanderkopke
Nayenne Abgail
@Nayenne
Mar 05 2017 01:33

http://codepen.io/NayNay_s2/pen/NdzLxo?editors=1010

i need some help with my quote genarator pls.
how do i make the OKAY text disapear after i click to generate the first quote?

Evan Boucher
@VeggiePickles
Mar 05 2017 01:36
can somebody tell me what to do for the css style element
Danielmi8
@Danielmi8
Mar 05 2017 01:37
hello
div is for what?
hey people
Isabelle
@isabellemao
Mar 05 2017 01:38
div is short for divider
Danielmi8
@Danielmi8
Mar 05 2017 01:38
ok cool got it
Amber S.
@ahspadafora
Mar 05 2017 01:39
hey I'm in day two and I'm working on my portfolio webpage, I'm having trouble with the nav bar
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 01:39
@Danielmi8 Imagine the <div> as a container that has some stuff in it. By stilying the div you style all the things inside of it. If thats what you wanted to know, since your question was kinda wide :D
Amber S.
@ahspadafora
Mar 05 2017 01:39
and i'm not sure where to start looking
my goal is to make the three nav bar links a row of buttons
Alexander Køpke
@alexanderkopke
Mar 05 2017 01:41
@Nayenne inside your newQuote function you can do document.getElementById("quoteBox1").innerHTML = "";
Tina
@youwerecreated
Mar 05 2017 01:41
Hello. I don't see what is wrong with the rgb:
HDviews
@HDviews
Mar 05 2017 01:42
thank you guys for the help
Nayenne Abgail
@Nayenne
Mar 05 2017 01:44
@alexanderkopke awesome!! THANK YOU!
CamperBot
@camperbot
Mar 05 2017 01:44
nayenne sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:star2: 1167 | @alexanderkopke |http://www.freecodecamp.com/alexanderkopke
Lauri Välja
@OFFLlNE
Mar 05 2017 01:45
@alexanderkopke why you are not sleepin? :D
Alexander Køpke
@alexanderkopke
Mar 05 2017 01:45
I wish I knew :laughing:
Lauri Välja
@OFFLlNE
Mar 05 2017 01:45
:D
just came home from party #waytoodrunk :D
Ace
@aceschnacke
Mar 05 2017 01:47
<style> ".pink-text"={color:pink;} </style> <h1 class=pink-text>Hello</h1> why won't this work?
Alexander Køpke
@alexanderkopke
Mar 05 2017 01:48
@OFFLlNE ah to be young :)
Lauri Välja
@OFFLlNE
Mar 05 2017 01:48
:D time to drink tons of water now :D
Alexander Køpke
@alexanderkopke
Mar 05 2017 01:49
@ahspadafora codepen uses boostrap version 4 which is not version 3. Under css setting put in this instead of version 4: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css
water is good!
Amber S.
@ahspadafora
Mar 05 2017 01:49
ahh thank you
@alexanderkopke thanks :)
CamperBot
@camperbot
Mar 05 2017 01:49
ahspadafora sends brownie points to @alexanderkopke :sparkles: :thumbsup: :sparkles:
:star2: 1168 | @alexanderkopke |http://www.freecodecamp.com/alexanderkopke
Amber S.
@ahspadafora
Mar 05 2017 01:50
@alexanderkopke how can i make the nav bar stretch across the frame?
MrsY
@Mrs-Y
Mar 05 2017 01:53
hello
anybody here to help me, because in front end i didnt got the answer
im working on tribute page
Isabelle
@isabellemao
Mar 05 2017 01:55
@aceschnacke
I did

<style>
h1.pink-text {color: pink;}
</style>

<h1 class="pink-text">Hello</h1>

and that changed it to pink (that only took me eight minutes to figure out :))
MrsY
@Mrs-Y
Mar 05 2017 01:56
i got answer
Ace
@aceschnacke
Mar 05 2017 01:56
@isabellemao thank you so much
CamperBot
@camperbot
Mar 05 2017 01:56
aceschnacke sends brownie points to @isabellemao :sparkles: :thumbsup: :sparkles:
:cookie: 15 | @isabellemao |http://www.freecodecamp.com/isabellemao
Theo
@FidoGaming
Mar 05 2017 02:11
idek
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:12
Hello people, so i have a question. I just started the Free Code Camp courses, and im curently stuck at the task for 25points, where you need to put a border around your image.
Manish Giri
@Manish-Giri
Mar 05 2017 02:13
@lazarjaksic97 show your code..
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:13

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.smaller-image {
width: 100px;
}

.think-green-border{
border-width:10px;
border-color:green;
border-style:solid;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Manish Giri
@Manish-Giri
Mar 05 2017 02:13
@lazarjaksic97 .think-green-border{
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:13
This is the code
Manish Giri
@Manish-Giri
Mar 05 2017 02:13
it's thick not think
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:13
oh
let me rewrite that
and see what happends
james umali
@indefinite0212
Mar 05 2017 02:14
hi
Isabelle
@isabellemao
Mar 05 2017 02:14
Hi!
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:14
Okey that fixed it, lol, thanks. :D
@Manish-Giri ty :)
CamperBot
@camperbot
Mar 05 2017 02:14
lazarjaksic97 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 4586 | @manish-giri |http://www.freecodecamp.com/manish-giri
Manish Giri
@Manish-Giri
Mar 05 2017 02:15
@lazarjaksic97 welcome
DANIEL EMMANUEL UCHE
@OSITADIN
Mar 05 2017 02:23
Can someone help with this code
Lauri Välja
@OFFLlNE
Mar 05 2017 02:25
@Manish-Giri and even you are up :D dang. Good night for now
mitron6
@mitron6
Mar 05 2017 02:25
@OSITADIN What code?
Manish Giri
@Manish-Giri
Mar 05 2017 02:25
@OFFLlNE :smile:
good night
:wave:
mitron6
@mitron6
Mar 05 2017 02:25
@Manish-Giri good night and thank you.
CamperBot
@camperbot
Mar 05 2017 02:25
mitron6 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 4587 | @manish-giri |http://www.freecodecamp.com/manish-giri
Amber S.
@ahspadafora
Mar 05 2017 02:25
would anyone mind helping me; i am trying to figure out how to scroll to a html element within a page from a link
this is the code I have: <li><a href="#aboutMe" class="navbar-btn btn-danger">About Me</a></li>
<h3 class="text-center" id="#aboutMe">Section One</h3>
Manish Giri
@Manish-Giri
Mar 05 2017 02:26
@mitron6 ty
CamperBot
@camperbot
Mar 05 2017 02:26
manish-giri sends brownie points to @mitron6 :sparkles: :thumbsup: :sparkles:
:cookie: 557 | @mitron6 |http://www.freecodecamp.com/mitron6
mitron6
@mitron6
Mar 05 2017 02:30
@ahspadafora Maybe this wil help http://catcode.com/linkguide/in_page.html
Amber S.
@ahspadafora
Mar 05 2017 02:30
@mitron6 thanks mitron!
CamperBot
@camperbot
Mar 05 2017 02:30
ahspadafora sends brownie points to @mitron6 :sparkles: :thumbsup: :sparkles:
:cookie: 558 | @mitron6 |http://www.freecodecamp.com/mitron6
Amber S.
@ahspadafora
Mar 05 2017 02:30
i realized my mistake, that the id needed to be associated with a <div>
whereas I had the link pointing to a header
Jamison Wilson
@jamison8
Mar 05 2017 02:33
how can you move an image on the page
mitron6
@mitron6
Mar 05 2017 02:33
@jamison8 animate or change location?
KodeKiwi
@KodeKiwi
Mar 05 2017 02:33
is there anywhere I can se font samples for css
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:33
@jamison8 With the float property in css
Jamison Wilson
@jamison8
Mar 05 2017 02:33
like im trying to center an image that is all the way to the left
float property?
im doing the tribute page >_<
DANIEL EMMANUEL UCHE
@OSITADIN
Mar 05 2017 02:34

<style>
.red-text{
color: red;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:34
@jamison8 ye i think its float, let me search for a sec
Jamison Wilson
@jamison8
Mar 05 2017 02:34
and having a hard time
KodeKiwi
@KodeKiwi
Mar 05 2017 02:34
@jamison8 lol I just had this issue, I got around it by adjusting the margin-left
DANIEL EMMANUEL UCHE
@OSITADIN
Mar 05 2017 02:35
I need help on the code above to turn the paragraph red
Jamison Wilson
@jamison8
Mar 05 2017 02:35
adjust the margin in css?
KodeKiwi
@KodeKiwi
Mar 05 2017 02:35
yea
So I gave the image an id and then used the id to adjust the margins for that particular image
mitron6
@mitron6
Mar 05 2017 02:36
@KodeKiwi I think the best is to google "css font samples" . There are lots of pages.
KodeKiwi
@KodeKiwi
Mar 05 2017 02:36
Don't think it's best practice but it's the only way I can think of that's covered in the initial course
mitron6
@mitron6
Mar 05 2017 02:37
@KodeKiwi @jamison8 You don't have to limit yourself to the course material on the projects.
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:37
@jamison8 ok i found smth, try the text-aling: center property
@jamison8 align*
sofiawhite
@sofiawhite
Mar 05 2017 02:44
please i want to create a smaller-image classand resize it
i put this upper the <img code <style>
.larger-image {
width: 500px;
}
</style>
IT AINT working
Candice L.
@canlit
Mar 05 2017 02:44
@coymeetsworld yes removing the period worked. such a nuisance for a small mistake. thanks again.
CamperBot
@camperbot
Mar 05 2017 02:44
canlit sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star2: 2272 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
sofiawhite
@sofiawhite
Mar 05 2017 02:45
ANYBODY??
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:45
@sofiawhite can you give me more details pls i dont understand what ur trying do to
@sofiawhite can u copy-paste the code?
sofiawhite
@sofiawhite
Mar 05 2017 02:46
@lazarjaksic97 here is the code
<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:46
and u want a stylesheet for that to make the picture bigger?
@sofiawhite
sofiawhite
@sofiawhite
Mar 05 2017 02:47
i wanna create a smaller-image class with 100px
@lazarjaksic97
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:47
ok give me a sec
sofiawhite
@sofiawhite
Mar 05 2017 02:47
<style>
.larger-image {
width: 500px;
}
</style>
normally this is the code for resizing~
ok take ur time @lazarjaksic97
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:48
@sofiawhite first the img tag needs a class, so put <img class="name-of-the-class" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">
then in the style put: <style> .name-of-the-class { width:100px;} </style>
<style>
.name-of-the-class {
width:100px;
}
@sofiawhite
@sofiawhite hope this helps :v:
sofiawhite
@sofiawhite
Mar 05 2017 02:51
@lazarjaksic97 still not working
@lazarjaksic97 thx btw
CamperBot
@camperbot
Mar 05 2017 02:52
sofiawhite sends brownie points to @lazarjaksic97 :sparkles: :thumbsup: :sparkles:
:cookie: 29 | @lazarjaksic97 |http://www.freecodecamp.com/lazarjaksic97
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:52
@sofiawhite ill take a look again maybe i missed smth, just a sec
kelly
@ikhoulbe
Mar 05 2017 02:52
i need help!! so i have the CSS and it wants me to keep the element classes and add inline color of white, but for some reason the h1 text is not white
<h1 style= color: white id="orange-text" class="pink-text blue-text">Hello World!</h1>
james umali
@indefinite0212
Mar 05 2017 02:54
...
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:54
@sofiawhite ur at the "Size your image" task, right?
sofiawhite
@sofiawhite
Mar 05 2017 02:54
@lazarjaksic97 yes i am
james umali
@indefinite0212
Mar 05 2017 02:55

// Declare your variable here
 var myGlobal = 10;

function fun1(oopsGlobal) {
  // Assign 5 to oopsGlobal Here
  oopsGlobal = 5 ;
  console.log(oopsGlobal);
}

// Only change code above this line
function fun2() {
  var output = "";
  if (typeof myGlobal != "undefined") {
    output += "myGlobal: " + myGlobal;
  }
  if (typeof oopsGlobal != "undefined") {
    output += " oopsGlobal: " + oopsGlobal;
  }
  console.log(output);
}

Using var, declare a global variable myGlobal outside of any function. Initialize it with a value of 10.

Inside function fun1, assign 5 to oopsGlobal without using the var keyword.
need to do: oopsGlobal should have a value of 5

can anyone help me
kelly
@ikhoulbe
Mar 05 2017 02:55
pls
Lazar Jaksic
@lazarjaksic97
Mar 05 2017 02:55

@sofiawhite <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}
.smaller-image{
width:100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<img class="smaller-image" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

james umali
@indefinite0212
Mar 05 2017 02:58
@ikhoulbe <h1 style= "color: white" id="orange-text" class="pink-text blue-text">Hello World!</h1>
kelly
@ikhoulbe
Mar 05 2017 02:58
@indefinite0212 thank you <3
CamperBot
@camperbot
Mar 05 2017 02:58
ikhoulbe sends brownie points to @indefinite0212 :sparkles: :thumbsup: :sparkles:
:cookie: 173 | @indefinite0212 |http://www.freecodecamp.com/indefinite0212
kimchii
@Jchap808
Mar 05 2017 02:59
i need help with id attribute to style an element. where do i place the form element of the background-color?
Candice L.
@canlit
Mar 05 2017 03:00

ok i need help . i on turn an image into a link and i am stuck. here is my code. h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. " href="#">cat photos </a></p>

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

james umali
@indefinite0212
Mar 05 2017 03:01
@Jchap808 post your code here
badalsaibo
@heyDante
Mar 05 2017 03:02
@canlit <a href=""> </a>
james umali
@indefinite0212
Mar 05 2017 03:02
@canlit if you want to set your image into a link you should use <a href="Link"></a> not <a href="#"></a> hash symbol is for dead links
arbaazbaig
@arbaazbaig
Mar 05 2017 03:03

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
h2 {
font-family: Lobster, Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

</style>

<div class="container-fluid">
<div class="row">
<div class="col-xs-8">
<h2 class="text-primary text-center">CatPhotoApp</h2>
</div>
<div class="col-xs-4">
<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>
</div>
</div>
<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info"><i class="fa fa-info-circle"></i> Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger"><i class="fa fa-trash"></i> Delete</button>
</div>
</div>
<p>Things cats <span class="text-danger">love:</span></p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
</div>
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Loving</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Lazy</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Crazy</label>
</div>
</div>
<input type="text" placeholder="cat photo URL" required>
<button type="submit" class="btn btn-primary"><i class="fa fa-paper-plane">Submit</i></button>
</form>
</div>

how to give the text input in the form the class form-conntrol
badalsaibo
@heyDante
Mar 05 2017 03:05
@arbaazbaig just add the way you normally add classes. class="yourClass"
arbaazbaig
@arbaazbaig
Mar 05 2017 03:06
should i add it in the form tag
??
badalsaibo
@heyDante
Mar 05 2017 03:08
@arbaazbaig it says the input tag
give the text input in the form the class form-control
arbaazbaig
@arbaazbaig
Mar 05 2017 03:10
what is form-control class used for??
james umali
@indefinite0212
Mar 05 2017 03:12

can anyone help me with this one:

 ``` 

// Declare your variable here
var myGlobal = 10;

function fun1(oopsGlobal) {
// Assign 5 to oopsGlobal Here
oopsGlobal = 5 ;
console.log(oopsGlobal);
}

// Only change code above this line
function fun2() {
var output = "";
if (typeof myGlobal != "undefined") {
output += "myGlobal: " + myGlobal;
}
if (typeof oopsGlobal != "undefined") {
output += " oopsGlobal: " + oopsGlobal;
}
console.log(output);
}
// oopsGlobal should have a value of 5
/*Using var, declare a global variable myGlobal outside of any function. Initialize it with a value of 10.

Inside function fun1, assign 5 to oopsGlobal without using the var keyword.*/
```

// Declare your variable here
var myGlobal = 10;

function fun1(oopsGlobal) {
// Assign 5 to oopsGlobal Here
oopsGlobal = 5 ;
console.log(oopsGlobal);
}

// Only change code above this line
function fun2() {
var output = "";
if (typeof myGlobal != "undefined") {
output += "myGlobal: " + myGlobal;
}
if (typeof oopsGlobal != "undefined") {
output += " oopsGlobal: " + oopsGlobal;
}
console.log(output);
}
// oopsGlobal should have a value of 5
/*Using var, declare a global variable myGlobal outside of any function. Initialize it with a value of 10.

Inside function fun1, assign 5 to oopsGlobal without using the var keyword.*/
lukenems
@lukenems
Mar 05 2017 03:17
@indefinite0212 what is it that you are trying to do exactly?
Andrew Shieh
@andrewlikes
Mar 05 2017 03:17
@arbaazbaig it's used for textual inputs
james umali
@indefinite0212
Mar 05 2017 03:18

@lukenems Instructions

Using var, declare a global variable myGlobal outside of any function. Initialize it with a value of 10.

Inside function fun1, assign 5 to oopsGlobal without using the var keyword.
Need to do:

myGlobal should be defined
myGlobal should have a value of 10
myGlobal should be declared using the var keyword
oopsGlobal should have a value of 5(this is the problem)
Do not declare oopsGlobal using the var keyword

Andrew Shieh
@andrewlikes
Mar 05 2017 03:21
@lukenems you put a space after 5
Delete it
lukenems
@lukenems
Mar 05 2017 03:22
@indefinite0212 have you tried using return rather than console.log to end function fun1?
Andrew Shieh
@andrewlikes
Mar 05 2017 03:23
@indefinite0212 oops meant you
lukenems
@lukenems
Mar 05 2017 03:24
@andrewlikes :ok_hand:
Ethan Arrowood
@Ethan-Arrowood
Mar 05 2017 03:25
Can anyone help me debug my pomodoro timer? http://codepen.io/ethan-arrowood/pen/evJRZw/?editors=0010
It's only working for a single tick then stopping and I can't figure out why
james umali
@indefinite0212
Mar 05 2017 03:26
@andrewlikes I deleted it. and nothing happened
@lukenems I change console.log to return and nothing happened
Ethan Arrowood
@Ethan-Arrowood
Mar 05 2017 03:31
Nvm I fixed it.
Nicole
@nica11
Mar 05 2017 03:34

I'm slightly confused by this wording: If you set an element's margin to a negative value, the element will grow larger.

My understanding is, if you set an elements margin to a negative value, it will reposition the element based on its relative position and its negative margin value/s.

In the example it LOOKS like the element is larger, but I’m pretty sure it’s the same size, just repositioned (using negative margin positioning) to look like it is filling the entire width of the viewport? Am I crazy?

Hariz Izzudin
@xikonim03
Mar 05 2017 03:34

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

-Your img element should have the class smaller-image.
-Your image should be 100 pixels wide. Browser zoom

Where should i put them?

badalsaibo
@heyDante
Mar 05 2017 03:37
@xikonim03 create a class .smaller-image just like .red-text , then give it the said properties as they want. Then add your class to the img element
Nicole
@nica11
Mar 05 2017 03:37

@xikonim03 put the class before the src attribute in your img element. e.g.:

<img class=“smaller-image” src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. “>

Alexander Køpke
@alexanderkopke
Mar 05 2017 03:38
.red-text is a class, so if .smaller-image is a class then the same method would apply. Also notice that red-text class was added to the h2 element. Similarly smaller-image class would be added to the img elmenet
Candice L.
@canlit
Mar 05 2017 03:38
@indefinite0212 i am supposed to nest the existing img element w/in an a element and a element should be a dead link with a href attribute set to #
Hariz Izzudin
@xikonim03
Mar 05 2017 03:40

<style>

.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}
.smaller-image{
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<img class="smalller-image" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Like This?
lukenems
@lukenems
Mar 05 2017 03:40
@indefinite0212 im not sure how you would define “oopsGlobal” without using a keyword? it works when you run
badalsaibo
@heyDante
Mar 05 2017 03:41
@xikonim03 Yes. Just correct this smalller
Nicole
@nica11
Mar 05 2017 03:41
@xikonim03 check your class spelling. :)
lukenems
@lukenems
Mar 05 2017 03:41

@indefinite0212

var myGlobal = 10;

function fun1(my global) {
var = oopsGloabl / 2;
return oopsGlobal;
}

Hariz Izzudin
@xikonim03
Mar 05 2017 03:42
Thanks @nica11 @heyDante
CamperBot
@camperbot
Mar 05 2017 03:42
xikonim03 sends brownie points to @nica11 and @heydante :sparkles: :thumbsup: :sparkles:
:cookie: 517 | @heydante |http://www.freecodecamp.com/heydante
:cookie: 49 | @nica11 |http://www.freecodecamp.com/nica11
lukenems
@lukenems
Mar 05 2017 03:42
@indefinite0212 *spelling error
james umali
@indefinite0212
Mar 05 2017 03:44
@lukenems I already did it man. I just have to delete the parameters that I put and declare oopsGlobal inside the function without giving console.log or return
<a href="#"><<img class=“smaller-image” src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. “></a> @canlit
SIRIUScoder1
@SIRIUScoder1
Mar 05 2017 03:46
<div class="row">
<div class="col-xs-6 well">

</div>
<div class="col-xs-6 well">

</div>
can anybody tell me whats the error with well class
Candice L.
@canlit
Mar 05 2017 03:46
i just got it.!!! thanks @indefinite0212
CamperBot
@camperbot
Mar 05 2017 03:46
canlit sends brownie points to @indefinite0212 :sparkles: :thumbsup: :sparkles:
:cookie: 176 | @indefinite0212 |http://www.freecodecamp.com/indefinite0212
james umali
@indefinite0212
Mar 05 2017 03:48
@SIRIUScoder1 you shoukd declare class well on a different / separate div
don't put the class well on <div class="col-xs-6>
so i have this page
i can't figure out why the "hello world" text will not appear below the image
when i put it in another HTML viewer there is no problem
Code pen bug?
SIRIUScoder1
@SIRIUScoder1
Mar 05 2017 04:04
ya just got it ...thanks @indefinite0212 :smile:
CamperBot
@camperbot
Mar 05 2017 04:04
siriuscoder1 sends brownie points to @indefinite0212 :sparkles: :thumbsup: :sparkles:
:cookie: 179 | @indefinite0212 |http://www.freecodecamp.com/indefinite0212
diacruz
@diacruz
Mar 05 2017 04:13
could any one explain why this is wrong? whats the proper way .. <button <i class="fa fa-thumbs-up btn btn-block btn-primary"></i>like</button>
Jacoby Clarke
@Jacobycodes18
Mar 05 2017 04:14
@diacruz "<button" needs to be <button>
vigilante0525
@vigilante0525
Mar 05 2017 04:16
right now I am using bootstrap to center text. The code came written in to my h2 element but how do I add text-center to my <style>
Jacoby Clarke
@Jacobycodes18
Mar 05 2017 04:19
CSS or HTML?
@vigilante0525
vigilante0525
@vigilante0525
Mar 05 2017 04:20
it is still the cat app. but i think we are using css to format our html. it is the second training block
@Jacobycodes18
Jacoby Clarke
@Jacobycodes18
Mar 05 2017 04:22
.* {text: center;} Try this i'm not sure though @vigilante0525
vigilante0525
@vigilante0525
Mar 05 2017 04:23
what is the *
Jacoby Clarke
@Jacobycodes18
Mar 05 2017 04:23
your target
vigilante0525
@vigilante0525
Mar 05 2017 04:24
so if i was formatting my h2 it would be .h2{ }
Jacoby Clarke
@Jacobycodes18
Mar 05 2017 04:25
well no h2 is an element
drop the period
vigilante0525
@vigilante0525
Mar 05 2017 04:26
<style>


.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
text:center;

}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>
the word text in the h2 element is bright pink. Did I place it wrong?
Igor Malatestinic
@zabiigor
Mar 05 2017 04:27
@vigilante0525 @vigilante0525 As i recal you just add class text-center you dont need to do anything in <style>
james umali
@indefinite0212
Mar 05 2017 04:28
@diacruz <button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up>like</i></button>
vigilante0525
@vigilante0525
Mar 05 2017 04:28
<h2 class="red-text" "text-center">CatPhotoApp</h2>
@zabiigor
james umali
@indefinite0212
Mar 05 2017 04:29
class="fa fa-thumbs-up is for <i></i> so don't put it inside the class of your button @diacruz
Igor Malatestinic
@zabiigor
Mar 05 2017 04:29
<h2 class=""red-text text-center>Cat PhotoApp</h2>
vigilante0525
@vigilante0525
Mar 05 2017 04:29
my code came formatted with the text center but it is not registering
Igor Malatestinic
@zabiigor
Mar 05 2017 04:30
*"red-text text-center"
Jacoby Clarke
@Jacobycodes18
Mar 05 2017 04:31
@vigilante0525 show your html code
vigilante0525
@vigilante0525
Mar 05 2017 04:31

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>


.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;

}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<div class="container-fluid">
<h2 class="red-text" "text-center">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>

<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>

Jacoby Clarke
@Jacobycodes18
Mar 05 2017 04:33
@vigilante0525 you have double quotations between your classes
class="red-text text-center"
should be like that^
vigilante0525
@vigilante0525
Mar 05 2017 04:34
@Jacobycodes18 Thank you that worked
CamperBot
@camperbot
Mar 05 2017 04:34
vigilante0525 sends brownie points to @jacobycodes18 :sparkles: :thumbsup: :sparkles:
:cookie: 119 | @jacobycodes18 |http://www.freecodecamp.com/jacobycodes18
Jacoby Clarke
@Jacobycodes18
Mar 05 2017 04:34
@vigilante0525 Awesome!
diacruz
@diacruz
Mar 05 2017 04:36
@indefinite0212 awesome thanks!
CamperBot
@camperbot
Mar 05 2017 04:36
diacruz sends brownie points to @indefinite0212 :sparkles: :thumbsup: :sparkles:
:cookie: 180 | @indefinite0212 |http://www.freecodecamp.com/indefinite0212
Asako Hara
@freckledfrog
Mar 05 2017 04:37
can anyone help?

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a herf="#">cat photos</a>.</p>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Im trying to make dead links using the hash symbol
Nayenne Abgail
@Nayenne
Mar 05 2017 04:39
http://codepen.io/NayNay_s2/pen/NdzLxo?editors=1000 everyone, for some reson my twiiter share button stopped working, can anyone help pls?
Manish Giri
@Manish-Giri
Mar 05 2017 04:40

@Nayenne

Uncaught ReferenceError: tweetQuote is not defined
at HTMLAnchorElement.onclick

Jacoby Clarke
@Jacobycodes18
Mar 05 2017 04:41
@freckledfrog remove "#" quotations
Nayenne Abgail
@Nayenne
Mar 05 2017 04:41
@Manish-Giri it was working before, i didnt changeanything
Manish Giri
@Manish-Giri
Mar 05 2017 04:42
@Nayenne
function newQuote() {
  random = Math.floor(Math.random() * quotes.length);
  document.getElementById("quoteBox1").innerHTML = "";
  document.getElementById("quoteBox2").innerHTML = "";
  document.getElementById("quote").innerHTML = quotes[random][0];
  document.getElementById("character").innerHTML = quotes[random][1];
  return quotes[random];


  /* TWEET BUTTON*/
  function tweetQuote() {
    window.open('http://twitter.com/intent/tweet?text=' + quotes[random], '', 'width=800, height=600, left=400, top=20');
  }

}
tweetQuote is not available in the global scope
you put it inside newQuote
Nayenne Abgail
@Nayenne
Mar 05 2017 04:47
@Manish-Giri thanks, and after this is time for bed lol
CamperBot
@camperbot
Mar 05 2017 04:47
nayenne sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 4593 | @manish-giri |http://www.freecodecamp.com/manish-giri
Manish Giri
@Manish-Giri
Mar 05 2017 04:49
@Nayenne welcome
__mifflin__
@cdrainxv
Mar 05 2017 04:51
Half my track pad is stuck…
Manish Giri
@Manish-Giri
Mar 05 2017 04:52
O.o
__mifflin__
@cdrainxv
Mar 05 2017 04:52
Oh well… getting a new one.
Manish Giri
@Manish-Giri
Mar 05 2017 04:53
a new mac?
__mifflin__
@cdrainxv
Mar 05 2017 04:53
yes
Manish Giri
@Manish-Giri
Mar 05 2017 04:53
:scream:
:money_with_wings:
:moneybag:
__mifflin__
@cdrainxv
Mar 05 2017 04:54
Nah… free.
Gulsvi
@gulsvi
Mar 05 2017 04:54
haha :)
Manish Giri
@Manish-Giri
Mar 05 2017 04:54
:unamused:
james umali
@indefinite0212
Mar 05 2017 05:00
http://codepen.io/indefinite0212/pen/evzMXa
why is it , when I want the body to have a black background it doesn't work?
Anh Nguyen
@tiremon112
Mar 05 2017 05:01
@Manish-Giri javascript is dynamic check or static check?
shit it is 12 pm :trollface:
Manish Giri
@Manish-Giri
Mar 05 2017 05:05
@tiremon112 dynamic
trueoriginalbeing
@trueoriginalbeing
Mar 05 2017 05:05
hey how do i complete this mission??
Create a Bootstrap Row
james umali
@indefinite0212
Mar 05 2017 05:06
but I use it to import font-family @tiffanymakes
Manish Giri
@Manish-Giri
Mar 05 2017 05:06
there's no need to declare variable types like int
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:07
you want the whole page to have black bg? @indefinite0212 . or just a section
Tiffany
@tiffanymakes
Mar 05 2017 05:08
@indefinite0212 I'm not sure why, but when I changed <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css"/> to <a href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css"/>, I get a black background for the whole page.
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:08
Dushyant Rao
@Dushyant-Rao
Mar 05 2017 05:08
Hello friend, I am stuck in "import a google font". I have imported the google font into my style element, however i am not able to apply the font
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:08
please use this website to get the bootstrap link, and add it using css settings
Anh Nguyen
@tiremon112
Mar 05 2017 05:08
@Manish-Giri how is your job compare to college
james umali
@indefinite0212
Mar 05 2017 05:09
@Vinayswami91 whole page to black
import it at the top of your code. before the opening of your style tag @Dushyant-Rao
heroiczero
@heroiczero
Mar 05 2017 05:10
@Dushyant-Rao did you <link> it?
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:10
add it to the css settings, replace the 4.0 bootstrap
remove the declaration from your html
and it works fine
I just tested it
Anh Nguyen
@tiremon112
Mar 05 2017 05:11
@Manish-Giri later :wave: time for me to take some :zzz: :+1:
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:11
Screen Shot 2017-03-05 at 10.41.11 AM.png
JenimDacket
@JenimDacket
Mar 05 2017 05:11
I'm having trouble with the first project and getting my page to sit right. Is there anyone I can grab a private convo with for some help. My html should all be good at this point, just a matter of styling (maybe too many <div>'s, Idk)
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:11
@indefinite0212
Screen Shot 2017-03-05 at 10.41.40 AM.png
Dushyant Rao
@Dushyant-Rao
Mar 05 2017 05:12
@indefinite0212 : tried it applying before style but not working
Manish Giri
@Manish-Giri
Mar 05 2017 05:12
@tiremon112 good night sleep tight :wave: :zzz:
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:12
@Dushyant-Rao link to pen please
JenimDacket
@JenimDacket
Mar 05 2017 05:12
:'(
Dushyant Rao
@Dushyant-Rao
Mar 05 2017 05:12
@heroiczero how do i link it? thats where i got stuck
Tiffany
@tiffanymakes
Mar 05 2017 05:13
@indefinite0212 you can also remove the Google Font code from your HTML and add it to your CSS section using @import url('https://fonts.googleapis.com/css?family=Lobster');
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:13
I mean just copy the url of your pen and paste here
heroiczero
@heroiczero
Mar 05 2017 05:13
@Dushyant-Rao use font-family:Lobster; in css or <style> or something like that
Dushyant Rao
@Dushyant-Rao
Mar 05 2017 05:15
@heroiczero : i tried in <style> it got imported, applying it to my heading is not working
JenimDacket
@JenimDacket
Mar 05 2017 05:15
help plz
heroiczero
@heroiczero
Mar 05 2017 05:16
@Dushyant-Rao lets see your code
james umali
@indefinite0212
Mar 05 2017 05:16
@Vinayswami91 @tiffanymakes haha thanks :) :)
CamperBot
@camperbot
Mar 05 2017 05:16
indefinite0212 sends brownie points to @vinayswami91 and @tiffanymakes :sparkles: :thumbsup: :sparkles:
:cookie: 252 | @vinayswami91 |http://www.freecodecamp.com/vinayswami91
:cookie: 312 | @tiffanymakes |http://www.freecodecamp.com/tiffanymakes
james umali
@indefinite0212
Mar 05 2017 05:16
@Dushyant-Rao post your code here
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:16
Screen Shot 2017-03-05 at 10.46.05 AM.png
@Dushyant-Rao href the google font there
in head
Dushyant Rao
@Dushyant-Rao
Mar 05 2017 05:16

@Vinayswami91 :

<style>


.red-text {
color: red;
}

p {
font-size: 16px;
font-family: Monospace;
}

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

</style>

<h2 font-family: Lobster;><h2 class="red-text">CatPhotoApp</h2>

Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:17
no don't put it in style
Dushyant Rao
@Dushyant-Rao
Mar 05 2017 05:17
that h2 font-family: lobster is a wrong code. I just gave a try
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:17
are you using codepen?
Sorin Ruse
@sorinr
Mar 05 2017 05:17
@JenimDacket if u can share the pen link to see the code maybe we can help you
james umali
@indefinite0212
Mar 05 2017 05:17

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
h2{
</style>

heroiczero
@heroiczero
Mar 05 2017 05:17
@Dushyant-Rao font-family is a attribute in style
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:18

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
h2{
</style>

Dushyant Rao
@Dushyant-Rao
Mar 05 2017 05:18
how do i do that codepen? sorry i am very new to this. just joined today
Gulsvi
@gulsvi
Mar 05 2017 05:18
@Dushyant-Rao What part of it?
Dushyant Rao
@Dushyant-Rao
Mar 05 2017 05:18
@Vinayswami91 : did that .. will try once more for your sake :)
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:18

<head>

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
</head>

<style>
h2{
font-family: 'lobster';
}
</style>

<body>

and then use it
^^ Welcome tutorial may help :)
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:19
yeah that's the easiest way to do your coding
^
Dushyant Rao
@Dushyant-Rao
Mar 05 2017 05:19
@SkyCoder01 : thanks .. i will remember that one !!!
CamperBot
@camperbot
Mar 05 2017 05:19
dushyant-rao sends brownie points to @skycoder01 :sparkles: :thumbsup: :sparkles:
:cookie: 444 | @skycoder01 |http://www.freecodecamp.com/skycoder01
JenimDacket
@JenimDacket
Mar 05 2017 05:21
@sorinr Give me a sec to figure out how to post my pen
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:21
just copy the url
Dushyant Rao
@Dushyant-Rao
Mar 05 2017 05:21
@Vinayswami91 : that solved my problem. Guess i missed a code or few codes while typing. Thanks for the help !!!
CamperBot
@camperbot
Mar 05 2017 05:21
dushyant-rao sends brownie points to @vinayswami91 :sparkles: :thumbsup: :sparkles:
:cookie: 253 | @vinayswami91 |http://www.freecodecamp.com/vinayswami91
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:21
and post it :)
No problem! @Dushyant-Rao
Sorin Ruse
@sorinr
Mar 05 2017 05:22
@JenimDacket if you work locally just create a new pen and copy paste your local code to corresponding sections of the pen. html to html, css to css etc
JenimDacket
@JenimDacket
Mar 05 2017 05:27

<p data-height="265" data-theme-id="0" data-slug-hash="mWEJVg" data-default-tab="html,result" data-user="RNGezus" data-embed-version="2" data-pen-title="CSS Penny" class="codepen">See the Pen <a href="https://codepen.io/RNGezus/pen/mWEJVg/">CSS Penny</a> by Evan Chiles (<a href="http://codepen.io/RNGezus">@RNGezus</a>) on <a href="http://codepen.io">CodePen</a>.</p>

<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>

Will this do?
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:29
What is your issue again?
for future reference
that's the pen url
Daniel
@Dutchie1990
Mar 05 2017 05:31

<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
`<p class="navbar-text">Daniel Boone</p>
</div>
<ul class="nav navbar-nav navbar-right">
<li><a href="about">About</a></li>
<li><a href="portfolio">Portfolio</a></li>
<li><a href="contact">Contact</a></li>
</ul>
</div>
</nav>

<section id="about" class="about">xx</section>

<section id="portfolio">xx</section>

<section id="contact">xx</section>

<footer id="footer">xx</footer>`

JenimDacket
@JenimDacket
Mar 05 2017 05:32
Before I start with my issues, can I just copy and paste that link and reuse in future
Daniel
@Dutchie1990
Mar 05 2017 05:32
Why if i want to navigate they said page dont exist
Ai rui 艾瑞
@aisolae
Mar 05 2017 05:32
is there anyway to understand Callback functions better, seems confusing to me
jasonghent98
@jasonghent98
Mar 05 2017 05:34
trying to "nest my text input element within a form element". nyone catch what's wrong? I'm new to coding.
<form action="/submit-cat-photo"</form>
<input type="text" placeholder="cat photo
<input type="text" placeholder="cat photo URL"> **
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:35
@Dutchie1990 in the href tags you have to add a # when referring to an id, like #about #contact
heroiczero
@heroiczero
Mar 05 2017 05:36

@jasonghent98

<div>
   <img>
</div>

img is nested in div

jasonghent98
@jasonghent98
Mar 05 2017 05:36
(ignore the 2nd one)
Daniel
@Dutchie1990
Mar 05 2017 05:36
Thanks a lot @Vinayswami91
CamperBot
@camperbot
Mar 05 2017 05:36
dutchie1990 sends brownie points to @vinayswami91 :sparkles: :thumbsup: :sparkles:
:cookie: 254 | @vinayswami91 |http://www.freecodecamp.com/vinayswami91
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:36
np :)
heroiczero
@heroiczero
Mar 05 2017 05:36
@jasonghent98 now nest <input> in <form>
nihaljalal
@nihaljalal
Mar 05 2017 05:37
<div><p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol></div>
what is the use of div element here i could just use the p elemnt itself
why should i nest it with div?
Manish Giri
@Manish-Giri
Mar 05 2017 05:38
@nihaljalal div groups elements
monkeypod
@monkeypod
Mar 05 2017 05:38

I have many similar buttons I am trying to put in my project.

Can I:

<Style>
.button-one {
class="btn
}
</style>

<button class="button-one">Button One</button>

nihaljalal
@nihaljalal
Mar 05 2017 05:39
can u be much more clearer? @Manish-Giri
heroiczero
@heroiczero
Mar 05 2017 05:40
@nihaljalal div makes a box and all the content is in the box so you can make borders or float it right or left
Sorin Ruse
@sorinr
Mar 05 2017 05:40
@aisolae callbacks are like you are calling someone on the phone it doesn't answer for the moment, you leave the message "plz call me back asap" and he/she will call you back when available. same with ajax calls. you send the request and maybe will get the answer later so you instruct a function(called a callback function) to take care of the response when you get it :)
jasonghent98
@jasonghent98
Mar 05 2017 05:40
@heroiczero so I need to nest the entire
(<input type="text" placeholder="cat photo URL">) within the form element?
heroiczero
@heroiczero
Mar 05 2017 05:40
@nihaljalal you can even center that box called a div
JenimDacket
@JenimDacket
Mar 05 2017 05:40
@sorinr @Vinayswami91 The issue I am having is a matter of lining up and setting each of the sub elements (specifically the children of the .body-text1, 2, & 3, respectively). I would like the .quote & .text of each of those parents to be horizontally adjacent while still sitting inside of the greater container, (w/in the grey background)
heroiczero
@heroiczero
Mar 05 2017 05:41
@jasonghent98 yes similar to my example :point_up: March 5, 2017 12:36 AM
nihaljalal
@nihaljalal
Mar 05 2017 05:41
@heroiczero thanks!
CamperBot
@camperbot
Mar 05 2017 05:41
nihaljalal sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:cookie: 929 | @heroiczero |http://www.freecodecamp.com/heroiczero
nihaljalal
@nihaljalal
Mar 05 2017 05:41
bye,gotta code
btw what is brownie point?
JenimDacket
@JenimDacket
Mar 05 2017 05:42
@sorinr @Vinayswami91 Also, I would like each of those .body-text blocks to be stacked one on top of the other vertically. (.body-text1 above .body-text2 above .body-text3) I hope I am explaining this well enough.. /=
jasonghent98
@jasonghent98
Mar 05 2017 05:44
I'm attempting to do so but when it still registers as incorrect @heroiczero
heroiczero
@heroiczero
Mar 05 2017 05:45
@jasonghent98 lets see your code again
'''
CamperBot
@camperbot
Mar 05 2017 05:47
:bulb: to format code use backticks! ``` more info
heroiczero
@heroiczero
Mar 05 2017 05:48
@jasonghent98 :point_up: March 5, 2017 12:47 AM thats how you format code in chat
jasonghent98
@jasonghent98
Mar 05 2017 05:49

@heroiczero

<input type="text" placeholder="cat photo URL">
</form>

<form>
<input type="text" placeholder="cat photo URL">
</form>
So it now says that I nested it, but now it says that my form needs an action attribute which is set to /submit-cat-photo , which I already had, but I can't seem to find a way to nest it and have a form attribute at the same time
heroiczero
@heroiczero
Mar 05 2017 05:51

@jasonghent98

<form action="">
<input type="text" placeholder="cat photo URL"/>
</form>

action is a attribute of form

Xi
@yuman959
Mar 05 2017 05:51
Hi! I’m on the Weather API project. I’m using this API https://openweathermap.org/current Question is how can I output the weather icon as a graphic element rather than just the weather icon id (data.weather[0].icon)? Thanks!
Sorin Ruse
@sorinr
Mar 05 2017 05:52
@jasonghent98 <form action="your needed action in here">
jasonghent98
@jasonghent98
Mar 05 2017 05:55
@heroiczero Got it! My issue wasn't the concept, but the syntax was wrong. I feel like that's the hardest part of this whole thing
Thanks!
Sorin Ruse
@sorinr
Mar 05 2017 05:55
@yuman959 if you want nice weather icons suited for openweather api you can find them in here: https://erikflowers.github.io/weather-icons/api-list.html they already have mappings for this api library
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 05:59

@JenimDacket its very clear what you want, and the way to do it is a bootstrap grid.

<div class="container-fluid">
<div class="row">
<div class="col-xs-12"><p class="text-center">content1</p></div> <!--fully spanning the container and stacking-->
</div>
<div class="row">
<div class="col-xs-12"><p class="text-center">content2</p></div> <!--fully spanning the container and stacking-->
</div>
<div class="row">
<div class="col-xs-6"><p class="text-center">content3</p></div>. <!-- These divs will be side to side -->
<div class="col-xs-6"><p class="text-center">content4</p></div> <!-- These divs will be side to side -->
</div>
</div>

please use that in the css settings for bootstrap, the one provided by default in codepen doesn't work proeprly
Screen Shot 2017-03-05 at 10.41.40 AM.png
I've implemented it in my tribute page, if you want an example of what I said
JenimDacket
@JenimDacket
Mar 05 2017 06:04
@Vinayswami91 Thank you so much man. That makes total sense.
CamperBot
@camperbot
Mar 05 2017 06:04
jenimdacket sends brownie points to @vinayswami91 :sparkles: :thumbsup: :sparkles:
:cookie: 255 | @vinayswami91 |http://www.freecodecamp.com/vinayswami91
Vinay Swaminathan
@Vinayswami91
Mar 05 2017 06:05
:+1:
Samuel Clarke
@Samuel-Clarke123
Mar 05 2017 06:09
can anybody help me with the wherefore art thou challenge
Shusil Banjade
@shusil123
Mar 05 2017 06:10
@KingTide44 , Post the code here.
Johnny vo
@jphivo
Mar 05 2017 06:13
Hello, Can someone help me with Script element?
is this how I write it: <script $(document). ready(function() { });
Shusil Banjade
@shusil123
Mar 05 2017 06:14
@jphivo , Can you elaborate your problem? (Or Paste the code here)
Samuel Clarke
@Samuel-Clarke123
Mar 05 2017 06:14
atm its
function whatIsInAName(collection, source) {
  // What's in a name?
  var arr = [];
  // Only change code below this line


  for(var test in collection) {
    for(var name in source) {
      if(collection[test].hasOwnProperty(name)) {
        var keys = Object.keys(collection[test]);
        for(var i = 0; i < keys.length; i++) {
          console.log(collection[test]);
        }
        //console.log(collection[test].keys[0]);
      }
    }
  }

  // Only change code above this line
  return arr;
}

whatIsInAName([{ first: "Romeo", last: "Montague" }, { first: "Mercutio", last: null }, { first: "Tybalt", last: "Capulet" }], { last: "Capulet" });
Johnny vo
@jphivo
Mar 05 2017 06:15
@shusil123 <script $(document). ready(function() { });
Samuel Clarke
@Samuel-Clarke123
Mar 05 2017 06:15
i keep trying to access collection[test].keys[i] but obviously thats actually just trying to access
collection[test].keys[i] which is undefined
Johnny vo
@jphivo
Mar 05 2017 06:15
is this correct?
Shusil Banjade
@shusil123
Mar 05 2017 06:16
@jphivo , Where is the close of <script. Write it like this: <script>$(document).ready(function() { })</script>
Tanner Jack
@Knifetanner2
Mar 05 2017 06:16

Been having some problems with this and can't figure it out. Can whoever helps me out also explain it?
var myStr; '"FirstLine" \n \SecondLine\ \r ThirdLine'
Here's the instrutions: Assign the following three lines of text into the single variable myStr using escape sequences.

FirstLine \SecondLine\ ThirdLine
You will need to use escape sequences to insert special characters correctly. You will also need to follow the spacing as it looks above, with no spaces between escape sequences or words.

Here is the text with the escape sequences written out.

FirstLine newline backslash SecondLine backslash carriage-return ThirdLine

Malic
@mamarman
Mar 05 2017 06:17
help ME!! - Your image should be 100 pixels wide. Browser zoom should be at 100% I'm set width 100px and zoom 100%
Johnny vo
@jphivo
Mar 05 2017 06:17
@shusil123 Thank you, that was very helpful.
CamperBot
@camperbot
Mar 05 2017 06:17
jphivo sends brownie points to @shusil123 :sparkles: :thumbsup: :sparkles:
:cookie: 767 | @shusil123 |http://www.freecodecamp.com/shusil123
Shusil Banjade
@shusil123
Mar 05 2017 06:17
@jphivo , :+1:
@mamarman , Can You Paste the code here?
Malic
@mamarman
Mar 05 2017 06:18

@shusil123 <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}


h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}
smaller-image{
width: 100px;
zoom: 100%;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<img class="smaller-image" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Samuel Clarke
@Samuel-Clarke123
Mar 05 2017 06:19
fixed it, needed square brackets @shusil123
Shusil Banjade
@shusil123
Mar 05 2017 06:19

@mamarman , Here is the problem:

smaller-image{
width: 100px;
zoom: 100%;
}

First you are styling the class , so .smaller-image should be the selector. Second , You don't need this : zoom: 100%

Samuel Clarke
@Samuel-Clarke123
Mar 05 2017 06:19
as in console.log(collection[test][keys[0]]);
Shusil Banjade
@shusil123
Mar 05 2017 06:20
@KingTide44 . good. Accessing object properties with square brackets.
Hye Jin Irene Lee
@irenepark97
Mar 05 2017 06:20
hello
i don't understand this part
Your stylesheet should declare a red-text class and have its color set to red.

<style>
h2 {
color:red;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Malic
@mamarman
Mar 05 2017 06:20
@shusil123 thank
CamperBot
@camperbot
Mar 05 2017 06:20
mamarman sends brownie points to @shusil123 :sparkles: :thumbsup: :sparkles:
:cookie: 768 | @shusil123 |http://www.freecodecamp.com/shusil123
Shusil Banjade
@shusil123
Mar 05 2017 06:20
@mamarman , :+1:
@irenepark97 , Read the description on the left side of your challenge. We declare classes in the styles like this: .class_name {color: color_name;}.
Samuel Clarke
@Samuel-Clarke123
Mar 05 2017 06:22
@shusil123 now i gotta do some looping to access for each of the elements. the amount of nested loops is getting bloody crazy
Shusil Banjade
@shusil123
Mar 05 2017 06:22
In your case, the class_name is red-text and the , name of the color is red. @irenepark97
dmrcc
@dmrcc
Mar 05 2017 06:23
hi, how can i change the pixel of an image?
Shusil Banjade
@shusil123
Mar 05 2017 06:23
@dmrcc , The Pixel ??
JenimDacket
@JenimDacket
Mar 05 2017 06:23
@dmrcc Like the dimensions?
Samuel Clarke
@Samuel-Clarke123
Mar 05 2017 06:23
@shusil123 actually, just noticed im already looping, now im confused as to why it wont properly return, any ideas?
ps code
  for(var test in collection) {
    for(var name in source) {
      console.log(source[name]);
      if(collection[test].hasOwnProperty(name)) {
        var keys = Object.keys(collection[test]);
        for(var i = 0; i < keys.length; i++) {
          if(collection[test][keys[i]] == source[name]) {
            arr.push(collection[test]);
          }
        }
      }
    }
  }
dmrcc
@dmrcc
Mar 05 2017 06:24
@shusil123 @JenimDacket the task is:Create a class called smaller-image and use it to resize the image so that it's only 100 pixels wide.
Shusil Banjade
@shusil123
Mar 05 2017 06:25
@dmrcc , Carefully read the challenge description on the left side. You just have to set the width of the image to 100px
dmrcc
@dmrcc
Mar 05 2017 06:25

where do i make the mistake?

<style>

<img src="smaller-image width: 100px;">
}
</style>

Shusil Banjade
@shusil123
Mar 05 2017 06:25
@dmrcc , <img src="smaller-image width: 100px;"> goes below </style>, because it's an html element
And assign the class of smaller-image. It's not the source. Like this: <img src="" class="smaller-image">. And then between style tags, style that class. .smaller-image {width: 100px;}
Like that.
Samuel Clarke
@Samuel-Clarke123
Mar 05 2017 06:27
<img class="smaller-image"> </img>

<style> 
.smaller-image {
  width: 100px;
}
</style>
just to explain more practically
src="" is to give the img a reference to a file name, eg: cat.jpg
Shusil Banjade
@shusil123
Mar 05 2017 06:29
@KingTide44 , Actually what you're doing is still wrong. img is an empty element so you don't need closing </img>. Only <img class="smaller-image"> works. And <img class="smaller-image"> should be written below the closing </style>.
anfusion
@anfusion
Mar 05 2017 06:29
'test'
JenimDacket
@JenimDacket
Mar 05 2017 06:29
Question:
Shusil Banjade
@shusil123
Mar 05 2017 06:29
That's the convention, We write styles in the head part and then below , the html . @KingTide44
JenimDacket
@JenimDacket
Mar 05 2017 06:30
Is there a way to adjust the default width of columned elements when using bootstrap?
I have an element with .col-xs-5 but I cannot seem to get it to fill more of its assigned column space.
Muhammad Bilal
@Muhammad07
Mar 05 2017 06:32
What is negative margin please guide me a little
Shusil Banjade
@shusil123
Mar 05 2017 06:32
@KingTide44 , It's properly returning in my case. Probably try to refresh your browser.
Isabelle
@isabellemao
Mar 05 2017 06:33
With a negative margin, the element gets larger @Muhammad07
Muhammad Bilal
@Muhammad07
Mar 05 2017 06:33
@isabellemao Why it get larger.?
Isabelle
@isabellemao
Mar 05 2017 06:34
because a higher margin means more distance between the border and surrounding elements
so a negative margin means less
Shusil Banjade
@shusil123
Mar 05 2017 06:34
@Muhammad07 , Opposite to the positive margin: margin-top: -5px; moves the element 5px top. whereas, margin-top: 5px; moves the element 5px below.
Muhammad Bilal
@Muhammad07
Mar 05 2017 06:34
@isabellemao Oh! Thanks
CamperBot
@camperbot
Mar 05 2017 06:34
:cookie: 66 | @isabellemao |http://www.freecodecamp.com/isabellemao
muhammad07 sends brownie points to @isabellemao :sparkles: :thumbsup: :sparkles:
Muhammad Bilal
@Muhammad07
Mar 05 2017 06:35
@shusil123 thanks mate.!
CamperBot
@camperbot
Mar 05 2017 06:35
muhammad07 sends brownie points to @shusil123 :sparkles: :thumbsup: :sparkles:
:cookie: 769 | @shusil123 |http://www.freecodecamp.com/shusil123
Shusil Banjade
@shusil123
Mar 05 2017 06:35
@Muhammad07 , :+1:
dmrcc
@dmrcc
Mar 05 2017 06:36

@KingTide44 It didn't work :/ Where do i make the mistake?Your img element should have the class smaller-image
<img class ="smaller-image"> </img>

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>

.smaller-image {
width: 100px;
}
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

</style>

<h2 class="red-text">CatPhotoApp</h2>

<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Hye Jin Irene Lee
@irenepark97
Mar 05 2017 06:38
thank you!!
Isabelle
@isabellemao
Mar 05 2017 06:38
change <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "> to <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. " class = "smaller-image">
Hye Jin Irene Lee
@irenepark97
Mar 05 2017 06:38
@shusil123
thank you
Shusil Banjade
@shusil123
Mar 05 2017 06:38
@dmrcc , remove this: <img class ="smaller-image"> </img>. And assign the class of smaller-image to your already existent img element.
@dmrcc , This: <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "> should be changed to
<img src="https://bit.ly/fcc-relaxing-cat" class="smaller-image" alt="A cute orange cat lying on its back. ">
@irenepark97 , :+1:
Gotta go. Code on guys.
dmrcc
@dmrcc
Mar 05 2017 06:42
you'r awesome @shusil123 ! Massive thanks!
CamperBot
@camperbot
Mar 05 2017 06:42
dmrcc sends brownie points to @shusil123 :sparkles: :thumbsup: :sparkles:
:cookie: 770 | @shusil123 |http://www.freecodecamp.com/shusil123
Ai rui 艾瑞
@aisolae
Mar 05 2017 06:51
i need help with javascrip
<button onclick="clickME()">click here</button>

function clickMe() {
alert('you clicked me');

}

can't seem to figure out why that isn't running
the first is on html while the function is on js file
got it
badalsaibo
@heyDante
Mar 05 2017 06:59
@aisolae clickMe
Samuel Clarke
@Samuel-Clarke123
Mar 05 2017 07:04
anyone got an idea on what im doing wrong here in the wherefore art thou test
 getsize = function(obj) {
    var size = 0, key;
    for (key in obj) {
        if (obj.hasOwnProperty(key)) size++;
    }
    return size;
  };

  for(var test in collection) {
    var score = 0;

    for(var name in source) {

      if(collection[test].hasOwnProperty(name)) {

        var keys = Object.keys(collection[test]);

        for(var i = 0; i < keys.length; i++) {
          if(collection[test][keys[i]] == source[name]) {
            score++;
          }
        }

      }
    }
    if(score == getsize(source)) {
      arr.push(collection[test]);
    }
  }
Ai rui 艾瑞
@aisolae
Mar 05 2017 07:10
@heyDante thanks
CamperBot
@camperbot
Mar 05 2017 07:10
aisolae sends brownie points to @heydante :sparkles: :thumbsup: :sparkles:
:cookie: 518 | @heydante |http://www.freecodecamp.com/heydante
Ai rui 艾瑞
@aisolae
Mar 05 2017 07:10
<button onclick="clickMan(doMore)">click here</button>

function clickMan(callback) {
alert('you click me!');
if (callback) {
callback();
}
}

function doMore(){
alert('i could process more logic here');
}

how about that?
Linmkee
@Linmkee
Mar 05 2017 07:11

<input type="text" placeholder="cat photo URL">

<form action="/submit-cat-photo"></form>

I have a problem with the code above
it says I need to next the text input within a form element??
Isabelle
@isabellemao
Mar 05 2017 07:12
try
<form action="/submit-cat-photo"><input type="text" placeholder="cat photo URL"></form>
like, putting the input between the form opening and closing tag
Linmkee
@Linmkee
Mar 05 2017 07:14
Ok thanks Isabelle
Ai rui 艾瑞
@aisolae
Mar 05 2017 07:16
really feels annoying if a code is working and next minutes, it stops working
want to punch through my pc now
HN
@haydennorthcott
Mar 05 2017 07:17
I know the feeling. Or throw a hammer at it! Refresh?
Sahil Mangotra
@Sahil624
Mar 05 2017 07:17
Hello, Everyone. I was having a problem with ajax function and trust me I am frustrated with it. I get an error in console that Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://en.wikipedia.org/w/api.php?action=opensearch&search=sahil&format=json&callback=?. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). I did a lot of research but could not find solution please anyone can help. :)
In the Wikipedia viewer project
Can anyone help
Xi
@yuman959
Mar 05 2017 07:19
Hi, I have a simple question: when I use slash in http:// in my code, I always comment out the rest of the code because of the slashes. How can I make sure I don’t comment out the code with the slash?
Sahil Mangotra
@Sahil624
Mar 05 2017 07:20
Actully most of the time url are in string format so they are usually put in double qoutes or single @yuman959
can you specify the case in which are you using
HN
@haydennorthcott
Mar 05 2017 07:24
@isabellemao
Thanks! I was having the same problem.
CamperBot
@camperbot
Mar 05 2017 07:24
haydennorthcott sends brownie points to @isabellemao :sparkles: :thumbsup: :sparkles:
:cookie: 77 | @isabellemao |http://www.freecodecamp.com/isabellemao
lambda13
@lambda13
Mar 05 2017 07:37
Hello
I need some help at the use css selectors one
Isabelle
@isabellemao
Mar 05 2017 07:39
Post your problem!
badalsaibo
@heyDante
Mar 05 2017 07:40
@yuman959 You still stuck?
Xi
@yuman959
Mar 05 2017 07:41
@heyDante I used the single quotes and it worked. Thanks Badal!
CamperBot
@camperbot
Mar 05 2017 07:41
yuman959 sends brownie points to @heydante :sparkles: :thumbsup: :sparkles:
:cookie: 520 | @heydante |http://www.freecodecamp.com/heydante
badalsaibo
@heyDante
Mar 05 2017 07:42
good for you :smile:
@JurekRutkowski Welcome!
lambda13
@lambda13
Mar 05 2017 07:43
I just cant advance i do everything it says on the requirements to pass the thing and i just dont pass
badalsaibo
@heyDante
Mar 05 2017 07:43
@lambda13 Can you be more specific? Like which code, what objective?
Bernard
@Troy420
Mar 05 2017 07:45
hey guys! how to put "<link href="https://fonts.googleapis.com/css?family=Pacifico" rel="stylesheet"> " inside codepen?
badalsaibo
@heyDante
Mar 05 2017 07:45
@Troy420 copy it to the top of your html code
lambda13
@lambda13
Mar 05 2017 07:46
Rekove the style element from your h2
Element
That one is done
badalsaibo
@heyDante
Mar 05 2017 07:48
which one is unticked then?
lambda13
@lambda13
Mar 05 2017 07:48
Then create a style element your h2 element should be blue
Bernard
@Troy420
Mar 05 2017 07:49
@heyDante that doesnt work
badalsaibo
@heyDante
Mar 05 2017 07:50
how did you confirm it doesn't work?
lambda13
@lambda13
Mar 05 2017 07:50
Ensure that your stylesheet h2 declaration is valid with a semicolon and closing brace.
Make sure all your style elements are valid and have a closing tag.
badalsaibo
@heyDante
Mar 05 2017 07:50
@lambda13 Can I see your code?
lambda13
@lambda13
Mar 05 2017 07:51
Ok
Bernard
@Troy420
Mar 05 2017 07:51
okay nevermind, i got it
haha
badalsaibo
@heyDante
Mar 05 2017 07:52
lol that
lambda13
@lambda13
Mar 05 2017 07:53

<h2>CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

<style>

H2 {color: blue;}

<\style>

badalsaibo
@heyDante
Mar 05 2017 07:54
@lambda13 html is case-sensitive. H2 should be h2
lambda13
@lambda13
Mar 05 2017 07:54
It id the beginning stuff i am just a beginner on all of thid
Oh thanks
badalsaibo
@heyDante
Mar 05 2017 07:55
Even a cub is a lion, remember that. :smile:
lambda13
@lambda13
Mar 05 2017 07:56
Uhm nothing happened
I am still stuck
badalsaibo
@heyDante
Mar 05 2017 07:57
reset your code and try again.
I've seen you have altered the position of <style> elements
lambda13
@lambda13
Mar 05 2017 07:57
Yeah i was just did that
Does that changr something?
badalsaibo
@heyDante
Mar 05 2017 07:58
But still it should work.
JurekRutkowski
@JurekRutkowski
Mar 05 2017 07:58
@heyDante Thank you for your welcome, I only saw it just now :P
CamperBot
@camperbot
Mar 05 2017 07:58
jurekrutkowski sends brownie points to @heydante :sparkles: :thumbsup: :sparkles:
:cookie: 521 | @heydante |http://www.freecodecamp.com/heydante
badalsaibo
@heyDante
Mar 05 2017 07:58
Nevermind just reset and try again.
@JurekRutkowski no problem bud :smile:
JurekRutkowski
@JurekRutkowski
Mar 05 2017 07:59
Probably because I was only in the other channel, I entered this one just now :)
Johnny
@JohnnyBizzel
Mar 05 2017 07:59

@lambda13 html is case-sensitive. H2 should be h2

:x:

http://codepen.io/JohnnyBizzel/pen/vxKrjw

badalsaibo
@heyDante
Mar 05 2017 08:00
@JohnnyBizzel wow. thanks man
CamperBot
@camperbot
Mar 05 2017 08:00
heydante sends brownie points to @johnnybizzel :sparkles: :thumbsup: :sparkles:
:star2: 1418 | @johnnybizzel |http://www.freecodecamp.com/johnnybizzel
mohit sharma
@shmohit2002
Mar 05 2017 08:00
i have a problem while inserting google font
Johnny
@JohnnyBizzel
Mar 05 2017 08:01
@heyDante JavaScript and CSS definitions are but HTML is not.
lambda13
@lambda13
Mar 05 2017 08:01
Oh found the error i putted \ instead of /
:P
badalsaibo
@heyDante
Mar 05 2017 08:02
@JohnnyBizzel I need to learn more haha
@lambda13 good for you.
mohit sharma
@shmohit2002
Mar 05 2017 08:03
i have a problem while inserting google font can anyone help me
badalsaibo
@heyDante
Mar 05 2017 08:04
@shmohit2002 You imported the link to your html code?
mohit sharma
@shmohit2002
Mar 05 2017 08:06
i dont know where to add the code
badalsaibo
@heyDante
Mar 05 2017 08:08
copy it to the top of your html code
mohit sharma
@shmohit2002
Mar 05 2017 08:09
top of it??
Alperen
@alperenAsa
Mar 05 2017 08:11
@shmohit2002 you can use this site https://jsfiddle.net/
Copy your code this site
mohit sharma
@shmohit2002
Mar 05 2017 08:12
@heyDante thanks bro
CamperBot
@camperbot
Mar 05 2017 08:12
shmohit2002 sends brownie points to @heydante :sparkles: :thumbsup: :sparkles:
:cookie: 522 | @heydante |http://www.freecodecamp.com/heydante
Bernard
@Troy420
Mar 05 2017 08:20
@shmohit2002 go into settings>HTML tab. put it under stuff for <head>
Daniel
@Dutchie1990
Mar 05 2017 08:20
@Dutchie1990
how to make the width of the webpage responsive?
I have different sections but when i alter my screen size those sections arent not the format at full screen any more
Sandeep Chary
@dsandeepchary
Mar 05 2017 08:21
use media queries
@Dutchie1990
Daniel
@Dutchie1990
Mar 05 2017 08:21
Is this hard to implement?
Because i am just beginning
David Martin Rehle
@daveyx
Mar 05 2017 08:23
@Dutchie1990 not hard to implement, try bootstrap
Daniel
@Dutchie1990
Mar 05 2017 08:23
I am working with bootstrap collums but they still not responsive
David Martin Rehle
@daveyx
Mar 05 2017 08:24
pm me
mohamedsaieed
@mohamedsaieed
Mar 05 2017 08:25
need help pls

var Car = function() {
// this is a private variable
var speed = 10;

// these are public methods
this.accelerate = function(change) {
speed += change;
};

this.decelerate = function() {
speed -= 5;
};

this.getSpeed = function() {
return speed;
};
};

var Bike = function() {

// Only change code below this line.
//this is a private variable
var gear = 0;

//public methods
this.setGear= function(switchGear) {
gear += switchGear;
};

this.getGear = function() {
return gear;
};

};

var myCar = new Car();

var myBike = new Bike();

Manish Giri
@Manish-Giri
Mar 05 2017 08:25
@mohamedsaieed gear += switchGear;
remove +=, put in =
mohamedsaieed
@mohamedsaieed
Mar 05 2017 08:26
@Manish-Giri thx man
CamperBot
@camperbot
Mar 05 2017 08:26
mohamedsaieed sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 4596 | @manish-giri |http://www.freecodecamp.com/manish-giri
Muhammad Bilal
@Muhammad07
Mar 05 2017 08:39
anyone there want some help?
Iman
@imananordin
Mar 05 2017 08:40
I do! @Muhammad07
Such a simple thing I can't get right:

<style>
.red-text {
color: red;
}
p {
font-size: 16px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

<p2>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p2>

I know I'm doing something wrong, I don't know what.
Muhammad Bilal
@Muhammad07
Mar 05 2017 08:41
there is no <p2> Tag
You can only use <p> tag
We can use this for paragraph <p>
TappeiocaMPLS
@TappeiocaMPLS
Mar 05 2017 08:43

<img src="https://www.your-image-source.com/your-image.jpg" alt="Author standing on a beach with two thumbs up. ">

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

its saying i need a src attribute
Muhammad Bilal
@Muhammad07
Mar 05 2017 08:44
use "img Tag After </style>
tordid93
@tordid93
Mar 05 2017 08:44
Having trouble with this! Make sure you have nested all HTML elements in .container-fluid.
Karthik Nallasivan
@furball514
Mar 05 2017 08:45
http://codepen.io/furball/pen/LWNMwr why isn't my adios get requests working
Axios*
blacknightflame
@blacknightflame
Mar 05 2017 08:47
help i'm new to this and i'm stuck on the part where you first add images to you cat app please help
Jeevan Karumudi
@yuvainetristan09
Mar 05 2017 08:48
@blacknightflame
what is the problem?
use <img> element
blacknightflame
@blacknightflame
Mar 05 2017 08:49
i'm stuck on how to insert my img src
Iman
@imananordin
Mar 05 2017 08:49
@Muhammad07 I realized that after I posted it ha. Thank you!
CamperBot
@camperbot
Mar 05 2017 08:49
imananordin sends brownie points to @muhammad07 :sparkles: :thumbsup: :sparkles:
:cookie: 65 | @muhammad07 |http://www.freecodecamp.com/muhammad07
Iman
@imananordin
Mar 05 2017 08:50
Y'all this coding thing is pretty fun
Jeevan Karumudi
@yuvainetristan09
Mar 05 2017 08:50
src is used to place the actual image link
<img src="www.googleimage.com" alt="describe image here">
hope it helps
blacknightflame
@blacknightflame
Mar 05 2017 08:50
thank you
Theophilus
@everydaysmarter
Mar 05 2017 08:57
Your a element should be a dead link with a href attribute set to "#"
i need help i this one , as already replaced the Href into # nut have problme
h1tag
@h1tag
Mar 05 2017 09:02
@everydaysmarter not replace href itself, but its value, the one between " "
Theophilus
@everydaysmarter
Mar 05 2017 09:04
@fortMaximus Thank you, i thought replace Href and some how will make it an dead Link.
CamperBot
@camperbot
Mar 05 2017 09:04
everydaysmarter sends brownie points to @fortmaximus :sparkles: :thumbsup: :sparkles:
:cookie: 542 | @fortmaximus |http://www.freecodecamp.com/fortmaximus
r2d2
@UsamaHameed
Mar 05 2017 09:04
Can someone help with react?
Bernard
@Troy420
Mar 05 2017 09:04
how search image in codepen?
h1tag
@h1tag
Mar 05 2017 09:05
@everydaysmarter I love ur user name
@Troy420 what??
Bernard
@Troy420
Mar 05 2017 09:05
how to use search images in <img src
i want to upload PNG from my dekstop
Theophilus
@everydaysmarter
Mar 05 2017 09:06
@fortMaximus thank you , still learning . hope i can really become a devloper as . i pay people to do it for me . but they had made alot of problem for me . at the end of the day i have to learn myself so i can check their codes.
CamperBot
@camperbot
Mar 05 2017 09:06
everydaysmarter sends brownie points to @fortmaximus :sparkles: :thumbsup: :sparkles:
:warning: everydaysmarter already gave fortmaximus points
h1tag
@h1tag
Mar 05 2017 09:07
@Troy420 upload it to this website: https://postimage.io/, and then copy the "Direct link" from there
Bernard
@Troy420
Mar 05 2017 09:07
@fortMaximus cool, thanks
CamperBot
@camperbot
Mar 05 2017 09:07
troy420 sends brownie points to @fortmaximus :sparkles: :thumbsup: :sparkles:
:cookie: 543 | @fortmaximus |http://www.freecodecamp.com/fortmaximus
"parsererror; Error: jsonpCallback was not called"
why?
Theophilus
@everydaysmarter
Mar 05 2017 09:08
<p>
Robbin Clemente
@djneebor
Mar 05 2017 09:11
how to create class pink-text? in css?

<style>
body {
background-color: black;
font-family: Monospace;
color: green;
pink-text color: pink;

}


</style>

<h1 class= pink-text>Hello World!</h1>

what am i doing wrong?
Joy
@bubblybee
Mar 05 2017 09:13
help please...
I'm at Size your Images stage and I can't move on.
It says that: Your img element should have the class smaller-image.
I did this:img {
width: 100px;
}
Kloth
@wilsonk536
Mar 05 2017 09:14
Hello everyone. Taking the initial steps in learning to code.
h1tag
@h1tag
Mar 05 2017 09:15
@djneebor you need to create the class in your CSS, between <style></style>
@bubblybee where's that class the challenge is ask you to create?
Joy
@bubblybee
Mar 05 2017 09:16
Your img element should have the class smaller-image.
Your image should be 100 pixels wide. Browser zoom should be at 100%.
I've done the 100 pixels thing but I don't get the smaller-image thing
h1tag
@h1tag
Mar 05 2017 09:17
@bubblybee yea, but the name of the class is wrong
name it like the challenge is asking you to do
Joy
@bubblybee
Mar 05 2017 09:18
it says i gotta do this
<style>
.larger-image {
width: 500px;
}
</style>
but when i do it both are wrong
h1tag
@h1tag
Mar 05 2017 09:18
no, this is an example to teach you how to do it
Your img element should have the class smaller-image
Joy
@bubblybee
Mar 05 2017 09:21
???????????i dont get it????
h1tag
@h1tag
Mar 05 2017 09:21
define the class smaller-image like the larger-imageclass example
that's it
and then use that class on your image element
Joy
@bubblybee
Mar 05 2017 09:24
wrong.
smaller-image {
width: 100px;
}.
h1tag
@h1tag
Mar 05 2017 09:25
you're missing a . before the class definition
Joy
@bubblybee
Mar 05 2017 09:26
it turns white
and nothing happens.
Gabe
@quixotepr
Mar 05 2017 09:26
I'm happy I found this.
h1tag
@h1tag
Mar 05 2017 09:26
show me the code again @bubblybee
Joy
@bubblybee
Mar 05 2017 09:27
.smaller-image {
width: 100px;
}
h1tag
@h1tag
Mar 05 2017 09:28
did you use it on the image element, like this class="your-class-name"
your-class-name is an example here
Joy
@bubblybee
Mar 05 2017 09:30
wut
h1tag
@h1tag
Mar 05 2017 09:30
wuttt
Joy
@bubblybee
Mar 05 2017 09:30
wut
what do you mean by use it on the image element??
h1tag
@h1tag
Mar 05 2017 09:35
like this class="class-name"
Joy
@bubblybee
Mar 05 2017 09:35
so, <img class="smaller-image">?
h1tag
@h1tag
Mar 05 2017 09:35
yes
Joy
@bubblybee
Mar 05 2017 09:36
inside the style?
h1tag
@h1tag
Mar 05 2017 09:37
:punch:
no, add class =... to the img in html
Joy
@bubblybee
Mar 05 2017 09:39
i dont get it
h1tag
@h1tag
Mar 05 2017 09:39
there's an image element in the html code (the one that isnt between the <style> tags), right?
Joy
@bubblybee
Mar 05 2017 09:40
ya
h1tag
@h1tag
Mar 05 2017 09:40
then you add the class to it like this <img class= "class-name" ...
Joy
@bubblybee
Mar 05 2017 09:41
but it already has src
i did it like <img class src:, didnt work
h1tag
@h1tag
Mar 05 2017 09:42
OK?
where's the class name after class????
class = "smaller-image"
class and src are different properties, each one has its use
it's like how you gave your h2 the class red-text

Joy
@bubblybee
Mar 05 2017 09:51
<img class="smaller-image" src:"https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
leikd at
h1tag
@h1tag
Mar 05 2017 09:51
src= not src:
Joy
@bubblybee
Mar 05 2017 09:53
i was wondering about that too
thanks
finished it now
Alperen
@alperenAsa
Mar 05 2017 09:59
Hello everybody i have a question for dead links
Joy
@bubblybee
Mar 05 2017 09:59
and im dying again.
Alperen
@alperenAsa
Mar 05 2017 09:59
<p>Click here for <a href="#">cat photos</a>.</p or <p>Click here for <a href=#>cat photos</a>.</p
Should it(#) be string or nonstring
David Martin Rehle
@daveyx
Mar 05 2017 10:00
@alperenAsa what is the question ?
Joy
@bubblybee
Mar 05 2017 10:01
help me too ;___;
David Martin Rehle
@daveyx
Mar 05 2017 10:01
<p>Click here for <a href="#">cat photos</a>. or Click here for <a href="#">cat photos</a>.</p> @alperenAsa is this what you want ?
@bubblybee pm me and provide a codepen
Alperen
@alperenAsa
Mar 05 2017 10:03
Ok @daveyx thank you. <a href="#"> is true but <a href=#> is false :+1:
CamperBot
@camperbot
Mar 05 2017 10:03
alperenasa sends brownie points to @daveyx :sparkles: :thumbsup: :sparkles:
:cookie: 269 | @daveyx |http://www.freecodecamp.com/daveyx
Andrei Rk
@iamcoder2017
Mar 05 2017 10:03
Hu
Hi

Get awesome freeCodeCamp gear and support our community in our shop.
Add Elements within your Bootstrap Wells

Now we're several div elements deep on each column of our row. This is as deep as we'll need to go. Now we can add our button elements.

Nest three button elements within each of your well div elements.
Nest three button elements within each of your div elements with class well.
You should have a total of 6 button elements.
Make sure all your button elements have closing tags.

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<div class="well">



</div>
</div>
<div class="col-xs-6">
<div class="well">



</div>
</div>
</div>
</div>
David Martin Rehle
@daveyx
Mar 05 2017 10:03
@alperenAsa you're welcome
Joy
@bubblybee
Mar 05 2017 10:03
@daveyx Your img element should have the class thick-green-border.
Give your image a border width of 10px.
img {
border-color: green;
border-width: 10px;
border-style: solid;
10px aint workin
Eric Ngu
@ericngu
Mar 05 2017 10:03
Hello guys, can someone explain what does the underscore in str.replace(/[\_W]/g, '') do?
David Martin Rehle
@daveyx
Mar 05 2017 10:04
@bubblybee do you have a codepen ?
Joy
@bubblybee
Mar 05 2017 10:04
what's a codepen?
David Martin Rehle
@daveyx
Mar 05 2017 10:05
ok, forget it... @bubblybee tell me the name of the program you are doing right now.... (you will learn codepen later)
Shusil Banjade
@shusil123
Mar 05 2017 10:05
@bubblybee , Post the code here. You're supposed to style the class .thick-green-border, not the img element.
Joy
@bubblybee
Mar 05 2017 10:06
Your img element should have the class thick-green-border.
shud i slap that in ur face

img {
border-color: green;
border-width: 10px;
border-style: solid;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<center> <img class="smaller-image" class="thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."> </center>

erm dont mind the center
David Martin Rehle
@daveyx
Mar 05 2017 10:06
<img class="smaller-image" class="thick-green-border"
should be <img class="smaller-image thick-green-border"
Joy
@bubblybee
Mar 05 2017 10:07
they're connected????
lemme see
David Martin Rehle
@daveyx
Mar 05 2017 10:07
yes... html does not allow attributes with the same name ;-)
Joy
@bubblybee
Mar 05 2017 10:07
...................................
Shusil Banjade
@shusil123
Mar 05 2017 10:07

@ericngu , Read this thread: http://stackoverflow.com/questions/35324229/how-to-interprate-this-regular-expresion-w-g

\W_ matches all the non-word characters and underscore character.

Joy
@bubblybee
Mar 05 2017 10:07
okay i got it
thanks mister
David Martin Rehle
@daveyx
Mar 05 2017 10:07
youre welcome
Eric Ngu
@ericngu
Mar 05 2017 10:09
@shusil123 I see, so the underscore character needs to be specified but other symbols doesnt?
Shusil Banjade
@shusil123
Mar 05 2017 10:10
@ericngu , Yeah , because \W matches all other characters. _ is the special one (So it needs to be specified).
Means in Regex abc_def is a word but abc,def isn't.
Eric Ngu
@ericngu
Mar 05 2017 10:12
@shusil123 Ahhh, that makes so much more sense, I don't see it specified in the documentations that's provided on FCC's GitHub. Thanks so much!
CamperBot
@camperbot
Mar 05 2017 10:12
ericngu sends brownie points to @shusil123 :sparkles: :thumbsup: :sparkles:
:cookie: 771 | @shusil123 |http://www.freecodecamp.com/shusil123
Shusil Banjade
@shusil123
Mar 05 2017 10:12
@ericngu , :+1:
Veronika Krukovich
@VKrukovich
Mar 05 2017 10:23
var myArr = [31, 32, 100, 77]; function myRange(arr, n, k) { var out = 0, for (var i = 0; i < myArr.length; i++) { if (arr[i] >= n && arr[i] <= k) { out = out + arr[i]; } } return out; } console.log(myRange(myArr, 31, 67));
```var myArr = [31, 32, 100, 77];
function myRange(arr, n, k) {
var out = 0,
for (var i = 0; i < myArr.length; i++) {
if (arr[i] >= n && arr[i] <= k) {
out = out + arr[i];
}
}
return out;
}
console.log(myRange(myArr, 31, 67));
what is wrong with for? it writes missing variable name
how to insert code here? ``` doesnt work
Shusil Banjade
@shusil123
Mar 05 2017 10:27
@VKrukovich , Here use arr instead of myArr : (var i = 0; i <arr.length; i++)
Like that.
Veronika Krukovich
@VKrukovich
Mar 05 2017 10:29
Clip2net_170305132846.png
@shusil123 i have changed but it still SyntaxError: missing variable name
Shusil Banjade
@shusil123
Mar 05 2017 10:30
@VKrukovich , Here use semicolon ; instead of comma: var out = 0,=>var out = 0;
Veronika Krukovich
@VKrukovich
Mar 05 2017 10:31
@shusil123 thank you!
CamperBot
@camperbot
Mar 05 2017 10:31
vkrukovich sends brownie points to @shusil123 :sparkles: :thumbsup: :sparkles:
:cookie: 772 | @shusil123 |http://www.freecodecamp.com/shusil123
Shusil Banjade
@shusil123
Mar 05 2017 10:32
@VKrukovich , np.
:+1:
Joy
@bubblybee
Mar 05 2017 10:32
hello!!!
how do I nest a text input element within a form element???
I DONT GET IT
AT ALL
Shusil Banjade
@shusil123
Mar 05 2017 10:33

@bubblybee , Here is how we nest elements:

<div>
 <p>I am a paragraph</p>
 <img src="" class="my-image">
</div>

p and img are nested inside div element

So, You have to nest <input type="text"> (Your input element) inside <form></form> (Your form element)
jennyked
@jennyked
Mar 05 2017 10:37
hello
hello
how do i put a caption on an image ?
Naninh0
@Naninh0
Mar 05 2017 10:38
hello
Bernard
@Troy420
Mar 05 2017 10:41
how to do this?
navigate to different sections of the webpage by clicking buttons in the navigation.
jennyked
@jennyked
Mar 05 2017 10:42
@Naninh0 pls how do i put a caption below an image
Bernard
@Troy420
Mar 05 2017 10:44
@jennyked perhaps u should create a div class caption ?
<div class="thumbnail"><img src="#image_here">
          <div class="caption text-center">blablabla</div>
        </div>
something like that
Mohisen
@mohisen
Mar 05 2017 10:45
Thanks where ?
Bal Krishna Sunuwar
@rawunus
Mar 05 2017 10:47
Johnny
@JohnnyBizzel
Mar 05 2017 10:53

how to do this?
navigate to different sections of the webpage by clicking buttons in the navigation.
@Troy420

Did you get an answer?

Daniel
@Dutchie1990
Mar 05 2017 10:57
http://codepen.io/Dutchie1990/full/aJZKKK/ Can i have some feedback?
Suki
@sukison91
Mar 05 2017 11:00
hey guys having trouble with "Use the Bootstrap Grid to Put Elements Side By Side"
Lauri Välja
@OFFLlNE
Mar 05 2017 11:00
@Dutchie1990 I think the font is not the best. But otherwise all looks good and works. ;)
Suki
@sukison91
Mar 05 2017 11:00
Put the Like, Info and Delete buttons side-by-side by nesting all three of them within one <div class="row"> element, then each of them within a <div class="col-xs-4"> element.
so I did <div class="row col-xs-4"> and closed it with a closing tag below
Johnny
@JohnnyBizzel
Mar 05 2017 11:01
@Dutchie1990 The layout is good and repsonsive but I don't like the combination of colours. As @OFFLlNE said, the font is not the easiest to read. Maybe use a 2nd font for the text.
Suki
@sukison91
Mar 05 2017 11:01
it says my buttons are all nestled within the 'row' but not the 'col-xs-4'
Daniel
@Dutchie1990
Mar 05 2017 11:02
@JohnnyBizzel @OFFLlNE Thanks for the feedback
CamperBot
@camperbot
Mar 05 2017 11:02
dutchie1990 sends brownie points to @johnnybizzel and @offllne :sparkles: :thumbsup: :sparkles:
:star2: 1419 | @johnnybizzel |http://www.freecodecamp.com/johnnybizzel
:cookie: 973 | @offllne |http://www.freecodecamp.com/offllne
Magnus
@magz88
Mar 05 2017 11:04
how do i resize that damned cat-pic?
i typed the style-command
do i have to specify witch pic i want smaller?
Suki
@sukison91
Mar 05 2017 11:07
<div class="row col-xs-4">
<button class="btn btn-block btn-primary">Like</button>
<button class="btn btn-block btn-info">Info</button>
<button class="btn btn-block btn-danger">Delete</button>
</div>
is this code wrong for this task?

Your buttons should all be nested within the same div element with the class row.

Each of your Bootstrap buttons should be nested within its own div element with the class col-xs-4.

Johnny
@JohnnyBizzel
Mar 05 2017 11:08
@magz88 style command?
Magnus
@magz88
Mar 05 2017 11:08
<style>.smaller-image{width:100px;}</style>
Johnny
@JohnnyBizzel
Mar 05 2017 11:09
@sukison91 Each of your Bootstrap buttons should be nested within its own div element with the class col-xs-4.
@magz88 now add that class you have defined to an element
pankajsawant7693
@pankajsawant7693
Mar 05 2017 11:09
hi ,how can i add alt attributes
Suki
@sukison91
Mar 05 2017 11:09
ohh so they need one each
thak you so much @JohnnyBizzel
Johnny
@JohnnyBizzel
Mar 05 2017 11:09
@pankajsawant7693 how do you add class attributes?
GDBenjamin
@GDBenjamin
Mar 05 2017 11:09
@magz88 <img src="http://blahblah" class="smaller-image" />
Johnny
@JohnnyBizzel
Mar 05 2017 11:09
@sukison91 indeed ;)
pankajsawant7693
@pankajsawant7693
Mar 05 2017 11:10
thanks
Johnny
@JohnnyBizzel
Mar 05 2017 11:10
@pankajsawant7693 thanks for your question
CamperBot
@camperbot
Mar 05 2017 11:10
johnnybizzel sends brownie points to @pankajsawant7693 :sparkles: :thumbsup: :sparkles:
:cookie: 23 | @pankajsawant7693 |http://www.freecodecamp.com/pankajsawant7693
Johnny
@JohnnyBizzel
Mar 05 2017 11:10
have a brownie
Magnus
@magz88
Mar 05 2017 11:10
@JohnnyBizzel @GDBenjamin thanks ;)
CamperBot
@camperbot
Mar 05 2017 11:10
magz88 sends brownie points to @johnnybizzel and @gdbenjamin :sparkles: :thumbsup: :sparkles:
:cookie: 31 | @gdbenjamin |http://www.freecodecamp.com/gdbenjamin
:star2: 1420 | @johnnybizzel |http://www.freecodecamp.com/johnnybizzel
Johnny
@JohnnyBizzel
Mar 05 2017 11:11
;)
GDBenjamin
@GDBenjamin
Mar 05 2017 11:11
@magz88 no problem, I had issues with it for a bit too :)
Magnus
@magz88
Mar 05 2017 11:12
@GDBenjamin good to know its not only me. hehe!
Naninh0
@Naninh0
Mar 05 2017 11:16
blob
blob
what did i do wrong v]
level 24
MrHexxx
@MrHexxx
Mar 05 2017 11:17
Hey guys! How can I achieve grainy background like this one: http://codepen.io/freeCodeCamp/full/bELRjV ? Is this an image or CSS?
Naninh0
@Naninh0
Mar 05 2017 11:17
css
MrHexxx
@MrHexxx
Mar 05 2017 11:18
@Naninh0 can you provide more information?
Miscreant
@m1screant
Mar 05 2017 11:18
@Naninh0 I think you have to change the colour to red or something? Read the challenge carefully.
Naninh0
@Naninh0
Mar 05 2017 11:18
w8
blob
blob
Miscreant
@m1screant
Mar 05 2017 11:18
@Naninh0 I think you have to change the colour to red or something? Read the challenge carefully.
@Naninh0 Not green.
Naninh0
@Naninh0
Mar 05 2017 11:18
oke thank you
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:18
hi guys, been stuck on this far too long
Miscreant
@m1screant
Mar 05 2017 11:18
@Naninh0 That's if I remember correctly :P
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:18
var myStr = I am a \"double quoted\"." string inside \"double quotes\".";
Alchemist-T
@Alchemist-T
Mar 05 2017 11:19
best way to learn Bootstrap ? @suggestions needed
MrHexxx
@MrHexxx
Mar 05 2017 11:19
@mcvdt07 you miss opening quote before I am
Miscreant
@m1screant
Mar 05 2017 11:20
@Alchemist-T Udemy, YouTube and obviously at start FreeCodeCamp :P That's how I did it.
MrHexxx
@MrHexxx
Mar 05 2017 11:20
@mcvdt07 after = sign
Alchemist-T
@Alchemist-T
Mar 05 2017 11:20
Cus I think completing this bootstrap course is easy but it won't worth much.
Imrul91
@Imrul91
Mar 05 2017 11:20
<script>
$(document).ready(function() {
$("button").addClass.("animated");
$(".btn").addClass.("shake");
$("#target1").addClass.("btn-primary");
});
</script>
Can anyone tell me if this looks legit?
It's not validating
MrHexxx
@MrHexxx
Mar 05 2017 11:20
@Imrul91 there souldnt be a dot after addClass
addClass is a function
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:20
@MrHexxx var myStr = "I am a \"double quoted\"." string inside \"double quotes\".";
Alchemist-T
@Alchemist-T
Mar 05 2017 11:20
@eddiethejibson Udemy? Paid courses best ones/
Can You suggest some
Miscreant
@m1screant
Mar 05 2017 11:21
@Alchemist-T YouTube and Udemy, as I said, was what made me a decent web developer. Just stick by people who are better than you, and don't give up. I know that sounds like a massive cliche, but it's true.
@Alchemist-T Yeah
@Alchemist-T There's always sales on
@Alchemist-T Often like $299 to $10
Imrul91
@Imrul91
Mar 05 2017 11:21
@MrHexxx Nice!
Much appreciated
Naninh0
@Naninh0
Mar 05 2017 11:21
it workd thank you
Miscreant
@m1screant
Mar 05 2017 11:21
@Naninh0 Was it red?
Alchemist-T
@Alchemist-T
Mar 05 2017 11:22
@eddiethejibson Right ,I will do the same mate :thumbsup:
Imrul91
@Imrul91
Mar 05 2017 11:22
thanks @MrHexxx
CamperBot
@camperbot
Mar 05 2017 11:22
imrul91 sends brownie points to @mrhexxx :sparkles: :thumbsup: :sparkles:
:warning: @mrhexxx's account is not linked with freeCodeCamp. Please visit the settings and link your GitHub account.
MrHexxx
@MrHexxx
Mar 05 2017 11:22
@mcvdt07 after second \" there is a dot and another quote sign, which indicates that string ends. You write more further, but there is no new opening quote
Alchemist-T
@Alchemist-T
Mar 05 2017 11:23
Thanks @eddiethejibson
CamperBot
@camperbot
Mar 05 2017 11:23
alchemist-t sends brownie points to @eddiethejibson :sparkles: :thumbsup: :sparkles:
:cookie: 145 | @eddiethejibson |http://www.freecodecamp.com/eddiethejibson
MrHexxx
@MrHexxx
Mar 05 2017 11:23
Hey guys! How can I achieve grainy background like this one: http://codepen.io/freeCodeCamp/full/bELRjV
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:24
@MrHexxx var myStr ="I am a \"double quoted\"." "string inside \"double quotes\".";
@MrHexxx that doesnt make sense then?
MrHexxx
@MrHexxx
Mar 05 2017 11:25
ok
it's kinda hard to explain from here, I'll start from begging, ok?
Johnny
@JohnnyBizzel
Mar 05 2017 11:26
@MrHexxx what grainy bg?
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:26
@MrHexxx this reads right but syntax error: var myStr =I am a \"double quoted\"." string inside \"double quotes\".";
Johnny
@JohnnyBizzel
Mar 05 2017 11:26
@mcvdt07 format your code properly
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:27
@MrHexxx your weather app has a black backgroubnd
MrHexxx
@MrHexxx
Mar 05 2017 11:27
You have a sentence: I am a "double quoted" string inside "double quotes".
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:27
@MrHexxx yes
MrHexxx
@MrHexxx
Mar 05 2017 11:27
you want to make a string
Johnny
@JohnnyBizzel
Mar 05 2017 11:27
@mcvdt07 var myStr =I am a \"double quoted\"." string inside \"double quotes\"."; is this what you coded?
MrHexxx
@MrHexxx
Mar 05 2017 11:27
so you add " " around the sentence
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:27
Variable myStr should contain the string: I am a "double quoted" string inside "double quotes".
Johnny
@JohnnyBizzel
Mar 05 2017 11:27
we know :|
MrHexxx
@MrHexxx
Mar 05 2017 11:28
but you already have quotes in your string
so we need to tell javascript
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:28
var myStr ="I am a "double quoted" string inside "double quotes".";
MrHexxx
@MrHexxx
Mar 05 2017 11:28
to threat the quotes that are already here like quotes and not like start/end string
so we add \ before
ye its fine now
just add \ before quotes to indicate that they are quotes and not string start or end
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:29
var myStr =\"I am a "double quoted" string inside "double quotes\".";
Johnny
@JohnnyBizzel
Mar 05 2017 11:29
????
Naninh0
@Naninh0
Mar 05 2017 11:29
how can i do this??
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:30
You should use two double quotes (") and four escaped double quotes (\").
Naninh0
@Naninh0
Mar 05 2017 11:30
blob
blob
how can i do this??
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:30
@JohnnyBizzel var myStr =I am a \"double quoted\"." string inside \"double quotes\".";
MrHexxx
@MrHexxx
Mar 05 2017 11:31
now there is no string start quote
Johnny
@JohnnyBizzel
Mar 05 2017 11:31
a href='#'
Naninh0
@Naninh0
Mar 05 2017 11:31
ooooh oke
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:31
var myStr =\"I am a "double quoted" string inside "double quotes\".";
Naninh0
@Naninh0
Mar 05 2017 11:31
thanks
Johnny
@JohnnyBizzel
Mar 05 2017 11:32
@mcvdt07 better: var myStr ="I am a \"double quoted\". string inside \"double quotes\".";
@Naninh0 sure, thanks for the visit
CamperBot
@camperbot
Mar 05 2017 11:33
johnnybizzel sends brownie points to @naninh0 :sparkles: :thumbsup: :sparkles:
:cookie: 31 | @naninh0 |http://www.freecodecamp.com/naninh0
Sunrisekk
@Sunrisekk
Mar 05 2017 11:34
You should use the :even function to modify these elements.
$(".target:odd").even().addClass("animated shake");
does someone know what is wrong?
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:34
@JohnnyBizzel var myStr = "I am a \"double quoted\". string inside \"double quotes\".";
Johnny
@JohnnyBizzel
Mar 05 2017 11:35
@mcvdt07 did it pass?
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:35
no
@JohnnyBizzel Variable myStr should contain the string: I am a "double quoted" string inside "double quotes".
is still red
@JohnnyBizzel You should use two double quotes (") and four escaped double quotes (\").
is now green
Johnny
@JohnnyBizzel
Mar 05 2017 11:36
doublequote.png
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:38
got it!
Johnny
@JohnnyBizzel
Mar 05 2017 11:38
@mcvdt07 :+1:
Machiel Van Der Toorn
@mcvdt07
Mar 05 2017 11:38
the period just needed to be removed after the first quote
@JohnnyBizzel thank you
CamperBot
@camperbot
Mar 05 2017 11:38
mcvdt07 sends brownie points to @johnnybizzel :sparkles: :thumbsup: :sparkles:
:star2: 1421 | @johnnybizzel |http://www.freecodecamp.com/johnnybizzel
Johnny
@JohnnyBizzel
Mar 05 2017 11:38
anytime
程学明
@chengxueming
Mar 05 2017 11:40

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>jquery ui弹出div层对话框--柯乐义</title>
<link rel="stylesheet" href="http://keleyi.com/keleyi/pmedia/jquery/ui/1.10.3/css/smoothness/jquery-ui.min.css" />
<script type="text/javascript" src="http://keleyi.com/keleyi/pmedia/jquery-1.9.1.min.js"></script>
<script src="http://keleyi.com/keleyi/pmedia/jquery/ui/1.10.3/js/jquery-ui-1.10.3.min.js" type="text/javascript"></script>
<script type="text/javascript">
function keleyidialog() {
$("#dialog").dialog();
}
</script>
<style type="text/css">#dialog{display:none;}</style>
</head>
<body>

<div style="width:338px;height:100px;margin:10px auto;"><input type="button" onclick="keleyidialog()" value="点击我" />
<a href="http://keleyi.com/a/bjac/5939d3b2c920ff6d.htm" target="_blank">原文</a> <a href="http://keleyi.com/keleyi/phtml/jui/dialog/1.htm">无动画</a> <a href="http://keleyi.com/keleyi/phtml/jui/dialog/2.htm">动画</a>
<a href="http://keleyi.com/keleyi/phtml/jui/dialog/3.htm">redmond</a>
<a href="http://keleyi.com/keleyi/phtml/jui/dialog/4.htm">sunny</a>
<br />点击按钮弹出对话框
</div>
<div id="dialog" title="div层对话框">
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
<p>柯乐义:这是一个弹出div层对话框,可用于显示信息。可以拖动和关闭这个弹出层,还可以改变它的大小。 </p>
</div>
</body>
</html>

why it not work on chrome but work on
ie
.dialog is not a function who can help me
Alejandro López Almeida
@raky291
Mar 05 2017 11:41
Hello, someone can help me to convert this from javascript to C# ?
var arr = [];
if (arr[6] === undefined) {
          arr[6] = [];
}
arr[6].push([1, 2]);
程学明
@chengxueming
Mar 05 2017 11:41
I want to use jquery ui
René
@RenevandenHeuvel
Mar 05 2017 11:44

Hello everyone, i just started programming and freecodecamp has redirected me to this place to ask a question: Can someone help me to pass this challenge on freecodecamp?

https://www.freecodecamp.com/challenges/concatenating-strings-with-plus-operator#?solution=%0A%2F%2F%20Example%0Avar%20ourStr%20%3D%20%22I%20come%20first.%20%22%20%2B%20%22I%20come%20second.%22%3B%0A%0A%2F%2F%20Only%20change%20code%20below%20this%20line%0A%0Avar%20myStr%20%3D%20%22This%20is%20the%20start.%22%20%2B%20%22This%20is%20the%20end.%22%3B%0A%0A%0A.

It seems like this challenge has a bug, because i think this should be the right code: var myStr = "This is the start." + "This is the end.";

prioritylabs
@prioritylabs
Mar 05 2017 11:47
@RenevandenHeuvel goitta use spae "This is the start. "
space
Yudit Sharabi
@yuliaSharabi
Mar 05 2017 11:48
hi, does anyone knows how do I search a message where I was tagged from week ago for example?Is there any acsess to the "chat history"?
prioritylabs
@prioritylabs
Mar 05 2017 11:48
otherwise text would look lile "This is the start.This is the end" without spae between 2 sentences
gharibullah456
@gharibullah456
Mar 05 2017 11:49
how to change the colour of text
pankajsawant7693
@pankajsawant7693
Mar 05 2017 11:49
hi, please i am unable to cross this challenge so please
Your img element should have the class smaller-image.
Your image should be 100 pixels wide. Browser zoom should be at 100%
Sandeep Chary
@dsandeepchary
Mar 05 2017 11:50
looking through the archives may help @yuliaSharabi
what have you done? @pankajsawant7693
prioritylabs
@prioritylabs
Mar 05 2017 11:50
@gharibullah456 in css section like this p {color: red} and then <p> hello </p>
Yudit Sharabi
@yuliaSharabi
Mar 05 2017 11:52
@dsandeepchary - sounds good , where can I find those archivers you are referring to?
Sandeep Chary
@dsandeepchary
Mar 05 2017 11:53
top right of this page, beside your profile picture @yuliaSharabi
h1tag
@h1tag
Mar 05 2017 11:53
@dsandeepchary :incoming_envelope:
Sandeep Chary
@dsandeepchary
Mar 05 2017 11:53
@fortMaximus :outbox_tray:
h1tag
@h1tag
Mar 05 2017 11:54
:warning:
Sandeep Chary
@dsandeepchary
Mar 05 2017 11:54
:no_entry_sign:
laurchar
@laurchar
Mar 05 2017 11:55
Hi! I'm building my portfolio page and wondered if someone could help me with overlapping elements? is anyone free for me to dm?
Yudit Sharabi
@yuliaSharabi
Mar 05 2017 11:56
@dsandeepchary found it , thanks a lot.
CamperBot
@camperbot
Mar 05 2017 11:56
yuliasharabi sends brownie points to @dsandeepchary :sparkles: :thumbsup: :sparkles:
:cookie: 509 | @dsandeepchary |http://www.freecodecamp.com/dsandeepchary
h1tag
@h1tag
Mar 05 2017 11:57
@laurchar what's "overlapping?
laurchar
@laurchar
Mar 05 2017 11:58
ive got an image and a dropdown menu button - at the moment the menu button is sitting above the image, but i want to know how i can position the menu button over the top of the image. i read this might be something to do with z-index but i don't really understand it! @fortMaximus
h1tag
@h1tag
Mar 05 2017 12:00
@laurchar did you read any documentation of z-index?
laurchar
@laurchar
Mar 05 2017 12:02
yeah, i've read a couple of pages and i've tried using the eg w3 schools gives but it doesn't seem to be working for me
this is better than w3schools
laurchar
@laurchar
Mar 05 2017 12:03
thanks - ill have a read and let you know if it helps! :)
if you do a google search, there are many other ones better than w3schools
laurchar
@laurchar
Mar 05 2017 12:10
thanks :)
prioritylabs
@prioritylabs
Mar 05 2017 12:19
I have a question on overflow property and centered context. My image is wider than container. I want image be center by itself inside main container (crop sides). I.e. on my example I want text "og" symolbs be in the center. https://codepen.io/PPPaaa/pen/oZLPVp
Jitender Kadyan
@jitenderkadyan
Mar 05 2017 12:24
hi
tordid93
@tordid93
Mar 05 2017 12:24
Having problems whith this....
Nest all your checkboxes in a <div class="row"> element. Then nest each of them in a <div class="col-xs-4"> element.
all elements have a closing tag, but wont pass
badalsaibo
@heyDante
Mar 05 2017 12:26
@tordid93 show your code.
tordid93
@tordid93
Mar 05 2017 12:27
<div class="row">
<div class="col-xs-4"><label><input type="checkbox" name="personality">Happy</label></div>
<div class="col-xs-4"> <label><input type="checkbox" name="personality"> Lazy</label></div>
<div class="col-xs-4"> <label><input type="checkbox" name="personality"> Crazy</label></div></div>
David Martin Rehle
@daveyx
Mar 05 2017 12:28
input should not be nested in an label
input misses an end tag too
nyameeugene
@nyameeugene
Mar 05 2017 12:33

Many people feel overwhelmed by the possibilities of more than 16 million colors. And it's difficult to remember hex code. Fortunately, you can shorten it.

For example, red's hex code #FF0000 can be shortened to #F00. This shortened form gives one digit for red, one digit for green, and one digit for blue.

This reduces the total number of possible colors to around 4,000. But browsers will interpret #FF0000 and #F00 as exactly the same color.

Go ahead, try using the abbreviated hex codes to color the correct elements.

Give your h1 element with the text I am fuchsia! the color fuchsia.
Use the abbreviated hex code for the color fuchsia instead of the hex code #FF00FF.
badalsaibo
@heyDante
Mar 05 2017 12:35
@nyameeugene abbreviate the given hexcode
alfieburns
@alfieburns
Mar 05 2017 12:39
can someone pls help it says that my image needs a closing angle bracket and it dose but its telling me it dosent
and its confusing me
oh ok dont worry
tyburn1
@tyburn1
Mar 05 2017 12:45
@alfieburns Did you try putting in the backslash for your closing angle bracket?
@alfieburns Sometimes it's easy to forget it, depending on the text editor.
alfieburns
@alfieburns
Mar 05 2017 12:46
no its orite now it was because i had it as <image and i needed it to be <img
but thanks anyway
tyburn1
@tyburn1
Mar 05 2017 12:47
@alfieburns No prob that happens to me as well when I haven't been working with CSS in a while.
alfieburns
@alfieburns
Mar 05 2017 12:48
haha
tyburn1
@tyburn1
Mar 05 2017 12:49
😁😎
Rohan Sharma
@rhnsh26
Mar 05 2017 12:49
hello
please someone tell me how to Create a new button element with the text "Like"
tyburn1
@tyburn1
Mar 05 2017 12:52
@rhnsh26 <button>"Like"</button> you can style further with CSS or adding classes to it if you are using bootstrap
Joy
@bubblybee
Mar 05 2017 12:56
hello...
help?
I can't do this: Make sure your form has an action attribute which is set to /submit-cat-photo
tyburn1
@tyburn1
Mar 05 2017 12:58
@bubblybee try spelling it out exactly as the instructions say, or copy and paste it.
Magnus
@magz88
Mar 05 2017 13:01
<a href="http://freecatphotoapp.com">cat photos</a>
Whats wrong with this code?
Joy
@bubblybee
Mar 05 2017 13:01

<form>
<input type="text" placeholder="cat photo URL">
<form action="/submit-cat-photo"> </form>
</form>

doesn't work

May Kittens Devour Your Soul
@diomed
Mar 05 2017 13:01
@magz88 nothing
h1tag
@h1tag
Mar 05 2017 13:01

@tyburn1

<button>"Like"</button>

should be without quotes
May Kittens Devour Your Soul
@diomed
Mar 05 2017 13:02
@bubblybee u dont need 2 forms
Magnus
@magz88
Mar 05 2017 13:03
@diomed but it says its wrong :S
Joy
@bubblybee
Mar 05 2017 13:03
but it says: Nest your text field in a form element. Add the action="/submit-cat-photo" attribute to this form element.
tyburn1