Results 1 to 2 of 2

Thread: Newbie / first page

  1. #1
    Join Date
    Apr 2013

    Newbie / first page

    Hey guys, im new to the coding area and i got a problem with my html or css code. but i guess its part of the css due to i havent found really good informations about that and used parts of others which seemed to fit.

    here is my (short) html text. following my css text. please help me some. i did it in scriptly and the "preview-mode" had shown it corretly, after hosting it it dont =(

    HTML Code:
    <!DOCTYPE html>
        <title>Startseite - www.newspn2.com/</title>
        <meta charset="UTF-8" />
        <meta name="description" content="Startseite">
        <link href="style.css" type="text/css" rel="stylesheet">
        <img src="pics/cave.jpg" class="bg">
        <div id="page-wrap">
        <img src="pics/banner.jpg" class="banner" alt=""/>
        <div id="navi">
                <li> <a href="index.htm">Home</a></li>
                <li> <a href="generell-help.htm">Generell Help</a></li>
                <li> <a href="updates.htm">Updates</a></li>
                <li> <a href="videos.htm">Videos</a> </li>
        <div id="inhalt">
            <h1>Pockie Ninja 2 Social!</h1>
            <p>Hello and welcome to my webside for Pockie Ninja 2 Social</p>
            <p>I will show you here the newest updates and some videos of crazy
                guys and later on maybe some array helps</p>
    h1 {
        background-color: #000000;
    #navi {
        width: 11em;
        background-color: #808000;
    #inhalt {
        margin-left: 14em;
    img.banner  {
        display: block;
        margin-left: auto;
        margin-right: auto }
    img.bg {
    			/* Set rules to fill background */
    			min-height: 100%;
    			min-width: 1024px;
    			/* Set up proportionate scaling */
    			width: 100%;
    			height: auto;
    			/* Set up positioning */
    			position: fixed;
    			top: 0;
    			left: 0;
    		@media screen and (max-width: 1024px){
    			img.bg {
    				left: 50%;
    				margin-left: -512px; }
    		#page-wrap { position: relative; /*width: 800px; */ margin: 40px auto; padding: 0px;
             -moz-box-shadow: 0 0 20px black; -webkit-box-shadow: 0 0 20px black; box-shadow: 0 0 20px black; }
    		p { font: 15px/2 Georgia, Serif; margin: 0 0 30px 0;  }
    especially the page wrap is ""stolen""

  2. #2
    Join Date
    May 2005
    Gold Coast (MS)
    HTML Errors:
    Line 16, Column 40: An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images: <img src="pics/cave.jpg" class="bg">

    Error Line 36, Column 10: Stray end tag div: </div>
    Used: http://validator.w3.org/#validate_by_input+with_options

    CSS Errorss:
    1 Unknown pseudo-element or pseudo-class :red
    1 color Parse Error red;
    5 Parse Error [: #000000; } #navi]
    20 Parse Error }
    CSS Warnings:
    45 Property -moz-box-shadow is an unknown vendor extension
    45 Property -webkit-box-shadow is an unknown vendor extension
    Used: http://jigsaw.w3.org/css-validator/#...t+with_options


    Why Validate?: http://validator.w3.org/docs/why.html
    CSS Validator: http://jigsaw.w3.org/css-validator/
    HTML Validator: http://validator.w3.org/#validate_by_uri+with_options
    Unicorn - W3C's Unified Validator: http://validator.w3.org/unicorn/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center