get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
CSS has a property called width that controls an element's width. Just like with fonts, we'll use px (pixels) to specify the image's width.
For example, if we wanted to create a CSS class called larger-image that gave HTML elements a width of 500 pixels, we'd use:
<style>
.larger-image {
width: 500px;
}
</style>
Create a class called smaller-image and use it to resize the image so that it's only 100 pixels wide.
<style>
section that has a class definition for the class .larger-image
. You have to create the same type of entry, within the same set of <style>
tags with a class .smaller-image
, and just replace the CSS width:
property's value with 100px;
Then you have to add the class to an <img
in your HTML <body>
section with the attibute class="smaller-image"
@Helloxiaoya - if that explanation was a little too abstract, it is helpful if you can post your code, it makes it easier to provide direction. Use the Markdown code posting format, which is to put a line of backquotes ``` on a line by itself, then your code, then a final line with three ``` all by itself. In other words, you post this:
```
<style>
.larger-image {
width: 500px;
}
</style>
```
And it comes out like this:
<style>
.larger-image {
width: 500px;
}
</style>
thekholm80 sends brownie points to @heroiczero and @darrenfj and @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6656 | @manish-giri |http://www.freecodecamp.com/manish-giri
:star2: 1885 | @heroiczero |http://www.freecodecamp.com/heroiczero
:star2: 2138 | @darrenfj |http://www.freecodecamp.com/darrenfj
khaduch sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2139 | @darrenfj |http://www.freecodecamp.com/darrenfj
darrenfj sends brownie points to @heroiczero and @khaduch and @manish-giri and @github-henry and @sjames1958gm and @daddycardona and @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1886 | @heroiczero |http://www.freecodecamp.com/heroiczero
:cookie: 392 | @github-henry |http://www.freecodecamp.com/github-henry
:star2: 6657 | @manish-giri |http://www.freecodecamp.com/manish-giri
:cookie: 392 | @daddycardona |http://www.freecodecamp.com/daddycardona
:star2: 1511 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:star2: 3370 | @khaduch |http://www.freecodecamp.com/khaduch
:star2: 8559 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
heroiczero sends brownie points to @darrenfj and @khaduch and @manish-giri and @github-henry and @sjames1958gm and @daddycardona and @thekholm80 and @alpox :sparkles: :thumbsup: :sparkles:
:cookie: 393 | @github-henry |http://www.freecodecamp.com/github-henry
:star2: 2140 | @darrenfj |http://www.freecodecamp.com/darrenfj
:star2: 3371 | @khaduch |http://www.freecodecamp.com/khaduch
:star2: 6658 | @manish-giri |http://www.freecodecamp.com/manish-giri
:star2: 1512 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:cookie: 393 | @daddycardona |http://www.freecodecamp.com/daddycardona
:star2: 8560 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
:star2: 1362 | @alpox |http://www.freecodecamp.com/alpox
github-henry sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1889 | @heroiczero |http://www.freecodecamp.com/heroiczero
github-henry sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2141 | @darrenfj |http://www.freecodecamp.com/darrenfj
console.log
something right before I return it, why would the log print an answer and the return be undefined?
<style type="text/css">
color: blue;}
</style>
<h2 id = "ww">我家的猫咪</h2>
<p>在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,怎能不惹人怜爱。</p>
if (argArray.length == 1){
if this is not true you don't return anything.
else {sym(argArray)}
if (argArray.length == 1){
console.log(argArray[0]);
return argArray[0];
} else {
sym(argArray);
}
// There is no return here.
}
Hey guys not sure where I'm going wrong here: function sequentialSizes(val) {
var answer = "";
// Only change code below this line
case 1:
case 2:
case 3:
result = "Low";
break;
case 4:
case 5:
case 6:
result = "Mid";
break;
case 7:
case 8:
case 9:
result = "High";
break;
// Only change code above this line
return answer;
}
// Change this value to test
sequentialSizes(1);
rscales02 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8562 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
khaduch sends brownie points to @darrenfj and @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1891 | @heroiczero |http://www.freecodecamp.com/heroiczero
:star2: 2142 | @darrenfj |http://www.freecodecamp.com/darrenfj
darrenfj sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3372 | @khaduch |http://www.freecodecamp.com/khaduch
darrenfj sends brownie points to @rscales02 and @sjames1958gm :sparkles: :thumbsup: :sparkles:
:cookie: 304 | @rscales02 |http://www.freecodecamp.com/rscales02
:star2: 8563 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
sorry ingundela, you can't send brownie points to yourself! :sparkles: :sparkles:
mikejschorah sends brownie points to @adelmahjoub :sparkles: :thumbsup: :sparkles:
:cookie: 587 | @adelmahjoub |http://www.freecodecamp.com/adelmahjoub
Poll.findOneAndUpdate({_id:req.params._id, "options.title":req.body.select},{$inc:{"options.votes":1}},{new:true}).then((data)=>{
if(data){
res.render("poll/"+data._id,{polldata: poll.toObject()});
}else{
res.redirect("/");
}
}).catch((e)=>{
console.log(e);
});
db.getCollection('polls').find({_id:"59e32ecdf9fecc2cb0bb233a", "options.title":"great"})
db.getCollection('polls').find({_id: ObjectId("59e32ecdf9fecc2cb0bb233a")})
var ObjectID = require('mongodb').ObjectID,
db.getCollection('polls').find({_id: ObjectId("594992b768cdde0010a79dbd")}
a
Poll.findOne({_id, "options.title":req.body.select},{$inc:{"options.votes":1}})
.update
not .findOne
Poll.findOne({_id, "options.title":req.body.select})
router.post("/:id",(req,res)=>{
let _id = ObjectID(req.params.id);
Poll.update({_id, "options.title":req.body.select},{$inc:{"options.votes":1}}).then((data)=>{
console.log(data);
if(data){
res.redirect("poll/"+data._id);
}else{
res.redirect("/");
}
}).catch((e)=>{
console.log(e);
});
});
const {ObjectID} = require("mongodb");
tiagocorreiaalmeida sends brownie points to @adelmahjoub :sparkles: :thumbsup: :sparkles:
:cookie: 588 | @adelmahjoub |http://www.freecodecamp.com/adelmahjoub
if(checkPlayerWon("O")) {