Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member Cyvre's Avatar
    Join Date
    Jun 2011
    Location
    Qatar
    Posts
    6
    Member #
    28075
    Right, so today, i was being an idiot :P I was editing my website on notepad because my computer was lagging so much

    Somehow, i changed some coding in either the CSS or HTML and now my website is F****d up

    So right, here is the

    HTML 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>CSS Portal - Layout Generator</title>
    
    <link rel="stylesheet" type="text/css" href="style.css" />
    
    </head>
    
    
    
    <body>
    <br />
    <br />
     
    
        <div id="wrapper">
    
        <div id="header">
        </div>
    
    <div id="navigation">
      
                     <ul id="list-nav">
    
    <li><a href="#">Home</a></li>
    <li><a href="#">Blog</a></li>
    <li><a href="#">Projects</a></li>
    <li><a href="#">Graphics</a></li>
    <li><a href="#">Gaming</a></li>
    <li><a href="#">About Cyvre </a></li>
    <li><a href="#">Contact Info </a></li>
    
    </ul>
    
    
    
    </div>
    
    
    
    
    
    
    
    
          <div id="leftcolumn">
    
    
    
                   <p>&nbsp;</p>
          </div>
    
          <div id="content">
    
    
    
                  <p>Welcome to www.cyvre.info ,the official website    of Cyvre.This website was designed completely from scratch, since i have become very interested in Web design. I hope you like the look of the sight, it is my first try at web design :D </p>
                  <p>More features will be added to the site, but for now, it is basically a shell... </p>
          </div><div id="rightcolumn">
    
    
    
                   <p>Stuff in the right column </p>
    
    
    
          </div>
    
             <div id="footer">
    
    
    
    
    
    
    
    </div>   </div>
    
    
    
    </body>
    
    </html>
    and here is the CSS

    Code:
    * { padding: 0; margin: 0; }
    
    body {
     font-family: Verdana, Arial, Helvetica, sans-serif;
     font-size: 13px;
     background-color: #FFF;
    background-image: url(images/background.png);
     background-repeat: repeat-y,x;
    
    }
    
    p {
     padding: 10px;
    }
    
    #wrapper {
     margin: 0 auto;
     width: 810px;
    }
    
    #content {
     float: left;
     color: #333;
     background: #FFFFFF;
     height: 400px;
     width: 600px;
     display: inline;
    }
    
    #header {
     color: #333;
     width: 800px;
     float: left;
     height: 75px;
     background-image: url(images/header.png);
     background-repeat: no-repeat;
    }
    
    #footer {
     width: 800px;
     height: 75px;
     clear: both;
     color: #333;
     background-image: url(images/footer.png);
     background-repeat: no-repeat;
    }
    
    #navigation {
     float: left;
     width: 700px;
     height: 25px;
     color: #333;
     background: #FFFFFF;
     border: 1px solid #48494A;
    }
    
    #leftcolumn {
     color: #000000;
    
     height: 350px;
     width: 80px;
     float: left;
     padding: 10px
    
    }
    
    #rightcolumn {
     color: #000000;
    
     height: 350px;
     width: 80px;
     float: left;
     padding: 10px
    
    }
    
    #background {
    background:: #FFFFFF;
    }
    
    /*-----------------------------------------*/
    
    ul#list-nav {
    list-style:none;
    margin:0px;
    padding:99;
    width:800px
    }
    
    ul#list-nav li {
    display:inline
    }
    
    ul#list-nav li a {
    text-decoration:none;
    padding:5px 0;
    width:99px;
    background:#48494A;
    color:#eee;
    float:left;
    text-align:center;
    border-left:1px solid #fff;
    }
    
    ul#list-nav li a:hover {
    background:#a2b3a1;
    color:#000
    }

    And yeh, ive also attached a image of what my website looks like now:
    hugegap.jpg

    whats with the huge gap ?

    Please help me guys

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    ul#list-nav { list-style:none; margin:0px; padding:99; width:800px }
    The padding: 99 is likely what's messing this up. You should set that as a unit of measure (e.g. 99px) and you probably don't want this anyway.
    Cyvre likes this.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:03 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com