get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
img-responsive
to your image in the HTML. This will make your image change according to screen size.margin: auto
in CSS.
<img class="img-responsive pokemonClass" src="http://orig07.deviantart.net/4b37/f/2014/127/a/9/pokemon__ash_capture_pokemon__wallpaper__by_kill3rcombo-d7hjsj7.png">
.pokemon {
margin: auto;
}
function findElement(arr, func) {
console.log(arr);
func(2);
console.log(func);
var num = 0;
return num;
}
findElement([1, 2, 3, 4], function(num) {
return num % 2 === 0;
});
:cookie: 340 | @korzo |http://www.freecodecamp.com/korzo
sydneywarren sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
jxshva sends brownie points to @eunipa :sparkles: :thumbsup: :sparkles:
:cookie: 266 | @eunipa |http://www.freecodecamp.com/eunipa
Hi. can someone help me. I am trying to link my freecodecamp page on my portfolio web but it is not working and this is what I wrote; <div class="row">
<div class= "col-xs-2">
<button class="btn btn-block btn-primary">
<a href="https://www.freecodecamp.org/manpee" target="_blank"> </a> FreecodeCamp</button>
</div>
</div>
<div class="row">
<div class= "col-xs-2">
<button class="btn btn-block btn-primary">
<a href="https://www.freecodecamp.org/manpee" target="_blank">FreecodeCamp </a> </button>
</div>
</div>
Hi, how to position the subscribe button next to the email form.
<div class="subscribe">
<div class="subscribe-background">
<p>STAY INFORMED WITH OUR NEWSLETTER
</p>
<form style="width:25%; margin-left: auto; margin-right:auto">
<div class="form-group">
<input type="email" class="form-control" id="email" placeholder="Enter email">
</div></form>
<button type="submit" class="btn btn-default" style="background-color: #000; color: #fff; padding: 10px 40px;">SUBSCRIBE</button>
</div>
</div>
</div>
.subscribe {
background-color: #F7F7F7;
border: none;
color: #000;
text-decoration: none;
display: inline-block;
font: 16px 'Oswald', sans-serif;
font-weight: light;
padding: 5%;
cursor: pointer;
letter-spacing: 6px;
text-align: center;
width: 100%;
margin-top: 6px;
}
.subscribe-button {
padding: 10px 40px;
letter-spacing: 3px;
font: 12px 'Doris', sans-serif;
border-radius: 2px;
background-color: #202020;
}
<form class="form-inline">
and put button inside the form
phoenix-burn sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 341 | @korzo |http://www.freecodecamp.com/korzo
@phoenix-burn
Here is code from bootstrap
.form-control:focus {
border-color: #66afe9;
outline: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}
so change border-color and box-shadow
phoenix-burn sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:warning: phoenix-burn already gave korzo points
manpee sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 342 | @korzo |http://www.freecodecamp.com/korzo
<a href=""><i class="fa fa-twitter"></i>My Twatter</a>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<i class="fa fa-address-book-o" aria-hidden="true"></i>
manpee sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:warning: manpee already gave korzo points
lizangie sends brownie points to @thekholm80 and @kasiamarszalek :sparkles: :thumbsup: :sparkles:
:cookie: 53 | @kasiamarszalek |http://www.freecodecamp.com/kasiamarszalek
:star2: 1424 | @thekholm80 |http://www.freecodecamp.com/thekholm80
bin
folder
darrenfj sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1425 | @thekholm80 |http://www.freecodecamp.com/thekholm80
a:hover {
background-color: rgba(225, 182, 55, 0.57);
text-decoration:none;
color:white;
padding:20px;
width:90%;
marging-left:15px;
}
http://quotes.rest/qod.json
https://
instead of http://
ashishsb95 sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1426 | @thekholm80 |http://www.freecodecamp.com/thekholm80
<head>
section of your page
phoenix-burn sends brownie points to @thekholm80 and @sonimadhuri :sparkles: :thumbsup: :sparkles:
:cookie: 347 | @sonimadhuri |http://www.freecodecamp.com/sonimadhuri
:star2: 1427 | @thekholm80 |http://www.freecodecamp.com/thekholm80
phoenix-burn sends brownie points to @daddycardona and @thekholm80 :sparkles: :thumbsup: :sparkles:
:cookie: 299 | @daddycardona |http://www.freecodecamp.com/daddycardona
:warning: phoenix-burn already gave thekholm80 points
DELETE * from web_technologies WHERE language LIKE php
search=apple
maybe he's a sadist?
He can’t be though… he was in Canada when he wrote PHP — so that can’t be it. :smile:
https://en.wikipedia.org/w/api.php?action=opensearch&search=poop&limit=10&namespace=0&format=json
First of all… why?
Secondly… poop doesn’t come in json form … at least mine doesn’t.
the best thing i've read all night
poop doesn’t come in json form
darrenfj sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6375 | @manish-giri |http://www.freecodecamp.com/manish-giri
@thekholm80 :)
DELETE * from web_technologies WHERE language LIKE php
manish-giri sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1952 | @darrenfj |http://www.freecodecamp.com/darrenfj
'poop'.upcase.downcase
language-babel
amitp88 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6376 | @manish-giri |http://www.freecodecamp.com/manish-giri
jsonp
format
ericmiller777 sends brownie points to @denisinvader :sparkles: :thumbsup: :sparkles:
:cookie: 309 | @denisinvader |http://www.freecodecamp.com/denisinvader
str.replace(/\.+/g, '.');
vbaghdas sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6377 | @manish-giri |http://www.freecodecamp.com/manish-giri
FB.ui({
method: 'share',
display: 'popup',
href: 'https://developers.facebook.com/docs/',
}, function(response){});
});
<script>
tag and send requests to others sites (sending admin cookies for example). CORS is help to protect your app from these hacks
format=jsonp&callback=?
(it's just example, I don't remember wikipedia API, you can look at my pen https://codepen.io/denisinvader/pen/EgPrwq)
callback=?
in request at first
$.ajax({
url: searchUrl,
data: {
format: 'json'
},
dataType: 'jsonp'
}).done(function(res) {
if (typeof callback === 'function')
callback(res);
});
girlcodecrush sends brownie points to @johnnybizzel :sparkles: :thumbsup: :sparkles:
:star2: 1734 | @johnnybizzel |http://www.freecodecamp.com/johnnybizzel
@girlcodecrush An example: the CSS is in the CSS window and the HTML is in the HTML window: https://codepen.io/Zuroslaw/pen/vXkGPy
I still don't know what you mean about aligning image and text so I recommend reading this article: https://css-tricks.com/almanac/properties/a/align-items/
supernaturaldean sends brownie points to @johnnybizzel :sparkles: :thumbsup: :sparkles:
:star2: 1735 | @johnnybizzel |http://www.freecodecamp.com/johnnybizzel
oatz sends brownie points to @gothamknight and @johnnybizzel :sparkles: :thumbsup: :sparkles:
:cookie: 355 | @gothamknight |http://www.freecodecamp.com/gothamknight
:star2: 1736 | @johnnybizzel |http://www.freecodecamp.com/johnnybizzel
girlcodecrush sends brownie points to @johnnybizzel :sparkles: :thumbsup: :sparkles:
:star2: 1737 | @johnnybizzel |http://www.freecodecamp.com/johnnybizzel
ixava sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1579 | @heroiczero |http://www.freecodecamp.com/heroiczero
iamoldham sends brownie points to @aminusufi585 :sparkles: :thumbsup: :sparkles:
:cookie: 127 | @aminusufi585 |http://www.freecodecamp.com/aminusufi585
girlcodecrush sends brownie points to @johnnybizzel :sparkles: :thumbsup: :sparkles:
:star2: 1738 | @johnnybizzel |http://www.freecodecamp.com/johnnybizzel
Really? The portfolio section and the overlay doesnt work pretty much everything on github as if there are no css
@AminuSufi585
phoenix-burn sends brownie points to @aminusufi585 :sparkles: :thumbsup: :sparkles:
:cookie: 128 | @aminusufi585 |http://www.freecodecamp.com/aminusufi585
My Expertise
to show up?
.code-pirate
position: absolute;
id="particles-js"
.code-pirate
<nav>
<!-- Some brilliant nav-->
</nav>
<div id="particle-js">
</div>
<div again-some-div></div>
<div again-some-div></div>
<div again-some-div></div>
<nav>
<!-- Some brilliant nav-->
</nav>
<div class="container-fluid">
<div id="particle-js"></div>
<div again-some-div></div>
<div again-some-div></div>
<div again-some-div></div>
</div>
<br>
tags
Failed to compile.
Error in
Module build failed: TypeError: Cannot read property 'length' of null
at Object.module.exports (C:\Users\Arun\WebstormProjects\portfolioreact\node_modules\url-loader\index.js:15:26)
@ ./src/Landing/landing.js 14:8-19
import Particle from '';
?
./src/Landing/landing.js
import Particle from 'react-particles-js';
apcoder123 sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1428 | @thekholm80 |http://www.freecodecamp.com/thekholm80
daddycardona sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1429 | @thekholm80 |http://www.freecodecamp.com/thekholm80
razvanlikespizza sends brownie points to @austinwiggins :sparkles: :thumbsup: :sparkles:
:cookie: 325 | @austinwiggins |http://www.freecodecamp.com/austinwiggins
var a = 7;
var b;
a = 7;
b = a;
// Setup
var a;
var b = 2;
// Only change code below this line
Only change code below this line
lol
var x = 2 + 4;
6
x
margaret2 sends brownie points to @diomed :sparkles: :thumbsup: :sparkles:
:star2: 5202 | @diomed |http://www.freecodecamp.com/diomed
danii956 sends brownie points to @diomed and @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 346 | @korzo |http://www.freecodecamp.com/korzo
:star2: 5203 | @diomed |http://www.freecodecamp.com/diomed
@daddycardona Your flexbox CSS is preventing that from happening.
display: flex;
align-content: center;
align-items: center;
^^ That needs to be applied to a single element that wraps the content you want to vertically center
daddycardona sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:star2: 2321 | @skyc0der |http://www.freecodecamp.com/skyc0der
@daddycardona Here is a general pattern that you might find useful
.f {
display:flex;
flex: 1;
}
.c{
flex-direction: column;
}
.jcc{
align-items: center;
justify-content: center;
}
and in html
<div class="f c jcc">
<div> Some vertically and horizontally aligned content</div>
</div>
daddycardona sends brownie points to @adiskywalker :sparkles: :thumbsup: :sparkles:
:cookie: 352 | @adiskywalker |http://www.freecodecamp.com/adiskywalker
'Serif'
instead of a comma:p {
font-family: 'Serif'. Avant-Garde;
font-weight: 600;
color: #A9A9A9;
}
<center>
tags too - those are deprecated, use text-align: center instead
.jumbotron p {
color: #A9A9A9;
font-family: 'Serif', Avant-Garde;
font-weight: 600;
text-align: center;
}
alapota sends brownie points to @takumar :sparkles: :thumbsup: :sparkles:
:star2: 3779 | @takumar |http://www.freecodecamp.com/takumar
danii956 sends brownie points to @razvanlikespizza :sparkles: :thumbsup: :sparkles:
:cookie: 224 | @razvanlikespizza |http://www.freecodecamp.com/razvanlikespizza
razvanlikespizza sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1430 | @thekholm80 |http://www.freecodecamp.com/thekholm80
razvanlikespizza sends brownie points to @revisualize :sparkles: :thumbsup: :sparkles:
:star2: 4414 | @revisualize |http://www.freecodecamp.com/revisualize
razvanlikespizza sends brownie points to @revisualize and @thekholm80 :sparkles: :thumbsup: :sparkles:
:warning: razvanlikespizza already gave thekholm80 points
:warning: razvanlikespizza already gave revisualize points
border-radius: 10px;
in the .box
css
razvanlikespizza sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:warning: razvanlikespizza already gave thekholm80 points
case 4
case 1
, case 2
, etc. and the answers should be strings
razvanlikespizza sends brownie points to @margaret2 :sparkles: :thumbsup: :sparkles:
:star2: 2869 | @margaret2 |http://www.freecodecamp.com/margaret2
answer = alpha;
is not right because when you type a word without quotes, that's a variable. and there's no variable named alpha
switch (xyz)
, it checks the value of xyz
and matches it up with the right case
razvanlikespizza sends brownie points to @margaret2 :sparkles: :thumbsup: :sparkles:
:warning: razvanlikespizza already gave margaret2 points
switch (val)
and then case val === 1
because if val
is actually one, that's like saying case true
serpad sends brownie points to @razvanlikespizza :sparkles: :thumbsup: :sparkles:
:cookie: 232 | @razvanlikespizza |http://www.freecodecamp.com/razvanlikespizza