Topic: header.php

When in main.tpl is:
            <div style="background:black;">
             
                <pun_title>
                <pun_desc>
            </div>
All is black in container.

but when maint.tpl is:
            <div style="background:black;">
                <pun_title>
                <pun_desc>
            </div>

It doesn't generate all block in black.


All css:

body {
    color: #000000;
    background: #ffffff;
    font-family: sans;
    font-size: normal;
    line-height: 1.3em;       
}

h1,h2,h3,h4,h5,h6 {
    color: #555a6a;   
}

a {
    color: blue;
}

div#punwrap {
    width: 990px;
    margin:0px auto;
}


div#brdheader {
    background: black;
}


The site is valid W3.

Is it a bug?

Re: header.php

Probably not a bug. Without seeing the actual site, we can't necessarily tell what the issue is though.

3 (edited by krzysiekpia 2007-09-16 09:04)

Re: header.php

Sorry, I can't - it's only local.
Only wrap <pun_title> and <pun_description> into your own container - ex. div - then set background color. is all right with margins?

Here is example code:
inline text
<div style="background-color: yellow">
    <pun_title>
    <pun_desc>
</div>

I always have margin-top. There is nothing more css in main.tpl


When I set the border for the container, all is OK
<div style="background-color: yellow;border: 1px solid black;">
    <pun_title>
    <pun_desc>
</div>


I have newest apache,linux,mozilla,php

Re: header.php

I'm afraid I can't replicate the issue.