Thread: Resolved Removing top spacing
View Single Post
Old 01-04-2013, 07:37 AM   PM User | #6
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Quote:
Originally Posted by ducmphung View Post
Now it's just my index site.
#content article has some top padding here -
Code:
article {
    background: url("images/line.gif") repeat-x scroll 0 0 transparent;
    float: left;
    padding-top: 30px;
    width: 560px;
}
And quite a lot of junk in the markup that is not right. This bit of js should not be wrapped in paragraph tags -
Code:
				<div id="mid" class="clearfix glass static-left full-width">
	<div id="content" class="clearfix">

        
		        <h1 class="page-title"></h1>
        <article>
                        
            <div id="post-805" class="post-805 page type-page status-publish hentry real-content clearfix">
                <p><html lang="en"><br />
<head><br />
  <meta charset="utf-8" /><br />
  <meta charset="utf-8"/><br />
  <meta name="viewport" content="width=device-width"/><br />
  <script src="js/modernizr-2.5.3.min.js"></script></p>
And this paragraph tag with the line break, it's just taking up space and the head and body stuff doesn't belong in it -
Code:
		
				<div id="mid" class="clearfix glass static-left full-width">
	<div id="content" class="clearfix">

        
		        <h1 class="page-title"></h1>
        <article>
                        
            <div id="post-805" class="post-805 page type-page status-publish hentry real-content clearfix">
                <p><html lang="en"><br />
<head><br />
  <meta charset="utf-8" /><br />
  <meta charset="utf-8"/><br />
  <meta name="viewport" content="width=device-width"/><br />
  <script src="js/modernizr-2.5.3.min.js"></script></p>
<p></head><br />
<body></p>
<div id="content" class="container clearfix">
<div class="item"><img class="lazy lazy-hidden"
You should really have a look at the links about validation in my signature line. The validators will find little mistakes like that.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
ducmphung (01-04-2013)