Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: upper part of a website

  1. #1
    Join Date
    Jun 2011
    Posts
    61
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default upper part of a website

    Hello all,

    I am attaching the html and css codes. I will greatly appreciate your help.

    Thanks
    Last edited by philips; 08-05-2011 at 08:50 PM.

  2. #2
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    557
    Thanks
    8
    Thanked 66 Times in 66 Posts

    Default

    In the future, please use the CODE tags to post code on the forum. (Note: this isn't a solution, I'm just formatting the code).

    HTML:
    Code:
    <!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>My blog</title>
    <!-- David's Blog -->
    <link href="style.css" rel="stylesheet" type="text/css" />
    </head>
    
    <body>
    <div id="wrap">
        <div id="topb"><p><h1>HEAD</h1></p></div>
        <div id="leftb"></div>
        <div id="middleb"></div>
        <div id="rightb"></div>
    </div>
    </body>
    </html>
    CSS:
    Code:
    @charset "utf-8";
    /* CSS Document */
    
    body {
    	background: #FFF;
    	margin: 0;
    	padding: 0;
    }
    
    input, select {
    	margin: 0;
    }
    
    #wrap {
    	margin: 0 auto;
    	width: 797px;
    }
    
    #topb {
    	background: #FFF;
    	width: 797px;
    	height: 60px;
    	border-bottom: 3px solid #666;
    }
    
    #topb h1 {
    	margin: 0;
    	padding: 0;
    	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    	font-size: 50px;
    	font-weight: normal;
    	text-align: center;
    }
    
    #leftb {
    	background: #EEE;
    	width: 169px;
    	float: left;
    	padding: 4px;
    }
    
    #middleb {
    	background: #FFF;
    	width: 432px;
    	float: left;
    	padding: 4px;
    }
    
    #rightb {
    	background: #FFF;
    	width: 169px;
    	float: left;
    	padding: 4px;
    	border-left: 3px solid #666;
    }

  3. #3
    Join Date
    Jun 2011
    Posts
    61
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you. I have not noticed however any changes when I looked it up in my browser.

  4. #4
    Join Date
    Jun 2011
    Posts
    61
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Red face

    Hi, I would like to be able to type my text in the very upper white part, and just under the black navigation menu. I am having difficulty here. Your assistance is appreciated.

    Here is what I have so far (and thanks to the person who contributed some of the code on this forum ):

    Code:
    <!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>My blog</title>
    <!-- David's Blog -->
    <link href="style.css" rel="stylesheet" type="text/css" />
    </head>
    
    <body>
    
    <div id="blog_container">
    
    	<div id="blog_top_panel">
        	<div id="blog_header" style="width: 1px; height: 54px">
               	<div id="site_title">&nbsp;</div>
                <div id="slogan">&nbsp;</div>
            </div>
    
        </div> <!-- end of top panel -->
    
    <div id="blog_menu">
            <ul>
                <li><a href="index.html"  class="current">Home</a></li>
                <li><a href="subpage.html">BLOG NEWS</a></li>
                <li><a href="subpage.html">ABOUT ME</a></li>
                <li><a href="index.html">WHAT I DO</a></li>  
                <li><a href="index.html">CURRICULUM VITAE</a></li> 
                <li><a href="index.html">QUESTIONS</a></li>                     
                <li><a class="lastmenu" href="index.html">CONTACT</a></li>            
            </ul>  
            
            <form method="get" action="#">
                <input name="search" value="Search..." type="text" /> <input class="button" type="submit" name="Search" 
    
    value="GO" />
            </form>
        </div> <!-- end of menu -->
    
    <div id="wrap">
        <div id="topb"><p><h1>HEADER</h1></p></div>
        <div id="leftb" style="width: 169px; height: 565px">
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>
        <div id="middleb" style="width: 520px; height: 802px">new blog page' 
    		welcome to my new webblog page. It is still under contruction<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</div>
        <div id="rightb" style="width: 169px; height: 746px"></div>
    </div> <!-- end of skeleton -->


    CSS:

    Code:
    @charset "utf-8";
    /* CSS Document */
    
    body {
    	background: #FFF;
    	margin: 0;
    	padding: 0;
    }
    
    input, select {
    	margin: 0;
    }
    
    #wrap {
    	margin: 0 auto;
    	width: 960px;
    }
    
    /* top panel */
    #blog_top_panel {
    width: 960px;
    height: 45px;
    margin: 0;
    padding: 0;
    font-color: #333;
    font-size: 13px;
    font-type: Arial Narrow, San Serif;
    font-weight: bold;
    background: none;
    }
    
    #blog_header {
    float: left;
    display: inline;
    margin: 40px 0 0 30px;
    }
    
    #blog_header #site_title{
    padding: 10px 0 8px 0;
    margin: 0;
    color: #FFF;
    font-size: 50px;
    font-weight: bold;
    background: none;
    }
    
    #blog_header #slogan{
    padding-left: 3px;
    margin: 0;
    color: #CCC;
    font-size: 12px;
    font-weight: bold;
    }
    
    .blog_ad_468x60 {
    float: right;
    color: #FFFFFF;
    margin: 40px 15px 0 0;
    width: 468px;
    height: 60px;
    }
    
    .blog_ad_468x60 img{
    border: none;
    }
    /* end of top panel */
    
    /*------------- Menu ------------------*/
    #blog_menu {
    width: 960px;
    height: 35px;
    background: #000;
    border-bottom: 1px solid #333;
    }
    
    #blog_menu ul {
    float: left;
    width: 750px;
    margin: 0;
    padding: 10px 0 0 0;
    list-style: none;
    }
    
    #blog_menu ul li{
    display: inline;
    }
    
    #blog_menu ul li a{
    float: left;
    padding: 0 25px;
    font-family: "Arial Narrow", Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #FFFFFF;
    border-right: 1px solid #FFFFFF;
    }
    
    #blog_menu ul li .lastmenu{
    border-right: none;
    }
    
    #blog_menu li a:hover, #blog_menu li .current{
    color: #b3d7fc;
    }
    
    #blog_menu form{
    float: right;
    width: 170px;
    margin: 0;
    padding: 5px 0 0 0;
    text-align: left;	
    }
    
    #blog_menu form input{
    width: 120px;
    color: #FFFFFF;
    background: #000;
    height: 20px;
    border: 1px solid #666;
    }
    
    #blog_menu form .button{
    border: none;
    background: none;
    color: #FFF;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    }
    
    /* ----------------- end of menu----------------*/
    
    #topb {
    	background: #FFF;
    	width: 960px;
    	height: 60px;
    	border-bottom: 3px solid #666;
    }
    
    #topb h1 {
    	margin: 0;
    	padding: 0;
    	font-family: "Arial Narrow", Helvetica, sans-serif;
    	font-size: 50px;
    	font-weight: bold;
    	text-align: center;
    }
    
    #leftb {
    	background: #FFF;
    	width: 169px;
    	float: left;
    	padding: 4px;
    }
    
    #middleb {
    	background: #FFF;
    	width: 520px;
    	float: left;
    	padding: 4px;
                  font-family: "Arial", Helvetica, sans-serif;
    	font-size: 14px;
                  font-color: #333
    	font-weight: normal;
    }
    
    #rightb {
    	background: #FFF;
    	width: 169px;
    	float: left;
    	padding: 4px;
    	border-left: 1px solid #CCC;
    
    /* ----------------- end of skeleton----------------*/

  5. #5
    Join Date
    Jun 2011
    Posts
    61
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question

    Any help??

  6. #6
    Join Date
    Jun 2011
    Posts
    61
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Angry

    What am I not getting any assistance

  7. #7
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    I didn't notice your question until now. I'm not sure I understand what you really want. Anyhow, your site will me more like the one you are referring to if you add to #blog_menu { in the stylesheet:
    Code:
    position: absolute; left: 50%; margin-left:-480px;
    And in the page itself:
    Code:
    <div id="topb"><p><h1 style="margin-top: 60px">HEADER</h1></p></div>
    Arie Molendijk.

  8. #8
    Join Date
    Jun 2011
    Posts
    61
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hi... no problem and thank you for your help

    As I wrote, I would like to be able to add text to the very upper part of the page and secondly, I would like to be able to add text just under the black navigation bar.

    I would be thankful if you can show me what code and where to place it. Thank you

    Here is the HTML:

    Code:
    <!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>My blog</title>
    <!-- David's Blog -->
    <link href="style.css" rel="stylesheet" type="text/css" />
    </head>
    
    <body>
    
    <div id="blog_container">
    
    	<div id="blog_top_panel">
        	<div id="blog_header" style="width: 1px; height: 54px">
               	<div id="site_title">&nbsp;</div>
                <div id="slogan">&nbsp;</div>
            </div>
    
        </div> <!-- end of top panel -->
    
    <div id="blog_menu">
            <ul>
                <li><a href="index.html"  class="current">Home</a></li>
                <li><a href="subpage.html">BLOG NEWS</a></li>
                <li><a href="subpage.html">ABOUT ME</a></li>
                <li><a href="index.html">WHAT I DO</a></li>  
                <li><a href="index.html">CURRICULUM VITAE</a></li> 
                <li><a href="index.html">QUESTIONS</a></li>                     
                <li><a class="lastmenu" href="index.html">CONTACT</a></li>            
            </ul>  
            
            <form method="get" action="#">
                <input name="search" value="Search..." type="text" /> <input class="button" type="submit" name="Search" 
    
    value="GO" />
            </form>
        </div> <!-- end of menu -->
    
    <div id="wrap">
        <div id="topb"><p><h1>HEADER</h1></p></div>
        <div id="leftb" style="width: 169px; height: 565px">
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>
        <div id="middleb" style="width: 520px; height: 802px">new blog page' 
    		welcome to my new webblog page. It is still under contruction<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</p>
    		<p>&nbsp;</div>
        <div id="rightb" style="width: 169px; height: 746px"></div>
    </div> <!-- end of skeleton -->
    AND here is the CSS:

    Code:
    @charset "utf-8";
    /* CSS Document */
    
    body {
    	background: #FFF;
    	margin: 0;
    	padding: 0;
    }
    
    input, select {
    	margin: 0;
    }
    
    #wrap {
    	margin: 0 auto;
    	width: 960px;
    }
    
    /* top panel */
    #blog_top_panel {
    width: 960px;
    height: 45px;
    margin: 0;
    padding: 0;
    font-color: #333;
    font-size: 13px;
    font-type: Arial Narrow, San Serif;
    font-weight: bold;
    background: none;
    }
    
    #blog_header {
    float: left;
    display: inline;
    margin: 40px 0 0 30px;
    }
    
    #blog_header #site_title{
    padding: 10px 0 8px 0;
    margin: 0;
    color: #FFF;
    font-size: 50px;
    font-weight: bold;
    background: none;
    }
    
    #blog_header #slogan{
    padding-left: 3px;
    margin: 0;
    color: #CCC;
    font-size: 12px;
    font-weight: bold;
    }
    
    .blog_ad_468x60 {
    float: right;
    color: #FFFFFF;
    margin: 40px 15px 0 0;
    width: 468px;
    height: 60px;
    }
    
    .blog_ad_468x60 img{
    border: none;
    }
    /* end of top panel */
    
    /*------------- Menu ------------------*/
    #blog_menu {
    width: 960px;
    height: 35px;
    background: #000;
    border-bottom: 1px solid #333;
    }
    
    #blog_menu ul {
    float: left;
    width: 750px;
    margin: 0;
    padding: 10px 0 0 0;
    list-style: none;
    }
    
    #blog_menu ul li{
    display: inline;
    }
    
    #blog_menu ul li a{
    float: left;
    padding: 0 25px;
    font-family: "Arial Narrow", Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #FFFFFF;
    border-right: 1px solid #FFFFFF;
    }
    
    #blog_menu ul li .lastmenu{
    border-right: none;
    }
    
    #blog_menu li a:hover, #blog_menu li .current{
    color: #b3d7fc;
    }
    
    #blog_menu form{
    float: right;
    width: 170px;
    margin: 0;
    padding: 5px 0 0 0;
    text-align: left;	
    }
    
    #blog_menu form input{
    width: 120px;
    color: #FFFFFF;
    background: #000;
    height: 20px;
    border: 1px solid #666;
    }
    
    #blog_menu form .button{
    border: none;
    background: none;
    color: #FFF;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    }
    
    /* ----------------- end of menu----------------*/
    
    #topb {
    	background: #FFF;
    	width: 960px;
    	height: 60px;
    	border-bottom: 3px solid #666;
    }
    
    #topb h1 {
    	margin: 0;
    	padding: 0;
    	font-family: "Arial Narrow", Helvetica, sans-serif;
    	font-size: 50px;
    	font-weight: bold;
    	text-align: center;
    }
    
    #leftb {
    	background: #FFF;
    	width: 169px;
    	float: left;
    	padding: 4px;
    }
    
    #middleb {
    	background: #FFF;
    	width: 520px;
    	float: left;
    	padding: 4px;
                  font-family: "Arial", Helvetica, sans-serif;
    	font-size: 14px;
                  font-color: #333
    	font-weight: normal;
    }
    
    #rightb {
    	background: #FFF;
    	width: 169px;
    	float: left;
    	padding: 4px;
    	border-left: 1px solid #CCC;
    
    /* ----------------- end of skeleton----------------*/

  9. #9
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    You mean text above the black navigation bar and text under HEADER? You can just write it down there. But that's not what you mean?
    Do you want a visitor to write text to your page?
    ===
    Arie.

  10. #10
    Join Date
    Jun 2011
    Posts
    61
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Yes you are right. Text above the black navigation (where the white area is) bar And text just above the HEADER as shown in the attached snapshot.

    No, I do not want visitors to write anything on my page.

    Many thanks

Bookmarks

Posting Permissions

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