Hello everyone! I am a fairly recent fan of Drupal's! I am staying with it for long I think! I have a great looking and functioning site with Drupal now. I have only one annoying issue that I dont know how to fix. On the top portion of each page, there is at least like a 1/2 inch of space with nothing in it. To be specific: I am using the blue marine theme and have customized it for my company, this white space occurs at the top of the $content portion. When I look into the rendered HTML on the browser, it is clear that this whitespace is coming from these lines:

 <div id="main"> 
		<div class="node"><span class="submitted"></span> <span
			class="taxonomy"></span>
		<div class="content"> 

If I remark these in the rendered HTML, the whitespaces go away and my page looks slicker than ever. Problem is, I dont know how to make drupal not spit out the above lines or at least use the <span> tag instead of <div>. Has anyone else seen this issue and how was it resolved?

Thank you so much!

--
The shark!

Comments

nevets’s picture

Have you tried using firebug (a firefix extension) to find the css that cause the space. By using the inspect feature of firebug you should be able to fairly quickly find the cause of the white space

Blitter’s picture

You'll need to track down the CSS classes attached to those divs and strip out some of their attributes. I remove a lot of margins in my CSS files to get the look I like. The CSS files are included in the theme you are using if you havent looked into them yet.

chicagoshark’s picture

Hello!

Thanks so much! I was able to remove the white space to most extent. However, in addition to changing the CSS, I actually commented out two lines in the node.tpl.php as follows. This really blew away the whitespace. Will this matter in other parts or functioanlity of Drupal? Thanks a ton!

    <!-- <span class="submitted" --><!-- ?php print $submitted?></span> -->
    <!-- <span class="taxonomy"> --><!-- ?php print $terms?></span> -->

--
S D ~ The Chicago Shark

Blitter’s picture

It is really best to keep the formatting to the CSS files, this is part of how the modular architecture works so well on drupal. Just search for those CSS class types you've commented out.