Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Front end Developer Need help with a Static html page

Ok i need to make 1 html page in order to get a job but i cant make it and i dont have time to do all the courses.. Go at http://blog.plaisio.gr/ i need the header and footer without the content and after hours of separating css classes its still not working the same... So Basically i need to separate the Header and Footer somehow.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
.art-header{
    margin:0 auto;
    height:195px;
    background-position:0 0;
    background-repeat:no-repeat;
    position:relative;
    width:1190px;
    z-index:auto !important;
}
.row{
    display:block;
    width:1190px;
    margin:auto;
    border-bottom:1px solid #000;
    height:2px;
    position:absolute;
    top:212px;left:0px;
    }
    .art-header a{
        font-weight:bold;
        text-decoration:none;
        letter-spacing:3px;
        color:black;display:block;
        float:left;
        }
        .art-header a:hover{color:#A02C32;}
        .region.region-top1{
            width:1190px;
            margin:auto;
            border-bottom:none !important;
            display:block;
            }
            .header-logo{
                display:block;
                height:64px;
                width:431px;
                background-repeat:no-repeat;
                margin-bottom:-6px
                ;margin-top:19px;}
.menu-bar{
    display:block;
    height:46px;
    width:1190px;
    border-bottom:6px solid #000;}
    ul.header-menu a{background-color:white;border-left:1px solid black;padding-top:11px;font-weight:bold;font-size:16px;height:29px;display:block;font-family:Helvetica;line-height:normal;letter-spacing:0px;margin-top:6px;padding-left:17px;padding-right:16px;}
    ul.header-menu a:hover{background:url(Files/menu-bg.png) repeat-x;color:#fff;

    ul.header-menu{float:left;width:70%;padding:0;margin:0;list-style-type:none;position:relative;left:15px;}
    ul.header-menu li{position:relative;float:left;}
    ul.header-menu li .new-events{background:url(Files/new_events.png) no-repeat scroll 0 0 transparent;
    height:18px;
    position:absolute;
    right:10px;
    top:5px;width:47px;}
    ul.header-menu > li.active > a:hover{color:#FFF;background:url(Files/active-menu.png) repeat-x;}
    ul.header-menu li{display:inline;}
    ul.header-menu > li.active > a{color:#FFF;background:url(/sites/all/themes/MyPlaisioTheme/images/active-menu.png) repeat-x;padding-right:19px;height:55px;border:none;padding-left:18px;}
</style>
</head>

<body>
<header class="art-header clearfix">  <div class="region region-art-header">
    <div class="block block-block" id="block-block-6">

                <style type="text/css">
#new{ display:block; width:46px; height:26px; background:url(http://www.plaisio.gr/images/radio-new.png) no-repeat center; position:relative; top:-10px; margin-left:302px; }
ul.header-menu > li.active > a.active { color: #FFF; background: url(/sites/all/themes/plaisioAcademy/images/menu-bg.png) repeat-x;}
</style>
<div class="header-logo"><a href="http://www.plaisio.gr/" title="Plaisio.gr"> <img src="Files/plaisio-logo.png" width="222" height="48"></a></div><div class="menu-bar"><ul class="header-menu"><li><a href="http://www.plaisio.gr/" title=" Plaisio.gr">ΠΡΟΪΟΝΤΑ </a></li><li><a href="http://stores.plaisio.gr/" title=" Δείτε τα καταστήματα του Πλαισίου">ΚΑΤΑΣΤΗΜΑΤΑ</a></li><!-- <li class="active"><a href="http://blog.plaisio.gr" title=" Plaisio Blog">BLOG</a></li> --> <li><a href="http://www.plaisio.gr/promo/CampaignCMS.aspx?cid=46" title="EVENTS" style="border-right:1px solid #000;">EVENTS</a><div class="new-events"></div></li></ul><div class="contactinfos"><img src="Files/contact-phone.png"></div></div>
</div>

  </div>        
</header>
</body>
</html>

This is what i managed after hours and the menus still not working the same..

2 Answers

Wayne Priestley
Wayne Priestley
19,579 Points

You could probably learn what you need to know in 24 hours if you do the basic html and css course.

I dont have 24 hours isnt a quick way to do this? i really cant make it work :(

I would go to w3c and look up header tags/footer tags. This should explain everything in enough detail to get you where you wan to be. Let me know if this is what you were asking for. Here's a link to the footer and header tag.

http://www.w3schools.com/tags/tag_footer.asp http://www.w3schools.com/tags/tag_header.asp