Results 1 to 3 of 3

Thread: Trouble with template.

  1. #1
    Join Date
    Dec 2008
    Location
    Chicago, IL
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Trouble with template.

    Okay, so here is what I'm dealing with. I want my template to look like this:

    HERE


    But it looks like this: (Also not aligned in IE)

    THIS

    My main problems:
    - Help convert background color to dark grey
    - Help with installing the navigation bar I want (RIGHT HERE)
    - Help it run smoothly in IE.

    Note: This is my first time building a template in Photoshop and converting it to actual code, so I'm a little lost.

    Here is my Code:
    <html>
    <head>
    <title>Layout</title>
    <style type="text/css">
    body {
    background: url('bg-main.gif') repeat-x !important;
    margin: 0;
    padding: 0;
    font-family:arial, tahoma, sans-serif;
    font-size:13px;
    background-color: #333;
    }
    #containter {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    }
    #header {
    background: url('header-bg.gif') no-repeat center;
    wdith: 100%;
    height: 235px;
    margin: 0 auto;
    }
    #smallContainer {
    margin: 0 auto;
    padding: 0;
    width: 856px;
    height: 500px;
    background: black center;
    }
    </style>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
    <body>
    <div id="container">
    <div id="header"> </div>
    <div id="smallContainer">
    </div>
    </div>
    </body>
    </html>
    Last edited by Tye; 12-31-2008 at 05:19 AM.

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Give this a try. I dont have ie so cant help you there... and download the images and put them in from that script page.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>Layout</title>
    <style type="text/css">
    /*Credits: Dynamic Drive CSS Library */
    /*URL: http://www.dynamicdrive.com/style/ */
    
    .solidblockmenu{
    margin: 0;
    padding: 0;
    float: left;
    font: bold 13px Arial;
    width: 100%;
    overflow: hidden;
    margin-bottom: 1em;
    border: 1px solid #625e00;
    border-width: 1px 0;
    background: black url(media/blockdefault.gif) center center repeat-x;
    }
    
    .solidblockmenu li{
    display: inline;
    }
    
    .solidblockmenu li a{
    float: left;
    color: white;
    padding: 9px 11px;
    text-decoration: none;
    border-right: 1px solid white;
    }
    
    .solidblockmenu li a:visited{
    color: white;
    }
    
    .solidblockmenu li a:hover, .solidblockmenu li .current{
    color: white;
    background: transparent url(media/blockactive.gif) center center repeat-x;
    }
    html {
    background:#333333;
    }
    body {
    	background: url('bg-main.gif') repeat-x !important;
    	margin: 0;
    	padding: 0;
    	font-family:arial, tahoma, sans-serif;
    	font-size:13px;
    	background-color: #333;
    }
    #containter {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
    }
    #header {
      background: url('header-bg.gif') no-repeat center;
      wdith: 100%;
      height: 235px;
      margin: 0 auto;
    }
    #smallContainer {
      margin: 0 auto;
      padding: 0;
      width: 856px;
      height: 500px;
      background: black center;
    }
    </style>
    </head>
    <body>
    <div id="container">
    <div id="header"> </div>
    <div id="smallContainer">
    <ul class="solidblockmenu">
    <li><a href="http://www.dynamicdrive.com/">Home</a></li>
    <li><a href="http://www.dynamicdrive.com/style/" class="current">CSS Examples</a></li>
    <li><a href="http://www.dynamicdrive.com/forums/">Forums</a></li>
    <li><a href="http://tools.dynamicdrive.com">Webmaster Tools</a></li>
    <li><a href="http://www.javascriptkit.com/">JavaScript</a></li>
    <li><a href="http://www.cssdrive.com">Gallery</a></li>
    </ul>
    <br style="clear: left" />
    
    <p class="iepara">Paragraph that follows...</p>
    </div>
    </div>
    </body>
    </html>
    Last edited by bluewalrus; 12-28-2008 at 11:26 PM. Reason: changed from utf back to original

  3. #3
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Here's a cleaner version of bluewalruse's:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>Layout</title>
    <style type="text/css">
    html {
      background:#333333;
    }
    body {
      background: url('bg-main.gif') repeat-x !important;
      margin: 0;
      padding: 0;
      font-family:arial, tahoma, sans-serif;
      font-size:13px;
      background-color: #333;
    }
    #containter {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
    }
    #header {
      background: url('header-bg.gif') no-repeat center;
      wdith: 100%;
      height: 235px;
      margin: 0 auto;
    }
    #smallContainer {
      margin: 0 auto;
      padding: 0;
      width: 856px;
      height: 500px;
      background: black center;
    }
    /*Credits: Dynamic Drive CSS Library */
    /*URL: http://www.dynamicdrive.com/style/ */
    
    .solidblockmenu{
      margin: 0;
      padding: 0;
      float: left;
      font: bold 13px Arial;
      width: 100%;
      overflow: hidden;
      margin-bottom: 1em;
      border: 1px solid #625e00;
      border-width: 1px 0;
      background: black url(blockdefault.gif) center center repeat-x;
    }
    
    .solidblockmenu li{
      display: inline;
    }
    
    .solidblockmenu li a{
      float: left;
      color: white;
      padding: 9px 11px;
      text-decoration: none;
      border-right: 1px solid white;
    }
    
    .solidblockmenu li a:visited{
      color: white;
    }
    
    .solidblockmenu li a:hover, .solidblockmenu li .current{
      color: white;
      background: transparent url(blockactive.gif) center center repeat-x;
    }
    </style>
    </head>
    <body>
    <div id="container">
    <div id="header"> </div>
    <div id="smallContainer">
    <ul class="solidblockmenu">
    <li><a href="http://www.dynamicdrive.com/">Home</a></li>
    <li><a href="http://www.dynamicdrive.com/style/" class="current">CSS Examples</a></li>
    <li><a href="http://www.dynamicdrive.com/forums/">Forums</a></li>
    <li><a href="http://tools.dynamicdrive.com">Webmaster Tools</a></li>
    <li><a href="http://www.javascriptkit.com/">JavaScript</a></li>
    <li><a href="http://www.cssdrive.com">Gallery</a></li>
    </ul>
    <br style="clear: left" />
    
    <p class="iepara">Paragraph that follows...</p>
    </div>
    </div>
    </body>
    </html>
    Jeremy | jfein.net

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
  •