-
1. Re: Problem with Template in CS4
John Waller Nov 16, 2011 8:53 PM (in response to pcford)Please upload your problem page and post a link so we can see what you're dealing with.
-
2. Re: Problem with Template in CS4
pcford Nov 16, 2011 9:25 PM (in response to John Waller)Thank you. I am working with the DW template described below. I have not really added anything to the template...I was changing CSS for practice as much as anything. I changed them back. So just open up the template and you will see what I am referring to.
"I am working with Dreamweaver CS4. I using the 2 column fixed, right sidebar, header and footer template. My problems is that I cannot get rid of the space between the header and the main content. I don't understand what controls it...one would assume it is a top margin on the main content but no luck.
Thanks in advance."
-
3. Re: Problem with Template in CS4
John Waller Nov 16, 2011 9:48 PM (in response to pcford)I don't have access to DW CS4 (or any DW at this stage).
Easier for everyone if you upload.
-
4. Re: Problem with Template in CS4
MurraySummers Nov 17, 2011 3:40 AM (in response to pcford)Since those sample layouts are changed in going from version to version, if we don'e have access to CS4, then we don't have the ability to regernerate your code. Please help us with that.
-
5. Re: Problem with Template in CS4
pcford Nov 17, 2011 7:00 AM (in response to MurraySummers)http://criterionweb.com/testexample.html
What controls space above "Main Content" and bottom of header?
I changed color to red to make things more clear.
-
6. Re: Problem with Template in CS4
mytaxsite.co.uk Nov 17, 2011 7:18 AM (in response to pcford)pcford wrote:
http://criterionweb.com/testexample.html
What controls space above "Main Content" and bottom of header?
I changed color to red to make things more clear.
You can put this code on your page in the styles section:
.twoColFixRtHdr #mainContent h1 {
margin-top: 0;
}
Hope this helps.
-
7. Re: Problem with Template in CS4
pcford Nov 17, 2011 7:24 AM (in response to mytaxsite.co.uk)Ok, I will try that....so to speak: the answer is that there is nothing pushing the content down, it's that there is nothing pushing it up.
Makes sense...I will try when I get to work. Thank you!
-
8. Re: Problem with Template in CS4
MurraySummers Nov 17, 2011 7:42 AM (in response to pcford)the answer is that there is nothing pushing the content down, it's that there is nothing pushing it up.
No. What's pushing it down is the ESCAPED top margin of the <h1> tag. It has escaped from its container and is pushing the container down. You can fix this by a number of things, one of which is the CSS suggested by JTANNA. Another is by using this CSS -
either this -
.twoColFixRtHdr #mainContent { overflow:hidden; }
or this -
.twoColFixRtHdr #mainContent { border-top:1px solid white; } (use a border color that is consistent with your page background color.
-
9. Re: Problem with Template in CS4
pcford Nov 17, 2011 2:47 PM (in response to MurraySummers)Ok, Murray, both of your suggestions worked.
I have been doing websites since 1992..but for the last few years I have been doing them only infrequently. And now I have to rebuild the company website. I have a lot of catching up to do. And, truth be told, I never way that good with CSS anyway. But I'm learning.
Thanks very much for your time!
-
10. Re: Problem with Template in CS4
MurraySummers Nov 17, 2011 3:04 PM (in response to pcford)Stick with it. CSS is quite amazing once you grasp a few basic concepts.



