www.webdeveloper.com
Results 1 to 2 of 2

Thread: Newbie / first page

  1. #1
    Join Date
    Apr 2013
    Posts
    1

    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>
    <html>
    
    <head>
    
        <title>Startseite - www.newspn2.com/</title>
    
        <meta charset="UTF-8" />
        <meta name="description" content="Startseite">
    
    
        <link href="style.css" type="text/css" rel="stylesheet">
    </head>
    
    <body>
        <img src="pics/cave.jpg" class="bg">
        <div id="page-wrap">
        <img src="pics/banner.jpg" class="banner" alt=""/>
        <div id="navi">
            <ul>
                <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>
            </ul>
        </div>
    
        <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>
        </div>
    
        </div>
        </div>
    </body>
    </html>
    Code:
    h1 {
        color:red;
        background-color: #000000;
    }
    
    #navi {
        float:left;
        width: 11em;
        background-color: #808000;
    }
    
    #inhalt {
        color:red;
        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
    Location
    Gold Coast (MS)
    Posts
    2,220
    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

    Validating:

    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

"

"

X vBulletin 4.2.2 Debug Information

  • Page Generation 0.31965 seconds
  • Memory Usage 2,854KB
  • Queries Executed 15 (?)
More Information
Template Usage (35):
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_code
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (2)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates