Community

what's wrong with my template, or is it a Drupal's bug?

I'v made a template by copying html code from my personal bbs(http://www.heartstringz.net/bbs/), but when I use this template, Drupal renders the page just like this:

http://bbs.osx86china.com/files/template_441.jpg

I'v tried so many times to solve this problem, but unfortunately I failed everytime. could somebody kindly tell how to do?

Comments

Hi, apparently it has

Hi, apparently it has nothing to do with drupal's template system but due to your own theme design. It seems that you did not properly configure your CSS file and this causes the extra margin between two tables/divs.

--------------------------
http://www.kzeng.info

--------------------------
http://www.kzeng.info

kzeng? nice to meet you

kzeng? nice to meet you here.
But my bbs looks just fine, why?

hehe, it depends your

hehe, it depends on your HTML/CSS code and the class/ID you defined. Do your bbs and drupal share the same css file?

--------------------------
http://www.kzeng.info

--------------------------
http://www.kzeng.info

Oddly enough

... I don't think it IS CSS at all.

Due to that grey line going across above the content - which you wouldn't normally want there - I say you've just got a slightly broken table.
Something's gone wrong in your copy&paste, somewhere close to where it goes "--highlights table--" in the source.
One too few table cells, or a missing colspan.

If you ever need to debug Drupal CSS, try temporarily removing (or at least renaming) the file misc/drupal.css. That will remove any strangeness that Drupal may cause (sometimes it does) for testing so you can identify what's happening.

http://www.coders.co.nz/

Does it have anything to do

Does it have anything to do with CSS? I'm totally confused! Look at what I'v done today:

1, Make a new table and fill in some pictures in Dreamweaver MX 2004, no CSS, then load it both in IE and Firefox, everything is fine.

2, Now I'm going to import CSS files, whether I import only drupal.css, only style.css(Bluemarine's default one) or both of them, the html page is rendered correctly in IE and Firefox:

http://bbs.osx86china.com/files/dw2004_831.jpg
http://bbs.osx86china.com/files/firefox_148.jpg
http://bbs.osx86china.com/files/ie_184.jpg

3, OK, as everything goes well, I'm encouraged to test my HTML code in Drupal. Unfourtunately, however, the result really beats me:

http://bbs.osx86china.com/files/drupal_in_firefox_204.jpg
http://bbs.osx86china.com/files/drupal_in_ie_337.jpg

What happened on earth?! If there are sth wroing in the CSS files, why they run well without Drupal? If not, why Drupal with the SAME HTML and CSS shows different result in IE and Firefox?

DocType?

Try to change the doctype to transitional. . .

I would recommend downloading the web developer extension for firefox as well. Not too sure what's causing your problem but there seems to be a 2px bottom padding on your top row of your table. . .

--------------------------------------------------------------
Personal Blog Site | JC Cafe | CSSS

--------------------------------------------------------------
Personal Blog Site | JC Cafe | CSSS

It DOES WORK!

It DOES WORK!
Thank you so much!

nobody click here