Need Help Please!

I start web building class about 7 week ago and I have this as a final home work , but I have been stuck and confuse for the last 8 day. Can someone please help me to get this done: I have been given an image for HEADER-BACKGROUND ( ) and a HTML SHEET but not to be modify, instead I have been require to create a CSS to style the page as shown below:
–/My Html Not to be Modify/:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Ultimate Frisbee - History</title>
    <link rel="stylesheet" href="css/hw1.css">
  </head>
  <body>
	<header>
	  <h1>Ulimate Frisbee History</h1>
	  <nav>
	    <a href="index.html">Home</a>
            <a href="teams.html">Teams</a>
	    <a href="history.html" class = "active">History</a>
            <a href="http://www.usaultimate.org/index.html" target="_blank">USA Ultimate</a>
	  </nav>
	</header>
	<main>
	  <aside class = "left">
	    <a href="https://commons.wikimedia.org/wiki/File%3AUltimate_Frisbee%2C_Jul_2009_-_17.jpg"><img src="https://upload.wikimedia.org/wikipedia/commons/5/5d/Ultimate_Frisbee%2C_Jul_2009_-_19.jpg" alt="Creative Common Ultimate Photo" title="By Ed Yourdon [CC BY-SA 2.0 (http://creativecommons.org/licenses/by-sa/2.0)], via Wikimedia Commons"/> </a>
            <a href="https://commons.wikimedia.org/wiki/File%3AUltimate_Frisbee_Colorado_Cup_2005.jpg"><img alt="Ultimate Frisbee Colorado Cup 2005" src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Ultimate_Frisbee_Colorado_Cup_2005.jpg/512px-Ultimate_Frisbee_Colorado_Cup_2005.jpg"/></a>
	    <a href="https://www.flickr.com/photos/paradisecoastie/15409853738/" title="Ultimate Frisbee"><img src="https://farm4.staticflickr.com/3948/15409853738_7dbfbfbac7_k.jpg"  alt="Ultimate Frisbee"></a>
	  </aside>
	  <section class = "right">
	    <h2>Background</h2>
	    <p>Ultimate Frisbee/Ultimate has been around in some fashion since the 1960s.  Joel Silver is credited with introducing the game to his high school in 1968 after learning about the game at summer camp.  The game spread to more college campuses soon afterward.</p>
	    <p>The Ultimate Players Association was founded in 1979 and began organizing touraments across the country.  In 2010, UPA because the <a href = "htpp://http://www.usaultimate.org/index.html">USA Ultimate</a>.</p>
	    <p>Other than professional tournaments, games of Ultimate are typically played without referess.  Instead, players rely on "The Spirit of the Game" to encourage sportsmanship and self-officiating.</p>
	    <h2>Sources</h2>
	    <ul>
	      <li><a href = "https://en.wikipedia.org/wiki/Ultimate_(sport)">Ultimate (sport)</a></li>
	      <li><a href = "http://www.wfdf.org/">World Flying Disc Federation</a></li>
	    </ul>
	</section>
    </main>
  </body>
</html>

—/*MY CSS */–: here I am stuck !!

body {  
font-family: aria,time new roman, serif;
    font-size: 1.5em;
    background-color: #B0E2FF;
}

.main {
    width:960px;
    margin: 0 auto;
}

header {
    background-color: royalblue;
    height: 205px;
    width: auto;
    margin:2%;
    text-align: center;
}

header {
   background:  url(images/flywheel.jpg) no-repeat top fixed ; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

img {
    width: 85%;
    height: auto;
    display: block;
    margin-bottom: 2%;
    border:3px solid #000000; 
    margin: 2%;
    margin-left: auto;
    margin-right: auto;
}

nav{
    font-variant: small-caps;
    font-family: Arial, "Times New Roman", serif;
    font-size: 150%;
    margin-right: 3%;
}

nav a {
    min-width: 8em;
    float: left;
    margin-right: 2em;
    margin-left: 35px;
    text-align: center;
    text-decoration: none;
    padding-bottom: 15px;
}

nav a:link,
nav a: visited {
   background-color:#BFEFFF;
   opacity: 0.1;
    width: 20%;
    display:inline-block;
    padding: 0.4em;
    margin: 0 0 0.4em 0;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius:5;
    -o-border-radius:5px;
    border-radius: 5px;
}

section  {
    position: absolute;
    top: 240px;
    right: 0;
    width: 55em;
    margin-bottom: 55em;
    margin-right: 4%;
 }   

aside {
  background-color: #698B22;
  width: 19em;
  height: 70em;
  margin-left: 2%;
  margin-top: 0;
}

/THIS IS A WEB THAT I AM REQUIRE TO BUILD/–

Hi @top50 and welcome to the SP Forum,

It is difficult to read your scripts because they are not formatted.

Please edit your post and start and finish your scripts with three backticks on their own line with no spaces!

Backticks are usually on the top left keyboard ’ ``` `

Just like this:

<!DOCTYPE HTML>
<head>
<title> title goes here </title>
<link rel="stylesheet" href="style.css" type="text/css"  media="all">
</head>
<body>

<h1> header <.h1>

</body>
</html>

Done. The nesting doesn’t look great on the HTML, but it should work well enough for here.

Edit: The HTML should be easier to follow now too.

1 Like

I modified the CSS and included the full path instead of the relative path because the image is relative to the CSS path.

Your web-page

Two useful sites for validating your scripts are:

CSS Validation

HTML Validator

Edit:
Notice the CSS Validation error which is due to an extra space!

Hi John_betong;
Thanks a lot for your reply. You know this is not my scripts, it is was given like this by instructor ( online web building class) and she insisted not to touch the HTML but to create a CSS to style the page. Here are her instructions :

  • Create a style sheet and link it to the html files. (Without changing the html.)

1.Download the image from http://intro-webdesign.com/CSS/assignment-2/images/flywheel.jpg and put it into a folder named images.
2.Style the following:
•The body should have padding and margin
•The header should have a background color, background image (using a local image), and padding
•The navigation links (and only the links in the navigation) should be styled with a new display, margin, border-radius, text-decoration, and padding
•The link to the current page should be styled differently from the other links (using class = "active’)
•The sections should be next to each other, not one on top of the other.
•The images should be part of the page now. In addition, they should have a border, be centered horizontally, and have vertical (top/bottom) space between them and the other images.

Thanks for your Time John, bless you !!

1 Like

Thanks a lot chrisofarabia for looking up this.
Although, it is not my scripts, it is was given to us like this by the instructor ( online web building class) . Also this is working progress web. As the courses are moving on we will be working on this script progressively . It will be clean and formatted at the very end off the course.
This was the second week home work of our css online class, but I am just stuck and confuse at this point and I got to get it done by Saturday night cause my grade depend on it.
please help!!
Here are the instructor instructions:

.Create a style sheet and link it to the html files. (Without changing the html.)

1.Download the image from http://intro-webdesign.com/CSS/assignment-2/images/flywheel.jpg and put it into a folder named images.
2.Style the following:
•The body should have padding and margin
•The header should have a background color, background image (using a local image), and padding
•The navigation links (and only the links in the navigation) should be styled with a new display, margin, border-radius, text-decoration, and padding
•The link to the current page should be styled differently from the other links (using class = "active’)
•The sections should be next to each other, not one on top of the other.
•The images should be part of the page now. In addition, they should have a border, be centered horizontally, and have vertical (top/bottom) space between them and the other images.

Thanks for Time!!

You best talk to the instructor to clarify

“Without changing the html”
and
“The images should be part of the page now.”

is not possible

The HTML has 3 images

<img src="https://upload.wikimedia.org/wikipedia/commons/5/5d/Ultimate_Frisbee%2C_Jul_2009_-_19.jpg" 
alt="Creative Common Ultimate Photo" title="By Ed Yourdon [CC BY-SA 2.0 (http://creativecommons.org/licenses/by-sa/2.0)], via Wikimedia Commons"/>
 </a>
            <a href="https://commons.wikimedia.org/wiki/File%3AUltimate_Frisbee_Colorado_Cup_2005.jpg">
<img alt="Ultimate Frisbee Colorado Cup 2005" 
src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Ultimate_Frisbee_Colorado_Cup_2005.jpg/512px-Ultimate_Frisbee_Colorado_Cup_2005.jpg"/>
</a>
	    <a href="https://www.flickr.com/photos/paradisecoastie/15409853738/" title="Ultimate Frisbee">
<img src="https://farm4.staticflickr.com/3948/15409853738_7dbfbfbac7_k.jpg"  alt="Ultimate Frisbee"><

You can use CSS to display background images - but they will not be “part of the page”.
For them to be part of the page, they need to be added to the HTML

Maybe the instructor isn’t as precise in their definition of “part of the page” as I am?
i.e. means “the images should now display in the page”

1 Like

Hello Meattneague,
Thanks for comments, yes she did give some instructions.
This is working progress web ( from step to step). As the courses are moving on we will be working on this script progressively . It will be clean and formatted at the very end off the course.
This was the second week home work of our css online class, but I am just stuck and confuse at this point and I got to get it done by Saturday night cause my grade depend on it.

Create a style sheet and link it to the html files. (Without changing the html.)

  1. Download the image from http://intro-webdesign.com/CSS/assignment-2/images/flywheel.jpg and put it into a folder named images.
  2. Style the following:
    • The body should have padding and margin
    • The header should have a background color, background image (using a local image), and padding
    • The navigation links (and only the links in the navigation) should be styled with a new display, margin, border-radius, text-decoration, and padding
    • The link to the current page should be styled differently from the other links (using class = "active’)
    • The sections should be next to each other, not one on top of the other.
    • The images should be part of the page now. In addition, they should have a border, be centered horizontally, and have vertical (top/bottom) space between them and the other images.

@top50: it’s not necessary (or helpful) to post the entire assignment instructions every time somebody asks a question. Once is enough; after that, it is better to respond directly to what has been asked, rather than give the general guidelines yet again.

Please could you clarify which step you require assistance with? Your first post mentioned the background image for the header.

2 Likes

Hi there top50,

perhaps this will help…

[code]

Ultimate Frisbee - History body { font-family: arial,'times new roman', serif; font-size: 1em; background-color: #b0E2ff; }

header {
padding: 0.5em;
margin-bottom: 0.5em;
background: #4169e1 url(http://intro-webdesign.com/CSS/assignment-2/images/flywheel.jpg) no-repeat top;
background-size: cover;
text-align: center;
}

h1 {
display: inline-block;
padding: 0.5em;
border-radius: 0.3em;
color: #003;
background-color: rgba(191, 239, 255,0.5);
}

nav a {
display: inline-block;
padding: 0.5em;
margin: 0 0.4em;
border-radius: 0.3em;
font-size: 150%;
font-variant: small-caps;
color: #003;
text-decoration: none;
background-color: rgba(191, 239, 255,0.5);
}
.active {
padding: 0.4em;
border: 0.1em solid #003;
background-color: rgba(191, 239, 255,1);
}
main {
display:table;
width: 62.5em;
margin: auto;
}

.left{
display: table-cell;
width: 19em;
padding: 0.5em 0;
background-color: #698B22;
}

.left img {
display: block;
width: 90%;
height: auto;
border: 0.2em solid #000;
margin: 0.4em auto;
}

.right {
display: table-cell;
padding: 2em;
vertical-align: top;
}

Ulimate Frisbee History

Home Teams History USA Ultimate

Background

Ultimate Frisbee/Ultimate has been around in some fashion since the 1960s. Joel Silver is credited with introducing the game to his high school in 1968 after learning about the game at summer camp. The game spread to more college campuses soon afterward.

The Ultimate Players Association was founded in 1979 and began organizing touraments across the country. In 2010, UPA because the USA Ultimate.

Other than professional tournaments, games of Ultimate are typically played without referess. Instead, players rely on "The Spirit of the Game" to encourage sportsmanship and self-officiating.

Sources

[/code]

coothead

1 Like

@top50
This was the second week home work of our css online class, but I am
just stuck and confuse at this point and I got to get it done by
Saturday night cause my grade depend on it

I sincerely hope you study the supplied solution #10 (rather than just copy & paste) otherwise your next assignment will be that much more difficult because you skipped over the essential basics.

4 Likes

Hi TechnoBear:
I am sorry for posting the assignment. it is because after my first post , other earlier said that it’s difficult to read my scripts, that it’s was not format. some ask me to talk to the instructor to clarify. so I figure posting the assignment will clarify those aspects.

about the help I need:
I create the css, download the image for header background image, it’s was ok, but not exactly right, then I have the 3 images on the left side with different background, which is just alright but not ok, then I have the text on the right side…
My problem is at that far I realize that I am not doing it right, if I change page size , everything on the page get mess up till I readjust the to full size, this where I am confuse and stuck.
The instructor ask to style the body, the header-image, H1, the links in the header( radius, hover, active), the left class side by side with right class .

I don’t know what I am doing wrong, when I I call for ( .left class or .right class or active class ) or try to style the nav with the links in the header I get no response. that is why I am stuck!!
thanks !!

Seems like you have numerous problems.

May I suggest you open a new topic with a single problem showing what you have tried rather than just hoping for a solution.

Thanks a lot Coothead,
This is helpful, and I appreciate it. It’s really not too far from what I need, and I will work on this to get where I want.
thanks again!!

I Think I am ok not John_Betong thank you,
Coothead has provide some guide that is not too far from what I need . I can take from here and I will come back if I need additional assistance, otherwise I drop I a big thanks for all of you.

By the way, would you please tell me what is the supplied solution #10 ? I am curious about !!!
Thanks again!

1 Like

No problem, you’re very welcome. :sunglasses:

The #10 is the just the thread post number. :ok:

coothead

I created '@coothead’s solution and uploaded to my site.

As mentioned before I sincerely hope you study the solution :slight_smile:

Hi there John,

unfortunately, you also uploaded @top50 's original CSS with it. :scream:

coothead

I just uploaded the script contents from post #10 with the following link:

<link rel="stylesheet" href="css/hw1.css">

It was just unfortunate it included the link.

I have remmed the link so it should be OK now?

Alright I got it Coothead and thanks for your deed!!