Can't get rid of space between navbar and content

On this page http://leadinc.no/projects

I have set every tag to padding:0 margin:0 but there is the stubborn space between the content and the navbar. The green background of table#content should not show up between the pictures and the navbar (div.secondary).  

Also there's space between the pics (red background should not show) eventhough cell spacing and every conceivable class on td and table and img set to 0.

Can anyone please tell me whay these spaces persist? The top space is worse in Firefox.

The only CSS files are common.css and drupal.css.    style.css is empty and combined it into common.css, hence the double mention of some tags like body.

polaatxAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JeffHowdenCommented:
Could it be the <br /> between <tbody> and <tr> and again between </tbody> and </table> ??
polaatxAuthor Commented:
Thank you Jeff. Turns out the textfield editor built into the admin pages of the site was rewriting my code and adding the tbody and br tags. It wasn't in the dreamweaver but when I copy/pasted into the textfield when I made the page online, it was rewritten.

I still have the problem with space between images. Any ideas?
JeffHowdenCommented:
I see that.  There are lots of potential causes.  Some of the big things I see is that you're using an XHTML Strict doctype, but have lots and lots of invalid HTML (not XHTML) tags in there.  Specifically, your <img> tags aren't closed properly (<img />).  Also, there are numerous tag attributes that are in mixed case (this is not allowed in XHTML).

http://validator.w3.org/check?uri=http%3A%2F%2Fleadinc.no%2Fprojects

The source of the problem is in comment.css though:

table#project_img {
width:755px;
background-color:#FF0000;
}

The width of the images (250px each) adds up to 750px, not 755px.

Also, I'd remove all the superfluous hspace and vspace attributes as the default is already 0.

Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

gonenraCommented:
i got a solution, at least locally it works:
in the css file:
http://leadinc.no/themes/chameleon/common.css
i added the line:
    height:35px;

to the class:
div.navlinks div.secondary {

the source:
div.navlinks div.secondary {
  padding: 0em;
  width:750px;
    margin: 0 auto;
               border-bottom:1px #ddd solid;
           border-right:1px #ddd solid;
               border-left:1px #ddd solid;
}

after my change:
div.navlinks div.secondary {
  padding: 0em;
  width:750px;
    height:35px;
    margin: 0 auto;
               border-bottom:1px #ddd solid;
           border-right:1px #ddd solid;
               border-left:1px #ddd solid;      
}

and the space is gone.

please try that and tell me how it went

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gonenraCommented:
BTW, i'm working with FF, but i checked it on IE too
and it's not changing correctly (as expected\suspected).
when i put 25px it's a bit better then the original but it's still pretty spacy
under 25px you cant see a change in IE
and starting at 25px it's not showing correctly in FF

i wish someone will just shutdown MS !!!
polaatxAuthor Commented:
Gosh, I just realized I forgot to work on this issue. I will get back to you ASAP.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.