7 replies [Last post]
bongy0
bongy0's picture
Offline
newbie
London
Last seen: 3 years 16 weeks ago
London
Joined: 2016-01-27
Posts: 6
Points: 7

I have a question guys!

I am enrolled on a css/html course and i am unable to move forward because one of the questions asked is not accepting my answer so I'm hoping someone here can help me.

This is Index.html (part of it)

Find a place to stay.

Rent from people in over 34,000 cities and 192 countries.

In the css file i have this:

.jumbotron .container {
top: 100px;
position: relative;
}
Its an online course and when i click submit, it says:
Oops, try again. Set the position of the

..

inside

..

to relative
Can anyone see what I'm doing wrong pls?

bongy0
bongy0's picture
Offline
newbie
London
Last seen: 3 years 16 weeks ago
London
Joined: 2016-01-27
Posts: 6
Points: 7

Html/CSS

I am enrolled on a css/html course and i am unable to move forward because one of the questions asked is not accepting my answer so I'm hoping someone here can help me.

This is Index.html (part of it)

<div class="jumbotron">
<div class="container">
<h1>Find a place to stay.</h1>
<p>Rent from people in over 34,000 cities and 192 countries.</p>
</div>
</div>

In the css file i have this:

.jumbotron .container {
top: 100px;
position: relative;
}

Its an online course and when i click submit, it says:
Oops, try again. Set the position of the

..

inside

..

to relative
Can anyone see what I'm doing wrong pls?

bongy0
bongy0's picture
Offline
newbie
London
Last seen: 3 years 16 weeks ago
London
Joined: 2016-01-27
Posts: 6
Points: 7

This is the HTML code

I have a question guys!
I am enrolled on a css/html course and i am unable to move forward because one of the questions asked is not accepting my answer so I'm hoping someone here can help me.
This is Index.html (part of it)

<div class="jumbotron">
<div class="container">
<h1>Find a place to stay.</h1>
<p>Rent from people in over 34,000 cities and 192 countries.</p>
</div>
</div>

In the css file i have this:
.jumbotron .container {
top: 100px;
position: relative;
}

Its an online course and when i click submit, it says:
Oops, try again. Set the position of the <div class="container">..</div> inside <div class="jumbotron">..</div> to relative
Can anyone see what I'm doing wrong pls?

//mod edit: [code][/code] tags added. ~gt

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 9 hours 12 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9738
Points: 3817

?

Looks like you did as asked to me. Perhaps they want you to be more explicit, i.e.

.jumbotron div.container {}

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

bongy0
bongy0's picture
Offline
newbie
London
Last seen: 3 years 16 weeks ago
London
Joined: 2016-01-27
Posts: 6
Points: 7

Sorry Gary i dont understand

Yh thanks Gary but i cant think of a way to be more specific

Dene

bongy0
bongy0's picture
Offline
newbie
London
Last seen: 3 years 16 weeks ago
London
Joined: 2016-01-27
Posts: 6
Points: 7

Ive tried everything its

Ive tried everything its driving me nuts

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 9 hours 12 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9738
Points: 3817

Just as I showed you

Instead of .jumbotron .container {} which you had, make it .jumbotron div.container {}, adding the div.

If that doesn't work, contact the site and ask what's wrong.

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

bongy0
bongy0's picture
Offline
newbie
London
Last seen: 3 years 16 weeks ago
London
Joined: 2016-01-27
Posts: 6
Points: 7

Hi Gary! That didn't work

Hi Gary!

That didn't work either.

The problem is, its a free online course and they don't have any support.

I suppose thats the problem with Free.

Thanks for trying mate.

Dene