padding problem on my site

R

Roman Ziak

Hello everybody,

I have a problem with integrating MyBB and CubeCart. I made my templates
for both applications but cannot get them to the same position.

I want "container" element be 8px from the body element (top), but in
MyBB it puts it at 24px (from Firebug layout inspector). This is even
further in IE.

CubeCart stylesheet:

body
{
margin: 8px;
background: #aaa;
}

#pageSurround
{
width: 748px;
margin: 0px auto;
padding: 0;
border: 1px solid #444;
background: #eef;
}

CubeCart body:


<table cellpadding=0 cellspacing=8 id="pageSurround">
<tr>

MyBB stylesheet:

body {
margin: 8px;
padding: 0;
background-color: #aaa;
color: #000;
font-family: Verdana, Arial, Helvetica;
font-size: small;
}

#container {
width: 748px;
margin: 0px auto;
padding: 0;
border: 1px solid #444;
background: #eef;
offsetTop: 8px;
}

MyBB body starts:

<table id="container" cellpadding=0 cellspacing=8>
<tr>



The site is www.dipmicro.com

Thanks for all opinions:

Thanks.
Roman
 
D

dorayme

Roman Ziak said:
Hello everybody,

I have a problem with integrating MyBB and CubeCart. I made my templates
for both applications but cannot get them to the same position.

Hello somebody. First try validating.
 
R

Roman Ziak

dorayme said:
Hello somebody. First try validating.

Great advice ! After making the validator happy my problem disapeared.

I am not HTML/CSS expert but this puzzles me:

<tr>
<td id="header">&nbsp;</td>
</tr>

does validate, but

<tr>
<td id="header">&nbsp;</td>
</tr>

does not (2 spaces before TD element)

Thanks dorayme for the advice !
Roman
 
D

dorayme

Roman Ziak said:
I am not HTML/CSS expert but this puzzles me:

<tr>
<td id="header">&nbsp;</td>
</tr>

does validate, but

<tr>
<td id="header">&nbsp;</td>
</tr>

does not (2 spaces before TD element)

Validators do odd things, they are not always right. You might
find if you look closely that the validator concerned is just
giving a "warning" rather than a caning, some browsers,
especially older ones and especially Mac IE 5, did odd things as
a result of unnecessary white space (which they should simply
treat as one space). Just be sure there is not a little char
somewhere there that is not whitespace...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top