Programming problem

w/e | Ascended Invincible!
 
more |
XBL:
PSN:
Steam:
ID: DigitalIZesty
IP: Logged

5,282 posts
 
I'm trying to affect the container inside index.html with this
Code: [Select]
    .jumbotron .container {
    position: relative
    top: 100px
}
The only one that's allowed to pass is if I end the code bit like this, but then the div class container becomes obsolete (white as opposed to red)
Code: [Select]
<div class="jumbotron" >
     <style type= "text/css">
    .jumbotron .container {
    position: relative
    top: 100px
}
  <div class="container">           <—-- This becomes obsolete
     
      </style>
I have to end the style after the
Code: [Select]
<div class="container"> in order for it to work, but then that part becomes white.

Where am I supposed to put the 
Code: [Select]
    .jumbotron .container {
    position: relative
    top: 100px
}
code if not in that formation?


FatherlyNick - fuck putin | Mythic Inconceivable!
 
more |
XBL: FatherlyNick
PSN: FatherlyNick
Steam: FatherlyNick
ID: FatherlyNick
IP: Logged

9,096 posts
If you know, you know.
Can you make it a little clearer please?

tell us which is your HTML and which is your CSS.


FatherlyNick - fuck putin | Mythic Inconceivable!
 
more |
XBL: FatherlyNick
PSN: FatherlyNick
Steam: FatherlyNick
ID: FatherlyNick
IP: Logged

9,096 posts
If you know, you know.
in-line CSS in general is a VERY bad practice.


w/e | Ascended Invincible!
 
more |
XBL:
PSN:
Steam:
ID: DigitalIZesty
IP: Logged

5,282 posts
 
Can you make it a little clearer please?

tell us which is your HTML and which is your CSS.
It's all HTML, and it didn't do anything in the CSS place... though I'm not super understanding with that place.

I did write index.html, didn't I?


w/e | Ascended Invincible!
 
more |
XBL:
PSN:
Steam:
ID: DigitalIZesty
IP: Logged

5,282 posts
 
Here is my index.html:
Code: [Select]
<!DOCTYPE html>
<html>
  <head>
    <link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
    <link rel="stylesheet" href="main.css">
  </head>
 
  <body>
    <div class="nav">
      <div class="container">
        <ul>
          <li><a href="#">Airbnb logo</a></li>
          <li><a href="#">Browse</a></li>
        </ul>
        <ul>
          <li><a href="#">Sign Up</a></li>
          <li><a href="#">Log In</a></li>
          <li><a href="#">Help</a></li>
        </ul>
      </div>
    </div>
       

<div class="jumbotron" >
     <style type= "text/css">
    .jumbotron .container {
    position: relative
    top: 100px
}
   <div class="container">
     
      </style>
        <h1>Find a place to stay.</h1>
        <p>Rent from people in over 34,000 cities and 192 countries.</p>
      </div>
    </div>

    <div class="learn-more">
  <div>
<div>
      <div>
<h3>Travel</h3>
<p>From apartments and rooms to treehouses and boats: stay in unique spaces in 192 countries.</p>
<p><a href="#">See how to travel on Airbnb</a></p>
  </div>
  <div>
<h3>Host</h3>
<p>Renting out your unused space could pay your bills or fund your next vacation.</p>
<p><a href="#">Learn more about hosting</a></p>
      </div>
  <div>
<h3>Trust and Safety</h3>
<p>From Verified ID to our worldwide customer support team, we've got your back.</p>
<p><a href="#">Learn about trust at Airbnb</a></p>
  </div>
    </div>
  </div>
</div>
  </body>
</html>
and here is my main.css:
Code: [Select]
.nav li {
display: inline
}
.nav a {
  color: #5a5a5a;
  font-size: 11px;
  font-weight: bold;
  padding: 14px 10px;
  text-transform: uppercase;
}

.jumbotron {
  background-image:url('http://goo.gl/04j7Nn');
  height: 500px;
}

.jumbotron h1 {
  color: #fff;
  font-size: 48px; 
  font-family: 'Shift', sans-serif;
  font-weight: bold;
}

.jumbotron p {
  font-size: 20px;
  color: #fff;
}


.learn-more {
  background-color: #f7f7f7;
}

.learn-more h3 {
  font-family: 'Shift', sans-serif;
  font-size: 18px;
  font-weight: bold;
}

.learn-more a {
  color: #00b0ff;
}
Last Edit: April 12, 2015, 04:34:28 AM by Desty


FatherlyNick - fuck putin | Mythic Inconceivable!
 
more |
XBL: FatherlyNick
PSN: FatherlyNick
Steam: FatherlyNick
ID: FatherlyNick
IP: Logged

9,096 posts
If you know, you know.
I'm not sure but try to move the </style> tag around


w/e | Ascended Invincible!
 
more |
XBL:
PSN:
Steam:
ID: DigitalIZesty
IP: Logged

5,282 posts
 
I'm not sure but try to move the </style> tag around
No


FatherlyNick - fuck putin | Mythic Inconceivable!
 
more |
XBL: FatherlyNick
PSN: FatherlyNick
Steam: FatherlyNick
ID: FatherlyNick
IP: Logged

9,096 posts
If you know, you know.
fine then. Are you using some sort of an IDE for this?


 
Elegiac
| Knight of the Limits
 
more |
XBL:
PSN:
Steam:
ID: Elegiac
IP: Logged

23,746 posts
I want to tape the bachelor but my VCR is complicated


Magos Domina | Heroic Invincible!
 
more |
XBL:
PSN:
Steam:
ID: Kiyohime
IP: Logged

6,767 posts
01001001 01101101 00100000 01100111 01101111 01101001 01101110 01100111 00100000 01110100 01101111 00100000 01110100 01101000 01110010 01101111 01110111 00100000 01100001 00100000 01110011 01110000 01101001 01100100 01100101 01110010 00100000 01100001 01110100 00100000 01111001 01101111 01110101
#shitpost


w/e | Ascended Invincible!
 
more |
XBL:
PSN:
Steam:
ID: DigitalIZesty
IP: Logged

5,282 posts
 
#shitpost
Really? You use hashtags? go back to your Twitter, you 13 year old pubescent girl.


Magos Domina | Heroic Invincible!
 
more |
XBL:
PSN:
Steam:
ID: Kiyohime
IP: Logged

6,767 posts
01001001 01101101 00100000 01100111 01101111 01101001 01101110 01100111 00100000 01110100 01101111 00100000 01110100 01101000 01110010 01101111 01110111 00100000 01100001 00100000 01110011 01110000 01101001 01100100 01100101 01110010 00100000 01100001 01110100 00100000 01111001 01101111 01110101
#shitpost
Really? You use hashtags? go back to your Twitter, you 13 year old pubescent girl.
wanna cry about it fgt?


w/e | Ascended Invincible!
 
more |
XBL:
PSN:
Steam:
ID: DigitalIZesty
IP: Logged

5,282 posts
 
#shitpost
Really? You use hashtags? go back to your Twitter, you 13 year old pubescent girl.
wanna cry about it fgt?
Do I wanna cry about Justing Bieber's latest news? No thanks, I'll leave that to you. In fact, don't ever talk back to me.


Magos Domina | Heroic Invincible!
 
more |
XBL:
PSN:
Steam:
ID: Kiyohime
IP: Logged

6,767 posts
01001001 01101101 00100000 01100111 01101111 01101001 01101110 01100111 00100000 01110100 01101111 00100000 01110100 01101000 01110010 01101111 01110111 00100000 01100001 00100000 01110011 01110000 01101001 01100100 01100101 01110010 00100000 01100001 01110100 00100000 01111001 01101111 01110101
#shitpost
Really? You use hashtags? go back to your Twitter, you 13 year old pubescent girl.
wanna cry about it fgt?
Do I wanna cry about Justing Bieber's latest news? No thanks, I'll leave that to you. In fact, don't ever talk back to me.
lol you keep up with Justin Bieber news? what a total fag


Ásgeirr | Mythic Inconceivable!
 
more |
XBL: ossku
PSN:
Steam: ossku/Oss
ID: Ossku
IP: Logged

13,642 posts
The angel agreed to trade a set of white wings for the head of another demon. Overjoyed, the demon killed one of his own and plucked the head right off its still-warm body.

The angel then led the demon to heaven, where he underwent centuries of the cruelest tortures imaginable. Finally, the pain was so great that he lost consciousness - at which point his dark wings turned the promised shade of white.
Program a solution


rC | Mythic Inconceivable!
 
more |
XBL:
PSN:
Steam:
ID: RC5908
IP: Logged

10,850 posts
ayy lmao
css and html are scripting, not programming. don't be a nigger like cheat and inflate your abilities.


FatherlyNick - fuck putin | Mythic Inconceivable!
 
more |
XBL: FatherlyNick
PSN: FatherlyNick
Steam: FatherlyNick
ID: FatherlyNick
IP: Logged

9,096 posts
If you know, you know.
css and html are scripting, not programming. don't be a nigger like cheat and inflate your abilities.

Also this.


w/e | Ascended Invincible!
 
more |
XBL:
PSN:
Steam:
ID: DigitalIZesty
IP: Logged

5,282 posts
 
#shitpost
Really? You use hashtags? go back to your Twitter, you 13 year old pubescent girl.
wanna cry about it fgt?
Do I wanna cry about Justing Bieber's latest news? No thanks, I'll leave that to you. In fact, don't ever talk back to me.
lol you keep up with Justin Bieber news? what a total fag
That just goes to prove how stupid you are :)


 
Cheat
| Flora Colossus
 
more |
XBL: Cheatlancer
PSN:
Steam: Cheatlancer
ID: Cheatlancer
IP: Logged

6,830 posts
Hmm...
css and html are scripting, not programming. don't be a nigger like cheat and inflate your abilities.
I don't think I've ever said HTML/CSS was programming.

But in regard to the OP: you're fucking up element encapsulation with that random style tag. Get rid of it and use the linked style sheet.


Yu | Mythic Inconceivable!
 
more |
XBL:
PSN:
Steam:
ID: Yutaka
IP: Logged

13,009 posts
Almost always, with moderation
Why aren't you using external style sheets?


FatherlyNick - fuck putin | Mythic Inconceivable!
 
more |
XBL: FatherlyNick
PSN: FatherlyNick
Steam: FatherlyNick
ID: FatherlyNick
IP: Logged

9,096 posts
If you know, you know.
css and html are scripting, not programming. don't be a nigger like cheat and inflate your abilities.
I don't think I've ever said HTML/CSS was programming.

But in regard to the OP: you're fucking up element encapsulation with that random style tag. Get rid of it and use the linked style sheet.

I told his the exact same thing and he replied with
Quote
No.


w/e | Ascended Invincible!
 
more |
XBL:
PSN:
Steam:
ID: DigitalIZesty
IP: Logged

5,282 posts
 
Why aren't you using external style sheets?
Because this is just training.
 
Code: [Select]
<link rel="stylesheet" href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/bootstrap.css">Is what you mean, right?


Yu | Mythic Inconceivable!
 
more |
XBL:
PSN:
Steam:
ID: Yutaka
IP: Logged

13,009 posts
Almost always, with moderation
Why aren't you using external style sheets?
Because this is just training.
 
Code: [Select]
<link rel="stylesheet" href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/bootstrap.css">Is what you mean, right?
Well yes, but its a css file you create and link to, not a site.


w/e | Ascended Invincible!
 
more |
XBL:
PSN:
Steam:
ID: DigitalIZesty
IP: Logged

5,282 posts
 
Why aren't you using external style sheets?
Because this is just training.
 
Code: [Select]
<link rel="stylesheet" href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/bootstrap.css">Is what you mean, right?
Well yes, but its a css file you create and link to, not a site.
A file you created and stored in your own hardware is what you link it to? That's my logical guess.


Yu | Mythic Inconceivable!
 
more |
XBL:
PSN:
Steam:
ID: Yutaka
IP: Logged

13,009 posts
Almost always, with moderation
Why aren't you using external style sheets?
Because this is just training.
 
Code: [Select]
<link rel="stylesheet" href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/bootstrap.css">Is what you mean, right?
Well yes, but its a css file you create and link to, not a site.
A file you created and stored in your own hardware is what you link it to? That's my logical guess.
Well normally it would be in the folder in which you're working in, usually a designated CSS folder in the instance that you have multiple css files, doing it online, it would be on the hosted via whatever website you have it on.


FatherlyNick - fuck putin | Mythic Inconceivable!
 
more |
XBL: FatherlyNick
PSN: FatherlyNick
Steam: FatherlyNick
ID: FatherlyNick
IP: Logged

9,096 posts
If you know, you know.
Why aren't you using external style sheets?
Because this is just training.
 
Code: [Select]
<link rel="stylesheet" href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/bootstrap.css">Is what you mean, right?
Well yes, but its a css file you create and link to, not a site.
A file you created and stored in your own hardware is what you link it to? That's my logical guess.
Well normally it would be in the folder in which you're working in, usually a designated CSS folder in the instance that you have multiple css files, doing it online, it would be on the hosted via whatever website you have it on.
He has a main.css but he also put in some in-line CSS stuff.


Yu | Mythic Inconceivable!
 
more |
XBL:
PSN:
Steam:
ID: Yutaka
IP: Logged

13,009 posts
Almost always, with moderation
Why aren't you using external style sheets?
Because this is just training.
 
Code: [Select]
<link rel="stylesheet" href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/bootstrap.css">Is what you mean, right?
Well yes, but its a css file you create and link to, not a site.
A file you created and stored in your own hardware is what you link it to? That's my logical guess.
Well normally it would be in the folder in which you're working in, usually a designated CSS folder in the instance that you have multiple css files, doing it online, it would be on the hosted via whatever website you have it on.
He has a main.css but he also put in some in-line CSS stuff.
Honestly didn't bother to look over all that code, working on something right now, but I myself avoid inline stylesheets always.


rC | Mythic Inconceivable!
 
more |
XBL:
PSN:
Steam:
ID: RC5908
IP: Logged

10,850 posts
ayy lmao
css and html are scripting, not programming. don't be a nigger like cheat and inflate your abilities.
I don't think I've ever said HTML/CSS was programming.

But in regard to the OP: you're fucking up element encapsulation with that random style tag. Get rid of it and use the linked style sheet.
no I mean you're just black in general


 
Cheat
| Flora Colossus
 
more |
XBL: Cheatlancer
PSN:
Steam: Cheatlancer
ID: Cheatlancer
IP: Logged

6,830 posts
Hmm...
Why aren't you using external style sheets?
Because this is just training.
 
Code: [Select]
<link rel="stylesheet" href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/bootstrap.css">Is what you mean, right?
Well yes, but its a css file you create and link to, not a site.
Those work too, though, as long as it's CSS.