Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
1rjun
@1rjun
@int-elligentSam i used viewport
but nothing works
let me show you the codepen
and try to see it by minimizing the size of the window
and there is the horizontal scroll,but i dont want it ,i want this page to work fine on every device ,and make it responsive
Linus
@nusli
@1rjun you have to make the .quote width responsive; use vw or % instead of px
1rjun
@1rjun
so if i want to make a responsive webpage then i should avoid px?
Linus
@nusli
@1rjun yes or you could use media queries and change the value at different break points
but this would cause you to write a lot of css which you should avoid
Adole Samuel
@int-elligentSam
@1rjun check out bootstrap media queries
1rjun
@1rjun
Thanx bro @nusli i had made it :D
and now its looking good in every width or height ,cool
Linus
@nusli
@1rjun btw using % on height doesn't work as you intend it to in this case
for % to apply on height the parent element has to have a specified height value
adding height: 100%; or height: 100vh; to the body will fix it @1rjun
Sorin Ruse
@sorinr
@1rjun think its time to move on and use an api for retrieving your quotes :)
SakisBal
@SakisBal
so im at this challenge where i output the right answers but for some reason it says they are wrong :P its weird
can i post the code and the challenge?
Sorin Ruse
@sorinr
@SakisBal go ask. if we can help we help :)
SakisBal
@SakisBal
so this is the code

function search(arr,item){
for(i=0;i<arr.length;i++){
if (arr[i]==item){
return i;
}
}
}
function myReplace(str, before, after) {
newstring=str.split(' ');
thesi=search(newstring,before);
newstring[thesi]=after;
newstring=newstring.join(' ');
console.log(newstring);
return newstring;
}

myReplace("A quick brown fox jumped over the lazy dog", "jumped", "leaped");

its the search and replace problem
it outputs the right code to the console
but it doesnt accept it as the right answer
Linus
@nusli
@SakisBal I think the problem lies here:
NOTE: Preserve the case of the original word when you are replacing it. For example if you mean to replace the word "Book" with the word "dog", it should be replaced as "Dog"
SakisBal
@SakisBal
oh didnt see this note
tnx @nusli
Sorin Ruse
@sorinr
@nusli :+1:
ProMan
@ProMan987
Hello
anyone here?
Sorin Ruse
@sorinr
yep
ProMan
@ProMan987
hey sup man
Ghost
@ghost~56bd2077e610378809c105cd
hello and good morning.. Is there anyone around that's really good with javascript? I could use an extra set of eyes on my tic tac toe project.
1rjun
@1rjun
hlo friends i am got stuck on the div concept
pls help me
i want to place the content text on the right side of the image
i created a div inside a div
if you open this in full screen then you will get to know there is space on right side of the image
i want to put the text on that side
Shinichi_Kudo
@Krato5
@Rogue00 u can contact @AryanJ-NYC he have know about tic tac toe i was visit his repo
Ghost
@ghost~56bd2077e610378809c105cd
thanks @Krato5
CamperBot
@camperbot
rogue00 sends brownie points to @krato5 :sparkles: :thumbsup: :sparkles:
:cookie: 5 | @krato5 |http://www.freecodecamp.org/krato5
Shinichi_Kudo
@Krato5
:)
primuscovenant
@primuscovenant
@heroiczero thx
CamperBot
@camperbot
primuscovenant sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 2115 | @heroiczero |http://www.freecodecamp.org/heroiczero
Sorin Ruse
@sorinr
@1rjun here how you can do it
IvanKuzaev
@IvanKuzaev
Hello!